From 9224973b0eac3fe42f518e27847a399473de637c Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 8 Sep 2009 19:34:26 +1200 Subject: [PATCH] Fixing circulation template --- .../prog/en/modules/circ/circulation.tmpl | 354 ++++++++++++------ 1 file changed, 236 insertions(+), 118 deletions(-) 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 69f969d63e..c43201a96f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -21,7 +21,7 @@ $.tablesorter.addParser({ $.tablesorter.defaults.widgets = ['zebra']; $("#issuest").tablesorter({ dateFormat: 'uk', - headers: { 1: { sorter: 'articles' },5: { sorter: false },6:{sorter:false}} + headers: { 1: { sorter: 'articles' },5: { sorter: false },6:{sorter:false},7:{sorter:false},8:{sorter:false}} }); $("#issuest").bind("sortEnd",function() { $("#previous").parents("tr").remove(); // 'previous checkouts' header chokes table sorter @@ -41,14 +41,91 @@ $.tablesorter.addParser({ } } ).attr( 'checked', false ); - $("td").click(function(e){ - if(e.target.tagName.toLowerCase() == 'td'){ - $(this).find("input:checkbox").each( function() { - $(this).attr('checked', !$(this).attr('checked')); - }); - } - }); + +var allcheckboxes = $(".checkboxed"); + $("#renew_all").click(function(){ + $(allcheckboxes).checkCheckboxes(":input[name*=items]"); + $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); + }); + $("#return_all").click(function(){ + $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]"); + $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); + }); + $("#CheckAllitems").click(function(){ + $(allcheckboxes).checkCheckboxes(":input[name*=items]"); + $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false; + }); + $("#CheckNoitems").click(function(){ + $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false; + }); + $("#CheckAllreturns").click(function(){ + $(allcheckboxes).checkCheckboxes(":input[name*=barcodes]"); + $(allcheckboxes).unCheckCheckboxes(":input[name*=items]"); return false; + }); + $("#CheckNoreturns" ).click(function(){ + $(allcheckboxes).unCheckCheckboxes(":input[name*=barcodes]"); return false; + }); + + + + $( '#override_limit' ).click( function () { + if ( this.checked ) { + $( '.renewals-allowed' ).show(); $( '.renewals-disabled' ).hide(); + } else { + $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); + } + } ).attr( 'checked', false ); + + + $("td").click(function(e){ + if(e.target.tagName.toLowerCase() == 'td'){ + $(this).find("input:checkbox").each( function() { + $(this).attr('checked', !$(this).attr('checked')); + if($(this).attr('checked')){ + $(this).parent().siblings().find("input:checkbox").each(function(){ + if($(this).attr('checked')){ $(this).attr('checked',''); } + }); + } + }); + } + }); + }); +function uncheck_sibling(me){ +nodename=me.getAttribute("name"); +if (nodename =="barcodes[]"){ + var Node=me.parentNode.previousSibling; + while (Node.nodeName!="TD"){Node=Node.previousSibling} + var Nodes=Node.childNodes; + for (var i=0;i @@ -60,7 +137,6 @@ $.tablesorter.addParser({ -
@@ -71,30 +147,54 @@ $.tablesorter.addParser({
-
+ +
Patron's account has been renewed until
-
+

Please Confirm Checkout

+
    -
  • The patron has a debt of $
  • -
  • Item is currently checked out to this patron. Renew?
  • -
  • Item is consigned for
  • -
  • Item is on reserve for
  • -
  • Item ( ) checked out to . Check in and check out?
  • -
  • Too many checked out (already checked out / max : )
  • -
  • Overdues
  • -
  • Item not for loan, are you sure you want to check it out ?

    -
  • This patron can't check out this item per library circulation policy
  • + +
  • The patron has a debt of
  • + + + +
  • Item is currently checked out to this patron. Renew?
  • + + + +
  • Item is consigned for
  • + + + +
  • Item is on reserve for
  • + + + +
  • Item ( ) checked out to . Check in and check out?
  • + + + +
  • Too many checked out (already checked out / max : )
  • + + + +
  • This patron can't check out this item per library circulation policy + + + +
  • Item is normally not for loan. Check out anyway?
  • +
@@ -103,16 +203,20 @@ $.tablesorter.addParser({

-

-

+

+ + + +

- + " /> " /> + " /> " /> " /> @@ -125,10 +229,12 @@ $.tablesorter.addParser({ " />
+
- -
+ + +
    @@ -199,7 +305,6 @@ No patron matched - @@ -233,6 +338,10 @@ No patron matched
    + + + +
    Enter item barcode:
    @@ -254,7 +363,7 @@ No patron matched } }; function refocus(calendar) { - document.getElementById('barcode').focus(); + $('#barcode').focus(); calendar.hide(); }; //#TODO - ADD syspref (AllowPostDatedCheckouts). @@ -293,9 +402,7 @@ No patron matched
    - -

    Checking out to ()

    @@ -318,11 +425,14 @@ No patron matched expiry date is before the date due, the date due will be set to the expiry date +
  • Expiration: Patron's card has expired. Patron's card expired on &cardnumber=&destination=circ&reregistration=y">Renew or &categorycode=">Edit Details +
  • +
  • Address: Patron's address in doubt
  • @@ -334,7 +444,8 @@ No patron matched
  • Restricted: Patron's account is restricted &cardnumber=&destination=circ&status=0">Lift restriction
  • -
  • Overdues: Patron has ITEMS OVERDUE. See highlighted items below
  • + +
  • Overdues: Patron has ITEMS OVERDUE. See highlighted items below
  • @@ -343,7 +454,7 @@ No patron matched
  • - Fines: Patron has ">Outstanding fines of $. + Fines: Patron has ">Outstanding fines of . Checkouts are blocked because fine balance is over the limit. @@ -380,6 +491,9 @@ No patron matched
  • + + +
    @@ -391,7 +505,7 @@ No patron matched 0 Checkouts
  • - Holds(s) + Hold(s) 0 Holds
  • @@ -401,23 +515,54 @@ No patron matched
    - + " /> " /> " /> - - - - - - - - + + + + + + + + + + + + + + + + + @@ -427,44 +572,19 @@ No patron matched - - + + + - - - + + - + + + + + @@ -496,8 +622,8 @@ No patron matched - - + + @@ -509,44 +635,21 @@ No patron matched - + + - - - + + - + + + + + @@ -582,15 +691,16 @@ No patron matched
    Due dateTitleItem TypeCall noBarcodeRenewalsRenew?Check In?Due dateTitleItem TypeChecked out onCall noChargePriceRenew

    select all | none

    Check in

    select all | none

    Totals: +

    + Renewal due date: " /> + /lib/calendar/cal.gif" id="newduedate_button" alt="Show Calendar" /> + +

    +

    + +

    +
    &type=intra">, by - - - - " /> - - &type=intra">, by - &itemnumber=#item"> " alt="" /> &itemnumber=#item"> + " checked="checked" style="display: none;" /> " checked="checked" /> - - " /> - - - - - - On Hold - - - Too Many Renewals - - - - + " /> ">Check InCheckin Failed" onclick="uncheck_sibling(this);" /> + " checked="checked" style="display: none;" /> + Renewal Failed
    Previous checkouts
    Previous checkouts
    Previous checkouts
    Previous checkouts
    &type=intra">
    -
    &type=intra">, by - &itemnumber=#item"> - - " /> - &itemnumber=#item"> + 0 " checked="checked" style="display: none;" /> " checked="checked" /> - - " /> - - - - - - On Hold - - - Too Many Renewals - - - - + " /> ">Check InCheckin Failed" onclick="uncheck_sibling(this);" /> + " checked="checked" style="display: none;" /> + Renewal Failed
    - + - - - -
    + + + + +
    @@ -601,21 +711,22 @@ No patron matched
    +
    + - + "> - - + +
    Hold date TitleItem Type Call Number Barcode PriorityDelete?
    ">, by ">, by Item waiting at @@ -626,15 +737,22 @@ No patron matched hasn't been transfered yet from - - Hold priority - + + " /> + " /> +
    +
    +
    -

    Patron has no pending holds.

    +

    Patron has nothing on hold.

    -- 2.39.5