[Patches] [PATCH] Bug 7278 : Additional Materials
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Mon Dec 5 09:25:02 NZDT 2011
From: Chris Cormack <chrisc at catalyst.net.nz>
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
---
circ/circulation.pl | 1 +
circ/returns.pl | 1 +
.../prog/en/modules/circ/circulation.tt | 7 +++++++
.../intranet-tmpl/prog/en/modules/circ/returns.tt | 6 ++++++
4 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/circ/circulation.pl b/circ/circulation.pl
index fa043dd..b6bc700 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 98d310e..167bc5f 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 5627109..9f856ac 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) {
</div>
[% IF ( dateexpiry ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
+
+[% IF additional_materials %]
+ <div id="materials" class="dialog message">Note about the accompanying materials: <br />
+ [% additional_materials %]
+ </div>
+[% END %]
+
[% IF ( NEEDSCONFIRMATION ) %]
<div class="yui-g">
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 70367ae..507b8e8 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) {
<div class="yui-g">
+[% IF additional_materials %]
+ <div class="dialog message" id="materials">Note about the accompanying materials: <br />
+ [% additional_materials %]
+ </div>
+[% END %]
+
[% IF ( collectionItemNeedsTransferred ) %]
<div class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
[% END %]
--
1.7.5.4
More information about the Patches
mailing list