From 372cb7bef6b00e1681aa615c7b677e03452bdde4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Aug 2013 15:37:46 -0400 Subject: [PATCH] [PASSED QA] Bug 10493 [Template follow-up] Add renewal script This template followup fixes some minor template errors and adds some style to dialog buttons matching those seen on the circulation page. To test, submit barcodes to trigger the various error conditions: Non-existant barcode, over the renew limit, restricted patron, item on hold. Override and Ignore buttons should be properly styled and functional. Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/circ/renew.tt | 49 +++++++--------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt index eba8892..fe090b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt @@ -8,16 +8,6 @@ [% INCLUDE 'doc-head-close.inc' %] - - @@ -25,56 +15,49 @@ $(document).ready(function () { [% INCLUDE 'header.inc' %] [% INCLUDE 'circ-search.inc' %] - +
-
-
[% IF error %]

Cannot renew:

-

+ [% IF error == "no_item" %] - No item matches this barcode +

No item matches this barcode

[% ELSIF error == "no_checkout" %] - [% item.biblio.title %] [% item.biblioitem.subtitle %] - ( [% item.barcode %] ) - is not checked out to a patron. +

[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) is not checked out to a patron.

[% ELSIF error == "too_many" %] - [% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) - has been renewed the maximum number of times by - [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) +

[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) has been renewed the maximum number of times by [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] )

[% IF Koha.Preference('AllowRenewalLimitOverride') %] -
+ - +
[% END %] [% ELSIF error == "on_reserve" %] - This item is on hold for other patrons. +

This item is on hold for another patron.

-
+ - +
[% ELSIF error == "patron_restricted" %] - [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) - is currently restricted. +

[% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) is currently restricted.

[% ELSE %] @@ -82,18 +65,18 @@ $(document).ready(function () { [% END %] - Ignore & continue -

+
+ +
[% END %] [% IF date_due %]
+

Item renewed:

-

Item renewed:

- [% item.biblio.title %] [% item.biblioitem.subtitle %] - ( [% item.barcode %] ) + ( [% item.barcode %] ) renewed for [% borrower.firstname %] [% borrower.surname %] ( [% borrower.cardnumber %] ) now due on [% date_due | $KohaDates %] -- 1.8.1.2