From c8c60121952006c51adf21c90f762e1e9bff639d Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 28 May 2007 16:28:43 +0000 Subject: [PATCH] merging opac details only for items with the same branch+location+itemcallnumber && putting publisher before publicationyear && lowering item column size in result page && fixing a missing branch reference in ccl.properties --- C4/Search.pm | 13 ++++++------- catalogue/search.pl | 2 +- koha-tmpl/opac-tmpl/prog/en/includes/opac.css | 3 ++- koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl | 12 +++++++----- misc/zebra/record_biblios_unimarc.abs | 6 +++--- opac/opac-search.pl | 2 +- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index b5b76eb72a..a74c9b8974 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -957,25 +957,24 @@ sub searchResults { else { $norequests = 0; if ( $item->{'homebranch'} ) { - $items->{ $item->{'homebranch'} }->{count}++; + $items->{ $item->{'homebranch'}.'--'.$item->{'itemcallnumber'} }->{count}++; } # Last resort elsif ( $item->{'holdingbranch'} ) { $items->{ $item->{'homebranch'} }->{count}++; } - $items->{ $item->{homebranch} }->{itemcallnumber} = - $item->{itemcallnumber}; - $items->{ $item->{homebranch} }->{location} = - $item->{location}; + $items->{ $item->{'homebranch'}.'--'.$item->{'itemcallnumber'} }->{itemcallnumber} = $item->{itemcallnumber}; + $items->{ $item->{'homebranch'}.'--'.$item->{'itemcallnumber'} }->{location} = $item->{location}; + $items->{ $item->{'homebranch'}.'--'.$item->{'itemcallnumber'} }->{branchcode} = $item->{homebranch}; } } # notforloan, item level and biblioitem level for my $key ( keys %$items ) { #warn "key: $key"; my $this_item = { - branchname => $branches{$key}, - branchcode => $key, + branchname => $branches{$items->{$key}->{branchcode}}, + branchcode => $items->{$key}->{branchcode}, count => $items->{$key}->{count}, itemcallnumber => $items->{$key}->{itemcallnumber}, location => $items->{$key}->{location}, diff --git a/catalogue/search.pl b/catalogue/search.pl index 89f3f43925..4d7e7551d9 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -226,7 +226,7 @@ my @itemtypesloop; my $selected=1; my $cnt; my $imgdir = getitemtypeimagesrc(); -foreach my $thisitemtype (sort keys %$itemtypes) { +foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row =( number=>$cnt++, imageurl=> $itemtypes->{$thisitemtype}->{'imageurl'}?($imgdir."/".$itemtypes->{$thisitemtype}->{'imageurl'}):"", code => $thisitemtype, diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac.css b/koha-tmpl/opac-tmpl/prog/en/includes/opac.css index faa5c27be3..82952910dd 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac.css @@ -348,11 +348,12 @@ color:#384b73; } .available { - background-color: white; + font-size:0.75em; } .unavailable { background-color: #FFED3D; + font-size:0.75em; } /* style for search terms in catalogsearch */ diff --git a/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl index 3eb7d1aee7..8acc3a6011 100644 --- a/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/opac-results.tmpl @@ -227,8 +227,8 @@ Error :   - - - + - ; - : @@ -242,13 +242,15 @@ Error : - () - () + + + - ("> + "> - ) + +
diff --git a/misc/zebra/record_biblios_unimarc.abs b/misc/zebra/record_biblios_unimarc.abs index ca13a68f0e..ab23a2fb40 100644 --- a/misc/zebra/record_biblios_unimarc.abs +++ b/misc/zebra/record_biblios_unimarc.abs @@ -364,9 +364,9 @@ melm 995$k Local-classification #melm 952$a Local-classification #melm 995$a Record-source -melm 995$a Host-item -melm 995$c Record-Source -melm 995$d Record-Source +melm 995$a Branch,Host-item +melm 995$c Branch,Record-Source +melm 995$d Branch,Record-Source melm 995$f Stock-number melm 995$s popularity:n,popularity:s #melm 952$v Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 9cdf699fdb..902cccbec1 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -235,7 +235,7 @@ my @itemtypesloop; my $selected = 1; my $cnt; my $imgdir = getitemtypeimagesrc(); -foreach my $thisitemtype ( sort keys %$itemtypes ) { +foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row = ( number => $cnt++, imageurl => $imgdir . "/" . $itemtypes->{$thisitemtype}->{'imageurl'}, -- 2.39.5