From 35958a8e03b253eae55319d0a760263e249954dd Mon Sep 17 00:00:00 2001 From: John Beppu Date: Mon, 22 Dec 2008 11:07:54 -0600 Subject: [PATCH] bug 2874 [2/3]: added awareness of circulate/override_renewals subpermission A few minor whitespace cleanups were thrown in as well. Signed-off-by: Galen Charlton --- circ/circulation.pl | 2 +- .../prog/en/modules/circ/circulation.tmpl | 17 +++++++++++------ .../prog/en/modules/members/moremember.tmpl | 4 ++++ members/moremember.pl | 4 ++-- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 417cd8f034..9289b05eaa 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -83,7 +83,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( query => $query, type => "intranet", authnotrequired => 0, - flagsrequired => { circulate => 1 }, + flagsrequired => { circulate => 'circulate_remaining_permissions' }, } ); 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 5f812b1beb..f5bbb62bca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -412,8 +412,9 @@ No patron matched Item Type Call no Barcode + Renewals Renew? - Check In? + Check In? @@ -434,6 +435,7 @@ No patron matched &itemnumber=#item"> + " checked="checked" style="display: none;" /> @@ -493,8 +495,8 @@ No patron matched -Previous checkouts -Previous checkouts +Previous checkouts +Previous checkouts @@ -515,6 +517,7 @@ No patron matched &itemnumber=#item"> + " checked="checked" style="display: none;" /> @@ -574,18 +577,20 @@ No patron matched - +
- + + +
- +

Patron has nothing checked out.

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index c72637d4b8..2b1d3beebf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -42,6 +42,7 @@ $(document).ready(function() { $("#CheckAllreturns").click(function(){ $(".checkboxed").checkCheckboxes(":input[@name*=barcodes]"); $(".checkboxed").unCheckCheckboxes(":input[@name*=items]"); return false; }); $("#CheckNoreturns").click(function(){ $(".checkboxed").unCheckCheckboxes(":input[@name*=barcodes]"); return false; }); + $( '#override_limit' ).click( function () { if ( this.checked ) { @@ -50,6 +51,7 @@ $(document).ready(function() { $( '.renewals-allowed' ).hide(); $( '.renewals-disabled' ).show(); } } ).attr( 'checked', false ); + $("td").click(function(e){ if(e.target.tagName.toLowerCase() == 'td'){ @@ -467,10 +469,12 @@ if (nodename =="barcodes[]"){
+ + diff --git a/members/moremember.pl b/members/moremember.pl index 151f9c2a30..941272d8bd 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -351,9 +351,9 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { } $template->param( - detailview => 1, + detailview => 1, AllowRenewalLimitOverride => C4::Context->preference("AllowRenewalLimitOverride"), - DHTMLcalendar_dateformat=>C4::Dates->DHTMLcalendar(), + DHTMLcalendar_dateformat=>C4::Dates->DHTMLcalendar(), roaddetails => $roaddetails, borrowernumber => $borrowernumber, categoryname => $data->{'description'}, -- 2.39.5