From 4f5a8f076c4fb41351c31858326c1d3af85c4253 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Tue, 10 May 2011 14:27:29 -0500 Subject: [PATCH] Bug 6323 -- Error handling cleanup for moveitem.tt Content-Type: text/plain; charset="utf-8" Added button to retry attaching item, added default bib view handling, cosmetic changes to the error display (buttons now in error div). --- .../prog/en/modules/cataloguing/moveitem.tt | 105 +++++++++++++++----- 1 files changed, 81 insertions(+), 24 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt index 4956f18..2c1afd7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/moveitem.tt @@ -5,33 +5,90 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] - +
[% IF ( error ) %]
- [% IF ( errornonewitem ) %]ERROR: Unable to create the new item.[% END %] - [% IF ( errornoitem ) %]ERROR: Unable to get the item.[% END %] - [% IF ( errornoitemnumber ) %]ERROR: Unable to get the item number from this barcode.[% END %] -
-
- - -
-[% ELSE %] - [% IF ( success ) %] -
The item has successfully been attached to [% INCLUDE 'biblio-default-view.inc' %][% bibliotitle |html %].[% IF ( BiblioDefaultViewmarc ) %] -
-[% ELSIF ( BiblioDefaultViewlabeled_marc ) %] - -[% ELSIF ( BiblioDefaultViewisbd ) %] - -[% ELSE %] - -[% END %] - - -
+ [% IF ( errornonewitem ) %]ERROR: Unable to create the new item.

+ + [% IF ( BiblioDefaultViewmarc ) %] +

+ [% ELSIF ( BiblioDefaultViewlabeled_marc ) %] + + [% ELSIF ( BiblioDefaultViewisbd ) %] + + [% ELSE %] + + [% END %] + + +
+
+ + +
+
+ [% END %] + + [% IF ( errornoitem ) %]ERROR: Unable to get the item.

+ + [% IF ( BiblioDefaultViewmarc ) %] +

+ [% ELSIF ( BiblioDefaultViewlabeled_marc ) %] + + [% ELSIF ( BiblioDefaultViewisbd ) %] + + [% ELSE %] + + [% END %] + + +
+
+ + +
+ + [% END %] + + [% IF ( errornoitemnumber ) %]ERROR: Unable to get the item number from this barcode.

+ + [% IF ( BiblioDefaultViewmarc ) %] +

+ [% ELSIF ( BiblioDefaultViewlabeled_marc ) %] + + [% ELSIF ( BiblioDefaultViewisbd ) %] + + [% ELSE %] + + [% END %] + + +
+
+ + +
+ + [% END %] + + [% ELSE %] + [% IF ( success ) %] +
The item has successfully been attached to [% INCLUDE 'biblio-default-view.inc' %][% bibliotitle |html %]. + [% IF ( BiblioDefaultViewmarc ) %] +
+ [% ELSIF ( BiblioDefaultViewlabeled_marc ) %] + + [% ELSIF ( BiblioDefaultViewisbd ) %] + + [% ELSE %] + + [% END %] + + +
+
[% ELSE %] [% IF ( missingparameter ) %] @@ -39,7 +96,7 @@ [% IF ( missingbiblionumber ) %]
-
Enter biblionumber:
+
Enter biblionumber:
-- 1.5.6.5