Bugzilla – Attachment 48298 Details for
Bug 12670
Show materials label instead of code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12670: Show materials label in checkin/checkout messages
Bug-12670-Show-materials-label-in-checkincheckout-.patch (text/plain), 2.15 KB, created by
Alex Arnaud
on 2016-02-22 15:16:03 UTC
(
hide
)
Description:
Bug 12670: Show materials label in checkin/checkout messages
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2016-02-22 15:16:03 UTC
Size:
2.15 KB
patch
obsolete
>From ee549db2ef1ab96570dc249240f6aa04a0015448 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 25 Aug 2015 12:19:19 +0200 >Subject: [PATCH] Bug 12670: Show materials label in checkin/checkout messages > >--- > circ/circulation.pl | 7 ++++++- > circ/returns.pl | 8 +++++++- > 2 files changed, 13 insertions(+), 2 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index e6ba9a2..99cbe57 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -398,7 +398,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. >diff --git a/circ/returns.pl b/circ/returns.pl >index 8ff9350..ea66b42 100755 >--- a/circ/returns.pl >+++ b/circ/returns.pl >@@ -277,6 +277,12 @@ if ($barcode) { > my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype->itemtype)->{'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 = ( >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12670
:
30290
|
32765
|
40671
|
41888
|
48298
|
48299
|
48300
|
48301
|
48302
|
49512
|
49513