public List<Book> getBooksByParameters(String name, String authorName,String year, String bookType, String series, String availibility) {
		
		boolean available = false;
		int yearInt = 0;
		
		if (!IntegerUtil.isInteger(year) || year.equals("")) {
			yearInt = 0;
		} else {
			yearInt = Integer.parseInt(year);
		}
		
		if (availibility.equals("available")) {
			available = true;
		} else if (availibility.equals("not available")) {
			available = false;
		}

		List<Book> list = bookService.getBooksByParameters(name.toLowerCase(), authorName,yearInt, bookType, series.toLowerCase(), available);
		return list;
	}