From a9e080a6fbcdd268a03f82138453bb22224f351b Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 1 Dec 2011 14:19:44 +1300 Subject: [PATCH] Bug 7278 : Additional Materials Part 2: This patch shows the message at checkout and checkin How to test: * Add a note in cataloguing * Check it displays at checkout and checkin * Check items without a note don't display anything Signed-off-by: Katrin Fischer --- circ/circulation.pl | 1 + circ/returns.pl | 1 + .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 7 +++++++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 ++++++ 4 files changed, 15 insertions(+) diff --git a/circ/circulation.pl b/circ/circulation.pl index 682eec7667..1b6c6194ff 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -296,6 +296,7 @@ if ($barcode) { unless($issueconfirmed){ # Get the item title for more information my $getmessageiteminfo = GetBiblioFromItemNumber(undef,$barcode); + $template->{VARS}->{'additional_materials'} = $getmessageiteminfo->{'materials'}; $template->param( itemhomebranch => $getmessageiteminfo->{'homebranch'} ); # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed. diff --git a/circ/returns.pl b/circ/returns.pl index 98d310e124..167bc5ff20 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -238,6 +238,7 @@ if ($barcode) { itemtype => $biblio->{'itemtype'}, ccode => $biblio->{'ccode'}, itembiblionumber => $biblio->{'biblionumber'}, + additional_materials => $biblio->{'materials'} ); my %input = ( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index f91d5f726d..1d0e07af20 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -226,6 +226,13 @@ function refocus(calendar) { [% IF ( dateexpiry ) %]
Patron's account has been renewed until [% dateexpiry %]
[% END %] + +[% IF additional_materials %] +
Note about the accompanying materials:
+ [% additional_materials %] +
+[% END %] + [% IF ( NEEDSCONFIRMATION ) %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 3747d3473b..525e9b4a3c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -54,6 +54,12 @@ function Dopop(link) {
+[% IF additional_materials %] +
Note about the accompanying materials:
+ [% additional_materials %] +
+[% END %] + [% IF ( collectionItemNeedsTransferred ) %]
This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]
[% END %] -- 2.39.5