Bugzilla – Attachment 27614 Details for
Bug 12122
TransferSlip should accept both itemnumber and barcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12122: TransferSlip should accept both itemnumber and barcode
PASSED-QA-Bug-12122-TransferSlip-should-accept-bot.patch (text/plain), 2.28 KB, created by
Kyle M Hall (khall)
on 2014-04-25 12:24:17 UTC
(
hide
)
Description:
[PASSED QA] Bug 12122: TransferSlip should accept both itemnumber and barcode
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-04-25 12:24:17 UTC
Size:
2.28 KB
patch
obsolete
>From 0cd63ccdda531f9998580bcf07365c7d840010ce Mon Sep 17 00:00:00 2001 >From: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> >Date: Tue, 22 Apr 2014 14:09:16 +0200 >Subject: [PATCH] [PASSED QA] Bug 12122: TransferSlip should accept both itemnumber and barcode > >Added small patch to allow barcode as input in TransferSlip routine, mostly >to allow generating transfer slips where only barcode is present (aka. >javascript). > >Test plan: >1) find book with <barcode> and <itemnumber> >2) generate transferslips with both: > transfer-slip.pl?transferitem=<itemnumber>3967925&branchcode=MPL&op=slip > transfer-slip.pl?barcode=<barcode>&branchcode=MPL&op=slip >and verify that the generated slips match. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 4 ++-- > circ/transfer-slip.pl | 3 ++- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index bd9e1cc..9856f17 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3594,9 +3594,9 @@ sub ProcessOfflinePayment { > =cut > > sub TransferSlip { >- my ($branch, $itemnumber, $to_branch) = @_; >+ my ($branch, $itemnumber, $barcode, $to_branch) = @_; > >- my $item = GetItem( $itemnumber ) >+ my $item = GetItem( $itemnumber, $barcode ) > or return; > > my $pulldate = C4::Dates->new(); >diff --git a/circ/transfer-slip.pl b/circ/transfer-slip.pl >index c8e97a0..c6077d4 100755 >--- a/circ/transfer-slip.pl >+++ b/circ/transfer-slip.pl >@@ -38,6 +38,7 @@ my $sessionID = $input->cookie("CGISESSID"); > my $session = get_session($sessionID); > > my $itemnumber = $input->param('transferitem'); >+my $barcode = $input->param('barcode'); > my $branchcode = $input->param('branchcode'); > > my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >@@ -54,7 +55,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > > my $userenv = C4::Context->userenv; > my ($slip, $is_html); >-if ( my $letter = TransferSlip ($session->param('branch') || $userenv->{branch}, $itemnumber, $branchcode) ) { >+if ( my $letter = TransferSlip ($session->param('branch') || $userenv->{branch}, $itemnumber, $barcode, $branchcode) ) { > $slip = $letter->{content}; > $is_html = $letter->{is_html}; > } >-- >1.7.2.5
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 12122
:
27398
|
27399
|
27614
|
28000
|
33601