From 86a1a02f776b523794c6965caac454ffd3e61bc1 Mon Sep 17 00:00:00 2001 From: senator Date: Tue, 15 Feb 2011 16:10:25 -0500 Subject: [PATCH] Renewals working, with feedback displayed --- Open-ILS/web/css/skin/default/opac/style.css | 2 + .../web/templates/default/opac/myopac/circs.tt2 | 54 ++++++++++++++++------ 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index 6bb591895b..faa3f57447 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -928,3 +928,5 @@ div.select-wrapper:hover { #rdetail_copy_info_table td { padding: 3px; } .search_page_nav_link { cursor: pointer; } #opac.result.sort { width: 160px; } +.renew-summary { font-size: 125%; font-style: italic; margin: 0.5ex 0; } +.failure-text { margin-left: 4em; font-style: italic; color: #ff0000; } diff --git a/Open-ILS/web/templates/default/opac/myopac/circs.tt2 b/Open-ILS/web/templates/default/opac/myopac/circs.tt2 index 8d7fa21cc2..2e1d3a4442 100644 --- a/Open-ILS/web/templates/default/opac/myopac/circs.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/circs.tt2 @@ -24,24 +24,36 @@
- - Current Items Checked Out - - - Export List + [% l('Current Items Checked Out') %] + + [% l('Export List') %]
+ [% IF ctx.success_renewals %] +
+ [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %] +
+ [% END %] + [% IF ctx.failed_renewals %] +
+ [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %] +
+ [% END %]
+
- [% END %] + [% IF circ.renewal_response AND + circ.renewal_response.textcode != 'SUCCESS' %] + + + + [% END; + END %]
- Renew Selected Titles + - Save + Renewing Help
- + @@ -90,7 +104,9 @@ PROCESS get_marc_attrs args=attrs; %]
- +
[%# XXX colspan="0" does not work in IE %] + + [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %] + +
+
-
-
[% l("item(s) successfully renewed") %]
- [% l("Are you sure you wish to renew the selected item(s)?") %] [% l("The system is unable to renew the selected item at this time. This usually means the item is needed to fulfill a hold. Please see a librarian for further help.") %] [% l("Library policy prevents the renewal of this item at this time. Please see a librarian for further details.") %] -- 2.11.0