From 1d0aba55a545b99b46a451caf8585949a2e1320d Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Fri, 13 Feb 2009 15:17:52 -0700 Subject: [PATCH] Add barcode to staff search results page. This adds a copy barcode do the item list (Location) on the staff search results page. --- C4/Search.pm | 4 +++- .../intranet-tmpl/prog/en/modules/catalogue/results.tmpl | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 60e4cfe470..26022b5453 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1392,6 +1392,7 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g; $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; $onloan_items->{$key}->{itemcallnumber} = $item->{itemcallnumber}; $onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); + $onloan_items->{$key}->{barcode} = $item->{barcode}; # if something's checked out and lost, mark it as 'long overdue' if ( $item->{itemlost} ) { $onloan_items->{$prefix}->{longoverdue}++; @@ -1457,13 +1458,14 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g; $other_items->{$key}->{count}++ if $item->{$hbranch}; $other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; $other_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); + $other_items->{$key}->{barcode} = $item->{barcode}; } # item is available else { $can_place_holds = 1; $available_count++; $available_items->{$prefix}->{count}++ if $item->{$hbranch}; - foreach (qw(branchname itemcallnumber)) { + foreach (qw(branchname itemcallnumber barcode)) { $available_items->{$prefix}->{$_} = $item->{$_}; } $available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index 2be886262e..39d3d29485 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -334,6 +334,7 @@ $(window).load(function() { [">] + () () @@ -353,6 +354,7 @@ $(window).load(function() { [">] + () (, long overdue) date due: @@ -370,6 +372,7 @@ $(window).load(function() { [">] + () (Withdrawn) (Lost) (Damaged) -- 2.39.5