private void registerNewBook() {
		
		boolean validTF = false;
		boolean validPath = false;
		
		String name = view.getBookName().getText().trim();
		String author = view.getBookAuthor().getText().trim();
		String editorial = view.getBookEditorial().getText().trim();
		String edition = view.getBookEdition().getText().trim();
		
		int rating = (Integer)view.getBookRatingSpinner().getValue();
		System.out.println();
		
		if(name.isEmpty()||author.isEmpty()||editorial.isEmpty()||edition.isEmpty()){
			validTF = false;
		}else{
			validTF = true;
		}
		
		
		if(archivo!=null){
			validPath = true;
			String imgPath = archivo;
			CopiarArchivo.getInstance().copiar(imgPath, ".\\src\\image\\" + "#Book" +name + author+".png");
		}else{
			validPath = false;
			
		}
		
		if(validTF&&validPath){
			Libro book = new Libro(name,".\\src\\image\\" + "#Book" +name + author+".png", rating,author, editorial, edition );
			
			ShowDialog("New book was registered: "+ name);
			
			//Add to the database
			model.addBelonging(book);
			
			//Move to start?
			view.getStartPnl().setVisible(true); 
			view.getBookRegistrationPnl().setVisible(false);
			
			//clean
			archivo = null;
			
			view.getBookName().setText("");
			view.getBookAuthor().setText("");
			view.getBookEditorial().setText("");
			view.getBookEdition().setText("");
			
			view.getBookRatingSpinner().setValue(0);
			view.getBookImageLbl().setIcon(new ImageIcon(View.class.getResource("/image/default_image.png")));
			
		}else{
			if(!validTF){
				ShowDialog("Incomplete data");
				
			}
			else if(!validPath){
				ShowDialog("You must choose an image file first");
				
			}
		}
		updateStartPanelPanes();
		updateStartPanelLabels();
		
	}