Bug 10026 - OPAC cart not showing location anymore
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. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
91649531c2
commit
9186c2feda
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue