Added basic function for supporting error handling in modals for loan, reservation and bookmark. REOL-121