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:
parent
67c6c95396
commit
a9e080a6fb
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ if ($barcode) {
|
|||
itemtype => $biblio->{'itemtype'},
|
||||
ccode => $biblio->{'ccode'},
|
||||
itembiblionumber => $biblio->{'biblionumber'},
|
||||
additional_materials => $biblio->{'materials'}
|
||||
);
|
||||
|
||||
my %input = (
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
||||
|
|
|
|||
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue