@@ -, +, @@ - Go to 'manage images' and try to upload a file which exceeds the 500KBfile size limit - Go to the edit batch page and manually append an error code to the URL: /cgi-bin/koha/patroncards/edit-batch.pl?op=new&error=403 - Go to one of the manage pages and manually append an error code to the URL: /cgi-bin/koha/patroncards/manage.pl?card_element=profile&error=201 --- .../prog/en/includes/error-messages.inc | 108 -------------------- .../prog/en/includes/patroncards-errors.inc | 35 +++++++ .../prog/en/modules/patroncards/edit-batch.tt | 3 +- .../prog/en/modules/patroncards/image-manage.tt | 2 +- .../prog/en/modules/patroncards/manage.tt | 2 +- 5 files changed, 39 insertions(+), 111 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/error-messages.inc create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc --- a/koha-tmpl/intranet-tmpl/prog/en/includes/error-messages.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/error-messages.inc @@ -1,108 +0,0 @@ -[% IF ( error ) %] - - -[% END %] - --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc @@ -0,0 +1,35 @@ +[% IF ( error ) %] +
+

+ WARNING: + [% IF ( 101 ) %] + The database returned an error while [% IF ( card_element ) %]saving [% card_element %] [% element_id %][% ELSE %]attempting a save operation[% END %]. Please have your system administrator check the error log for details. + [% ELSIF ( 102 ) %] + The database returned an error while [% IF ( card_element ) %]deleting [% card_element %] [% element_id %][% ELSIF ( image_ids ) %][% image_ids %][% ELSE %]attempting a delete operation[% END %]. Please have your system administrator check the error log for details. + [% ELSIF ( 201 ) %] + An unsupported operation was attempted[% IF ( element_id ) %] on [% card_element %] [% element_id %][% END %]. Please have your system administrator check the error log for details. + [% ELSIF ( 202 ) %] + An error has occurred. Please ask your system administrator to check the error log for more details. + [% ELSIF ( 203 ) %] + A non-existent or invalid library code was supplied. Please verify that you have a library selected. + [% ELSIF ( 301 ) %] + An error has occurred while attempting to upload the image file. Please ask you system administrator to check the error log for more details. + [% ELSIF ( 302 ) %] + Image exceeds 500KB. Please resize and import again. + [% ELSIF ( 303 ) %] + The database image quota currently only allows a maximum of [% image_limit %] images to be stored at any one time. Please delete one or more images to free up quota space. + [% ELSIF ( 401 ) %] + An error has occurred and the item(s) was not added to batch [% batch_id %]. Please have your system administrator check the error log for details. + [% ELSIF ( 402 ) %] + The item(s) was not added because the library is not set. Please set your library before adding items to a batch. + [% ELSIF ( 403 ) %] + An error has occurred and the item(s) was not removed from batch [% batch_id %]. Please have your system administrator check the error log for details. + [% ELSIF ( 404 ) %] + An error has occurred and batch [% batch_id %] was not deleted. Please have your system administrator check the error log for details. + [% ELSIF ( 405 ) %] + An error has occurred and batch [% batch_id %] not fully de-duplicated. + [% ELSE %] + [% END %] +

+
+[% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt @@ -152,7 +152,8 @@ - [% INCLUDE 'error-messages.inc' %] + [% INCLUDE 'patroncards-batches-toolbar.inc' %] + [% INCLUDE 'patroncards-errors.inc' %]
Current library: [% LoginBranchname %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt @@ -56,7 +56,7 @@
- [% INCLUDE 'error-messages.inc' %] + [% INCLUDE 'patroncards-errors.inc' %]

Upload Images

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -108,7 +108,7 @@
[% INCLUDE 'patroncards-toolbar.inc' %] - [% INCLUDE 'error-messages.inc' %] + [% INCLUDE 'patroncards-errors.inc' %]
Current library: [% LoginBranchname %]
--