View | Details | Raw Unified | Return to bug 18660
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc (-25 / +34 lines)
Lines 1-46 Link Here
1
[% BLOCK asksysadmin %]<span>Please have your system administrator check the error log for details.</span>[% END %]
2
[% BLOCK b_batch %]<span>Batch: </span>[% END %]
3
[% BLOCK b_patronlist %]<span>Patron list: </span>[% END %]
4
[% BLOCK b_patronnumber %]<span>Patron number: </span>[% END %]
5
[% BLOCK b_layout %]<span>Layout: </span>[% END %]
6
[% BLOCK b_template %]<span>Template: </span>[% END %]
7
1
[% IF ( error || CGI.param('pdferr') )  %]
8
[% IF ( error || CGI.param('pdferr') )  %]
2
<div class="dialog alert">
9
<div class="dialog alert">
3
  <p>
10
  <p>
4
    <strong>WARNING:</strong>
11
    <strong>WARNING:</strong>
5
        [% IF CGI.param('pdferr') %]
12
        [% IF CGI.param('pdferr') %]<span>Error while creating PDF file. </span>
6
        Error while creating PDF file.
13
            [% IF CGI.param('errnocards') %]<span>No cards created (empty batch or list?) </span>[% END %]
7
        [% IF CGI.param('errnocards') %]No cards created (empty batch or list?)[% END %]
14
            [% IF CGI.param('errba') %][% INCLUDE b_batch %]<span class="ex">[%- CGI.param('errba') -%]</span>[% END %]
8
        [% IF CGI.param('errba') %]Batch: [% '<span class="ex">' _ CGI.param('errba') _ '</span>' %][% END %]
15
            [% IF CGI.param('errpl') %][% INCLUDE b_patronlist %]<span class="ex">[%- CGI.param('errpl') -%]</span>][% END %]
9
        [% IF CGI.param('errpl') %]Patron list: [% '<span class="ex">' _ CGI.param('errpl') _ '</span>' %][% END %]
16
            [% IF CGI.param('errpt') %][% INCLUDE b_patronnumber %]<span class="ex">[%- CGI.param('errpt') -%]</span>[% END %]
10
        [% IF CGI.param('errpt') %]Patron number: [% '<span class="ex">' _ CGI.param('errpt') _ '</span>' %][% END %]
17
            [% IF CGI.param('errlo') %][% INCLUDE b_layout %]<span class="ex">[%- CGI.param('errlo') -%]</span>[% END %]
11
        [% IF CGI.param('errlo') %]Layout: [% '<span class="ex">' _ CGI.param('errlo') _ '</span>' %][% END %]
18
            [% IF CGI.param('errtpl') %][% INCLUDE b_template %]<span class="ex">[%- CGI.param('errtpl') -%]</span>[% END %]
12
        [% IF CGI.param('errtpl') %]Template: [% '<span class="ex">' _ CGI.param('errtpl') _ '</span>' %][% END %]
19
            [% INCLUDE asksysadmin %]
13
14
        Please have your system administrator check the error log for details.
15
        [% END %]
20
        [% END %]
21
16
        [% IF ( error == 101 ) %]
22
        [% IF ( error == 101 ) %]
17
        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.
23
           [% IF ( card_element ) %]<span>The database returned an error while saving [% card_element %] [% element_id %]. </span>
24
          [% ELSE %]<span>The database returned an error while attempting a save operation. </span>[% END %][% INCLUDE asksysadmin %]
18
        [% ELSIF ( error == 102 ) %]
25
        [% ELSIF ( error == 102 ) %]
19
        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.
26
            [% IF ( card_element ) %]<span>The database returned an error while deleting [% card_element %] [% element_id %]. </span>
27
            [% ELSIF ( image_ids ) %]<span>The database returned an error while deleting [% image_ids %]. </span>
28
            [% ELSE %]<span>The database returned an error while attempting a delete operation. </span>[% END %][% INCLUDE asksysadmin %]
20
        [% ELSIF ( error == 201 ) %]
29
        [% ELSIF ( error == 201 ) %]
21
        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.
30
            [%IF ( element_id ) %]<span>An unsupported operation was attempted on [% card_element %] [% element_id %]. </span>
31
            [% ELSE %]<span>An unsupported operation was attempted. </span>[% END %][% INCLUDE asksysadmin %]
22
        [% ELSIF ( error == 202 ) %]
32
        [% ELSIF ( error == 202 ) %]
23
        An error has occurred. Please ask your system administrator to check the error log for more details.
33
            <span>An error has occurred. </span>[% INCLUDE asksysadmin %]
24
        [% ELSIF ( error == 203 ) %]
34
        [% ELSIF ( error == 203 ) %]
25
        A non-existent or invalid library code was supplied. Please <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">verify</a> that you have a library selected.
35
            <span>A non-existent or invalid library code was supplied. Please verify that you have a library set. </span><a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
26
        [% ELSIF ( error == 301 ) %]
36
        [% ELSIF ( error == 301 ) %]
27
        An error has occurred while attempting to upload the image file. Please ask your system administrator to check the error log for more details.
37
            <span>An error has occurred while attempting to upload the image file. </span>[% INCLUDE asksysadmin %]
28
        [% ELSIF ( error == 302 ) %]
38
        [% ELSIF ( error == 302 ) %]
29
        Image exceeds 500KB. Please resize and import again.
39
            <span>Image exceeds 500KB. Please resize and import again. </span>
30
        [% ELSIF ( error == 303 ) %]
40
        [% ELSIF ( error == 303 ) %]
31
        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.
41
            <span>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. </span>
32
        [% ELSIF ( error == 304 ) %]
42
        [% ELSIF ( error == 304 ) %]
33
        An image with the name '[% IMAGE_NAME %]' already exists.
43
            <span>An image with the name '[% IMAGE_NAME %]' already exists.</span>
34
        [% ELSIF ( error == 401 ) %]
44
        [% ELSIF ( error == 401 ) %]
35
        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.
45
            <span>An error has occurred and no items have been added to batch [% batch_id %]. </span>[% INCLUDE asksysadmin %]
36
        [% ELSIF ( error == 402 ) %]
46
        [% ELSIF ( error == 402 ) %]
37
        The item(s) was not added because the library is not set. Please set your library before adding items to a batch.
47
            <span>No items added because the library is not set. Please set your library before adding items to a batch. </span><a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a>
38
        [% ELSIF ( error == 403 ) %]
48
        [% ELSIF ( error == 403 ) %]
39
        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.
49
            <span>An error has occurred and the item(s) was not removed from batch [% batch_id %]. </span>[% INCLUDE asksysadmin %]
40
        [% ELSIF ( error == 404 ) %]
50
        [% ELSIF ( error == 404 ) %]
41
        An error has occurred and batch [% batch_id %] was not deleted.  Please have your system administrator check the error log for details.
51
            <span>An error has occurred and batch [% batch_id %] was not deleted. </span>[% INCLUDE asksysadmin %]
42
        [% ELSIF ( error == 405 ) %]
52
        [% ELSIF ( error == 405 ) %]
43
        An error has occurred and batch [% batch_id %] not fully de-duplicated.
53
            <span>An error has occurred and batch [% batch_id %] was not fully de-duplicated. </span>
44
        [% END %]
54
        [% END %]
45
  </p>
55
  </p>
46
</div>
56
</div>
47
- 

Return to bug 18660