From 3ca97f8c153de78310657470e153bcaf7577a092 Mon Sep 17 00:00:00 2001 From: alaurin Date: Tue, 6 Jun 2006 12:30:43 +0000 Subject: [PATCH] new color alerts for the differents kind of reserves (available,on transfer, on loan ......) + warning color .... + minor changes of templates --- circ/waitingreservestransfers.pl | 2 +- .../prog/en/circ/branchreserves.tmpl | 14 ++++----- .../en/circ/waitingreservestransfers.tmpl | 8 ++--- .../prog/en/includes/intranet.css | 29 +++++++++++++++++++ 4 files changed, 41 insertions(+), 12 deletions(-) diff --git a/circ/waitingreservestransfers.pl b/circ/waitingreservestransfers.pl index c5fcaf16ad..ba94a9857c 100755 --- a/circ/waitingreservestransfers.pl +++ b/circ/waitingreservestransfers.pl @@ -78,7 +78,7 @@ foreach my $br (keys %$branches) { if ($gettitle->{'holdingbranch'} eq $default){ my $getborrower = getpatroninformation (\%env,$num->{'borrowernumber'}); $getreserv{'reservedate'} = format_date($num->{'reservedate'}); - my $calcDate=DateCalc($num->{'reservedate'},"+".C4::Context->preference('MaxDaysRecoveryReserves')." days"); + my $calcDate=DateCalc($num->{'reservedate'},"+".C4::Context->preference('TransfersMaxDaysWarning')." days"); my $warning=Date_Cmp(ParseDate("today"),$calcDate); if ($warning>0){ $getreserv{'messcompa'} = 1; diff --git a/koha-tmpl/intranet-tmpl/prog/en/circ/branchreserves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/circ/branchreserves.tmpl index 030d0435a2..08393251d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/circ/branchreserves.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/circ/branchreserves.tmpl @@ -6,10 +6,10 @@

Circulation: Branch Reserves

-

Reservs of your library the :

+

Reserves of your library the :

-

Reserv find for the document()must transfered

+

Reserve find for the document()must transfered

This documen is reserved by : at the library : , Please put this document in transfer .

@@ -21,7 +21,7 @@

This document is in Waiting status

This document () is reserved by : , - Please keep this document for the next reserv . + Please keep this document for the next reserve .

@@ -32,7 +32,7 @@
- + @@ -43,7 +43,7 @@ class="problem" > - +
Reservs of your libraryReserves of your library
Available since

Reserv Over

Reserve Over

"> @@ -66,9 +66,9 @@ "> - value="Cancel reserv and return this document" + value="Cancel reserve and return this document" - value="Cancel reserv" + value="Cancel reserve" > diff --git a/koha-tmpl/intranet-tmpl/prog/en/circ/waitingreservestransfers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/circ/waitingreservestransfers.tmpl index 0587fefba2..3d4443c5b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/circ/waitingreservestransfers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/circ/waitingreservestransfers.tmpl @@ -8,7 +8,7 @@ -

Circulation: Transfers in wait

+

Circulation: Transfers To do

Transfers to do

@@ -17,10 +17,10 @@ - + - + @@ -28,7 +28,7 @@ class="problem" > - +
Reservs in wait to the library : Reserves in wait to the library :
Date of reservDate of reserve Title Borrower Localisation

Reserv over

Reserve over

"> diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet.css b/koha-tmpl/intranet-tmpl/prog/en/includes/intranet.css index b14951dbc7..18f7fb6e9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/intranet.css +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/intranet.css @@ -64,3 +64,32 @@ legend { font-size:120%; font-weight:bold; } + +.problem { + color: white; + background-color:red; +} + +/* css styles for reserves color alerts */ +.onloan { + background-color: #FFED3D; +} + +.reserved { + background-color: #8EBAFF; +} + +.transfered { + background-color: #F9FF9A; +} + +.inwait { + background-color: #33CC99; +} + +.other { + background-color: #FF0000; +} + +/* end of css styles for reserves color alerts */ + -- 2.39.5