Bug 12670: Show materials label in checkin/checkout messages

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Julian Maurice 2015-08-25 12:19:19 +02:00 committed by Brendan A Gallagher
parent dd8d1347f9
commit ffb17a2914
2 changed files with 13 additions and 2 deletions

View file

@ -390,7 +390,12 @@ if (@$barcodes) {
my $confirm_required = 0; my $confirm_required = 0;
unless($issueconfirmed){ unless($issueconfirmed){
# Get the item title for more information # Get the item title for more information
$template_params->{additional_materials} = $iteminfo->{'materials'}; my $materials = $iteminfo->{'materials'};
my $avcode = GetAuthValCode('items.materials');
if ($avcode) {
$materials = GetKohaAuthorisedValueLib($avcode, $materials);
}
$template_params->{additional_materials} = $materials;
$template_params->{itemhomebranch} = $iteminfo->{'homebranch'}; $template_params->{itemhomebranch} = $iteminfo->{'homebranch'};
# pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed. # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.

View file

@ -277,6 +277,12 @@ if ($barcode) {
my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype ? $itemtype->itemtype : undef )->{'returnbranch'} || "homebranch"; my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype ? $itemtype->itemtype : undef )->{'returnbranch'} || "homebranch";
my $returnbranch = $biblio->{$hbr} ; my $returnbranch = $biblio->{$hbr} ;
my $materials = $biblio->{'materials'};
my $avcode = GetAuthValCode('items.materials');
if ($avcode) {
$materials = GetKohaAuthorisedValueLib($avcode, $materials);
}
$template->param( $template->param(
title => $biblio->{'title'}, title => $biblio->{'title'},
homebranch => $biblio->{'homebranch'}, homebranch => $biblio->{'homebranch'},
@ -289,7 +295,7 @@ if ($barcode) {
itembiblionumber => $biblio->{'biblionumber'}, itembiblionumber => $biblio->{'biblionumber'},
biblionumber => $biblio->{'biblionumber'}, biblionumber => $biblio->{'biblionumber'},
borrower => $borrower, borrower => $borrower,
additional_materials => $biblio->{'materials'}, additional_materials => $materials,
); );
my %input = ( my %input = (