From 6466ac847fadd23ab7941bbca49424c87d382e6e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 Sep 2010 10:45:03 -0400 Subject: [PATCH] Fix for Bug 4218 - Staff client detail page does not show item hold status Showing "on hold" in the holdings list (as we used to do) is misleading if it is a bibilo-level hold. However seeing that a title has holds is important information for this view. This patch adds a line to the biblio-level information display with a count of the title's outstanding holds. Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- catalogue/detail.pl | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl | 3 +-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index ebecd690ff..abf71adf9c 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -102,6 +102,9 @@ my $dbh = C4::Context->dbh; my @items = &GetItemsInfo( $biblionumber, 'intra' ); my $dat = &GetBiblioData($biblionumber); +# get count of holds +my ( $holdcount, $holds ) = GetReservesFromBiblionumber($biblionumber,1); + #coping with subscriptions my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber); my @subscriptions = GetSubscriptions( $dat->{title}, $dat->{issn}, $biblionumber ); @@ -215,6 +218,7 @@ $template->param( volinfo => $itemfields{enumchron}, itemdata_itemnotes => $itemfields{itemnotes}, z3950_search_params => C4::Search::z3950_search_args($dat), + holdcount => $holdcount, C4::Search::enabled_staff_search_views, ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 13b97b72ae..55e61be752 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1901,3 +1901,6 @@ ul.budget_hierarchy li:last-child:after { ul.budget_hierarchy li:first-child:after { content: ""; } +.holdcount { font-size : 105%; line-height : 200%; } +.holdcount a { border : 1px solid #a4bedd; background-color : #e4ecf5; font-weight : bold; -moz-border-radius: 4px; padding : .1em .4em; text-decoration : none; } +.holdcount a:hover { background-color : #ebeff7; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl index 8dde1b52b8..6be84245a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -195,11 +195,10 @@ function verify_images() { +
  • Holds: ">
  • - -
      -- 2.39.2