From 193207c614ff7837f1f319bcce92f7540db4c068 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 9 Apr 2008 08:58:20 -0500 Subject: [PATCH] Identifying "waiting at" branch on screen. Signed-off-by: Joshua Ferraro --- circ/circulation.pl | 6 ++---- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 5 ++++- .../intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 128864cc69..9f82d1a052 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -338,7 +338,7 @@ if ($borrowernumber) { $getreserv{barcodereserv} = $getiteminfo->{'barcode'}; $getreserv{itemcallnumber} = $getiteminfo->{'itemcallnumber'}; $getreserv{biblionumber} = $getiteminfo->{'biblionumber'}; - + $getreserv{waitingat} = GetBranchName( $num_res->{'branchcode'} ); # check if we have a waiting status for reservations if ( $num_res->{'found'} eq 'W' ) { $getreserv{color} = 'reserved'; @@ -349,10 +349,8 @@ if ($borrowernumber) { $getWaitingReserveInfo{itemtype} = $itemtypeinfo->{'description'}; $getWaitingReserveInfo{author} = $getiteminfo->{'author'}; $getWaitingReserveInfo{reservedate} = format_date( $num_res->{'reservedate'} ); - if ($getiteminfo->{'holdingbranch'} ne $num_res->{'branchcode'} ) { $getWaitingReserveInfo{waitingat} = GetBranchName( $num_res->{'branchcode'} ); - } - + if($num_res->{'branchcode'} eq $branch){ $getWaitingReserveInfo{waitinghere} = 1; } } # check transfers with the itemnumber foud in th reservation loop if ($transfertwhen) { 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 47cd9f78fc..9ed04f758c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -964,7 +964,7 @@ div.circmessage:first-child { } div.circmessage { - padding: .4em; + padding: 0 .4em .4em .4em; margin-bottom : .3em; } @@ -1542,4 +1542,7 @@ tr.reserved td { } tr.transfered td { background-color : #e8f0f6; +} +.waitinghere { + color : #669900; } \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 3312c666d4..e8f6d5f7cf 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -349,7 +349,7 @@ No patron matched @@ -528,7 +528,7 @@ No patron matched Item - waiting + waiting at in transit from since -- 2.39.5