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 <Katrin.Fischer.83@web.de>
This commit is contained in:
Chris Cormack 2011-12-01 14:19:44 +13:00 committed by Paul Poulain
parent 67c6c95396
commit a9e080a6fb
4 changed files with 15 additions and 0 deletions

View File

@ -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.

View File

@ -238,6 +238,7 @@ if ($barcode) {
itemtype => $biblio->{'itemtype'},
ccode => $biblio->{'ccode'},
itembiblionumber => $biblio->{'biblionumber'},
additional_materials => $biblio->{'materials'}
);
my %input = (

View File

@ -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">

View File

@ -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 id="rotating-collection" class="dialog message">This item is part of a Rotating Collection and needs to be Transferred to [% collectionBranch %]</div>
[% END %]