From 4b09332aede12492b6646fcd2751bee6e4b20217 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 29 Sep 2007 10:15:03 -0500 Subject: [PATCH] More tweaks to holds interface. Using js to link hold item and hold any checkboxes. Signed-off-by: Chris Cormack --- .../prog/en/css/staff-global.css | 4 ++ .../prog/en/modules/reserve/request.tmpl | 58 ++++++++++++------- 2 files changed, 41 insertions(+), 21 deletions(-) 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 c1474ea86c..2153966d93 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -676,3 +676,7 @@ fieldset.rows fieldset.action { text-align : center; } +.checkedout { + color : #999999; + font-style : italic; +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl index 53bc62f687..203911cab6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl @@ -49,6 +49,29 @@ if (alreadyreserved > "0"){ } } + $(document).ready(function() { + $("#requestany").click(function() { + if(this.checked){ + $("input[@name=checkitem]").each(function() { + $(this).attr("checked",""); + }); + } + }); + $("input[@name=checkitem]").click(function() { + onechecked = 0; + $("input[@name=checkitem]").each(function() { + if(this.checked){ + onechecked = 1; + } + }); + if(onechecked == 1){ + $("#requestany").attr("checked",""); + } else { + $("#requestany").attr("checked","checked"); + } + }); + }); + // ]]> @@ -112,8 +135,7 @@ if (alreadyreserved > "0"){

- Branch Mismatch - The patron isn't in his own library + Warning: Pickup Library is different than Patron's Home Library

@@ -163,8 +185,8 @@ if (alreadyreserved > "0"){ - - + + @@ -185,7 +207,7 @@ if (alreadyreserved > "0"){
BarcodeHome branchHolding branchHome LibraryHolding Library Call number Information Cancel a Reserve - On loan, Return expected on + Due @@ -204,27 +226,21 @@ if (alreadyreserved > "0"){ - This document is not for loan () + This item is not for loan () - Document in transfer from the library : , - to : , the : + Item in transit from , + to , on - Can't be cancelled, when item on transfer + Can't be cancelled when item is on transfer - &CancelBorrowerNumber=&CancelItemnumber=" onclick="if (window.confirm('You will delete a reserve, are you sure ?')) - {return true;} - else {return false;}">Cancel A reserve - Item reserved for : - -
- expected at : -
+ Item on hold for + , expected at . &CancelBorrowerNumber=&CancelItemnumber=" onclick="if (window.confirm('You will delete a reserve, are you sure ?')) {return true;} else {return false;}">Cancel hold @@ -236,7 +252,7 @@ if (alreadyreserved > "0"){
-

+

@@ -262,7 +278,7 @@ if (alreadyreserved > "0"){ Patron Notes Date - Pick up location + Pick up Library Details @@ -290,12 +306,12 @@ if (alreadyreserved > "0"){ - Document waiting at /> + Item waiting at /> Waiting to be pulled - Document being transfered to /> + Item being transfered to />