Bugzilla – Attachment 49513 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]
[PASSED QA] Bug 12670: Show materials label in checkin/checkout messages
PASSED-QA-Bug-12670-Show-materials-label-in-checki.patch (text/plain), 2.29 KB, created by
Katrin Fischer
on 2016-03-24 06:28:52 UTC
(
hide
)
Description:
[PASSED QA] Bug 12670: Show materials label in checkin/checkout messages
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-03-24 06:28:52 UTC
Size:
2.29 KB
patch
obsolete
>From 671aec49ad7849c23bc818ec9a4f14850bfd7ce4 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] [PASSED QA] 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> >--- > 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 75799bd..65385e1 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -392,7 +392,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 9293572..2f09b80 100755 >--- a/circ/returns.pl >+++ b/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 = ( >-- >1.9.1
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