public void init() {
		// reservationButtonDisabled?
		reservationButtonDisabled = false;
		if (isReservationOld()) reservationButtonDisabled = true;
		if (!getBook().getTakeAway()) reservationButtonDisabled = true;
		if (!canReserveBook(sessionBean.getUser())) reservationButtonDisabled = true;

		// pdfAvailable?
		if (getBook().getPdf() == null) pdfAvailable = false;
		else pdfAvailable = true;

		// reserveButtonValue ?
		if (!getBook().getTakeAway()) {
			reserveButtonValue = "Knjiga se ne može iznositi van biblioteke";
		}
		else if (getReservation() != null) {
			if (isReservationOld()) {
				reserveButtonValue = "Ne možete više rezervisati ovu knjigu";
			}
			else {
				reserveButtonValue = "Otkaži rezervaciju";
				reservationButtonDisabled = false;
			}
		}
		else if (!canReserveBook(sessionBean.getUser())) {
			reserveButtonValue = "Dostigli ste limit rezervisanih knjiga";
		}
		else {
			reserveButtonValue = "Rezerviši";
		}

		// comment grade default
		newGrade = 5;

	}