@@ -, +, @@ adding to patron toolbar Ensuring messages save on every page Fill branch Ensure predefined notes appear Form redirects to where it was submitted from, or just the circulation page. --- circ/add_message.pl | 4 +- circ/circulation.pl | 5 --- .../prog/en/includes/members-toolbar.inc | 45 ++++++++++++++++++++ .../prog/en/modules/circ/circulation.tt | 39 +---------------- members/readingrec.pl | 1 - members/routing-lists.pl | 1 - 6 files changed, 48 insertions(+), 47 deletions(-) --- a/circ/add_message.pl +++ a/circ/add_message.pl @@ -51,5 +51,5 @@ Koha::Patron::Message->new( } )->store; -print $input->redirect( - "/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"); +my $url = $input->referer() // "/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"; +print $input->redirect($url); --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -649,15 +649,10 @@ $template->param( my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber}); $template->param( picture => 1 ) if $patron_image; -# get authorised values with type of BOR_NOTES - -my $canned_notes = GetAuthorisedValues("BOR_NOTES"); - $template->param( debt_confirmed => $debt_confirmed, SpecifyDueDate => $duedatespec_allow, CircAutocompl => C4::Context->preference("CircAutocompl"), - canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), ); --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -1,5 +1,7 @@ [% USE Koha %] [% USE Borrowers %] +[% USE Branches %] +[% USE AuthorisedValues %] [% SET NorwegianPatronDBEnable = Koha.Preference( 'NorwegianPatronDBEnable' ) %]