Bugzilla – Attachment 55572 Details for
Bug 17301
Add callnumber to label-edit-batch.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 17301 - Add callnumber to label-edit-batch.pl
SIGNED-OFF-Bug-17301---Add-callnumber-to-label-edi.patch (text/plain), 2.67 KB, created by
Owen Leonard
on 2016-09-14 18:26:49 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 17301 - Add callnumber to label-edit-batch.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-09-14 18:26:49 UTC
Size:
2.67 KB
patch
obsolete
>From b407cf923d08880b13abdd3147341ab100c5cea5 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 14 Sep 2016 17:33:35 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 17301 - Add callnumber to > label-edit-batch.pl >Content-Type: text/plain; charset="utf-8" > >To test: >1 - Create a label batch >2 - Add some items >3 - Note you do not see callnumber >4 - Apply patch >5 - Verify callnumber displays correctly >6 - Verify batch functions (adding, exporting, removing, etc) work as >before > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > C4/Creators/Lib.pm | 3 ++- > labels/label-edit-batch.pl | 1 + > 2 files changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/Creators/Lib.pm b/C4/Creators/Lib.pm >index 2063d5d..bdf712e 100644 >--- a/C4/Creators/Lib.pm >+++ b/C4/Creators/Lib.pm >@@ -298,7 +298,7 @@ sub get_label_summary { > my %params = @_; > my $label_number = 0; > my @label_summaries = (); >- my $query = " SELECT b.title, b.author, bi.itemtype, i.barcode, i.biblionumber, i.itype >+ my $query = " SELECT b.title, b.author, bi.itemtype, i.barcode, i.itemcallnumber, i.biblionumber, i.itype > FROM creator_batches AS c LEFT JOIN items AS i ON (c.item_number=i.itemnumber) > LEFT JOIN biblioitems AS bi ON (i.biblioitemnumber=bi.biblioitemnumber) > LEFT JOIN biblio AS b ON (bi.biblionumber=b.biblionumber) >@@ -324,6 +324,7 @@ sub get_label_summary { > $label_summary->{'_item_type'} = C4::Context->preference("item-level_itypes") ? $record->{'itype'} : $record->{'itemtype'}; > $label_summary->{'_barcode'} = $record->{'barcode'}; > $label_summary->{'_item_number'} = $item->{'item_number'}; >+ $label_summary->{'_item_cn'} = $record->{'itemcallnumber'}; > $label_summary->{'_label_id'} = $item->{'label_id'}; > push (@label_summaries, $label_summary); > } >diff --git a/labels/label-edit-batch.pl b/labels/label-edit-batch.pl >index 004087c..9d9eb2c 100755 >--- a/labels/label-edit-batch.pl >+++ b/labels/label-edit-batch.pl >@@ -51,6 +51,7 @@ my $batch = undef; > my $display_columns = [ {_label_number => {label => 'Label Number', link_field => 0}}, > {_summary => {label => 'Summary', link_field => 0}}, > {_item_type => {label => 'Item Type', link_field => 0}}, >+ {_item_cn => {label => 'Item Callnumber', link_field => 0}}, > {_barcode => {label => 'Barcode', link_field => 0}}, > {_delete => {label => 'Actions', link_field => 0}}, > {select => {label => 'Select', value => '_label_id'}}, >-- >2.1.4
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 17301
:
55570
|
55572
|
55645
|
55646