Bugzilla – Attachment 17350 Details for
Bug 10026
OPAC cart not showing location anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10026 - OPAC cart not showing location anymore
Bug-10026---OPAC-cart-not-showing-location-anymore.patch (text/plain), 1.76 KB, created by
Owen Leonard
on 2013-04-10 18:35:00 UTC
(
hide
)
Description:
Bug 10026 - OPAC cart not showing location anymore
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2013-04-10 18:35:00 UTC
Size:
1.76 KB
patch
obsolete
>From b0b2c53f8a863b3444f62ab615180ea7e921f452 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 10 Apr 2013 14:24:16 -0400 >Subject: [PATCH] Bug 10026 - OPAC cart not showing location anymore >Content-Type: text/plain; charset="utf-8" > >When Bug 7570 added availability information to the cart it switched >which subroutine was used to get item information, and thus changed how >the information was being returned. > >This patch makes accommodations for this change by adding processing of >item location information to the script in a way that will match the >existing template variables. > >To test, add items to the cart in the OPAC some of which include >shelving location information. When you view the cart you should see the >shelving location displayed. >--- > opac/opac-basket.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl >index cf75eb7..7b3a90a 100755 >--- a/opac/opac-basket.pl >+++ b/opac/opac-basket.pl >@@ -78,6 +78,7 @@ foreach my $biblionumber ( @bibs ) { > $hasauthors = 1; > } > my $collections = GetKohaAuthorisedValues('items.ccode',$dat->{'frameworkcode'}, 'opac'); >+ my $shelflocations =GetKohaAuthorisedValues('items.location',$dat->{'frameworkcode'}, 'opac'); > > # COinS format FIXME: for books Only > my $coins_format; >@@ -92,6 +93,9 @@ foreach my $biblionumber ( @bibs ) { > > my $branches = GetBranches(); > for my $itm (@items) { >+ if ($itm->{'location'}){ >+ $itm->{'location_opac'} = $shelflocations->{$itm->{'location'} }; >+ } > my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($itm->{itemnumber}); > if ( defined( $transfertwhen ) && $transfertwhen ne '' ) { > $itm->{transfertwhen} = $transfertwhen; >-- >1.7.9.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 10026
:
17350
|
17353
|
17608