Browse Source

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>
new_12478_elasticsearch
Julian Maurice 9 years ago
committed by Brendan A Gallagher
parent
commit
ffb17a2914
  1. 7
      circ/circulation.pl
  2. 8
      circ/returns.pl

7
circ/circulation.pl

@ -390,7 +390,12 @@ if (@$barcodes) {
my $confirm_required = 0;
unless($issueconfirmed){
# 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'};
# pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.

8
circ/returns.pl

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

Loading…
Cancel
Save