Lines 91-125
$(document).ready(function() {
Link Here
|
91 |
<div id="yui-main"> |
91 |
<div id="yui-main"> |
92 |
<div class="yui-b"> |
92 |
<div class="yui-b"> |
93 |
<h1>Batch record modification</h1> |
93 |
<h1>Batch record modification</h1> |
94 |
[% FOREACH message IN messages %] |
94 |
|
95 |
[% IF message.type == 'success' %] |
95 |
[% IF ( messages ) %] |
96 |
<div class="dialog message"> |
96 |
<div class="dialog message"> |
97 |
[% ELSIF message.type == 'warning' %] |
97 |
|
98 |
<div class="dialog alert"> |
98 |
[% FOREACH message IN messages %] |
99 |
[% ELSIF message.type == 'error' %] |
99 |
[% IF message.type == 'success' %] |
100 |
<div class="dialog error" style="margin:auto;"> |
100 |
<div><i class="fa fa-check success"></i> |
101 |
[% END %] |
101 |
[% ELSIF message.type == 'warning' %] |
102 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td> |
102 |
<div><i class="fa fa-warning warn"></i> |
103 |
[% IF message.code == 'no_action_defined_for_the_template' %] |
103 |
[% ELSIF message.type == 'error' %] |
104 |
The selected template (id=[% message.mmtid%]) does not exist or no action is defined. |
104 |
<div><i class="fa fa-exclamation error"></i> |
105 |
[% ELSIF message.code == 'biblio_not_exists' %] |
105 |
[% END %] |
106 |
The biblionumber [% message.biblionumber %] does not exist in the database. |
106 |
[% IF message.code == 'no_action_defined_for_the_template' %] |
107 |
[% ELSIF message.code == 'authority_not_exists' %] |
107 |
The selected template (id=[% message.mmtid%]) does not exist or no action is defined. |
108 |
The authority id [% message.authid %] does not exist in the database. |
108 |
[% ELSIF message.code == 'biblio_not_exists' %] |
109 |
[% ELSIF message.code == 'biblio_not_modified' %] |
109 |
Bibliographic record [% message.biblionumber %] does not exist in the database. |
110 |
The biblio <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has not been modified. An error occurred on modifying it. |
110 |
[% ELSIF message.code == 'authority_not_exists' %] |
111 |
[% ELSIF message.code == 'authority_not_modified' %] |
111 |
Authority record [% message.authid %] does not exist in the database. |
112 |
The authority <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has not been modified. An error occurred on modifying it. |
112 |
[% ELSIF message.code == 'biblio_not_modified' %] |
113 |
[% ELSIF message.code == 'biblio_modified' %] |
113 |
Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has not been modified. An error occurred on modifying it. |
114 |
The biblio <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has successfully been modified. |
114 |
[% ELSIF message.code == 'authority_not_modified' %] |
115 |
[% ELSIF message.code == 'authority_modified' %] |
115 |
Authority record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has not been modified. An error occurred on modifying it. |
116 |
The authority <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has successfully been modified. |
116 |
[% ELSIF message.code == 'biblio_modified' %] |
117 |
[% END %] |
117 |
Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.biblionumber %]</a> has successfully been modified. |
118 |
[% IF message.error %] |
118 |
[% ELSIF message.code == 'authority_modified' %] |
119 |
(The error was: [% message.error%], see the Koha logfile for more information). |
119 |
Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid %]">[% message.authid %]</a> has successfully been modified. |
|
|
120 |
[% END %] |
121 |
[% IF message.error %] |
122 |
(The error was: [% message.error%]. See the Koha logfile for more information). |
123 |
[% END %] |
124 |
</div> |
125 |
[% END %] |
126 |
|
127 |
</div> |
120 |
[% END %] |
128 |
[% END %] |
121 |
</div> |
129 |
|
122 |
[% END %] |
|
|
123 |
[% IF view == 'form' %] |
130 |
[% IF view == 'form' %] |
124 |
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl"> |
131 |
<form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl"> |
125 |
<fieldset class="rows"> |
132 |
<fieldset class="rows"> |
Lines 259-282
$(document).ready(function() {
Link Here
|
259 |
</div> |
266 |
</div> |
260 |
</form> |
267 |
</form> |
261 |
[% ELSE %] |
268 |
[% ELSE %] |
262 |
There is no record ids defined. |
269 |
<div class="dialog message"> |
|
|
270 |
No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
271 |
</div> |
263 |
[% END %] |
272 |
[% END %] |
264 |
[% ELSIF view == 'report' %] |
273 |
[% ELSIF view == 'report' %] |
265 |
[% IF report.total_records == report.total_success %] |
274 |
[% IF report.total_records == report.total_success %] |
266 |
All records have successfully been modified! |
275 |
<div class="dialog message"> |
|
|
276 |
All records have successfully been modified! <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
277 |
</div> |
267 |
[% ELSE %] |
278 |
[% ELSE %] |
268 |
[% report.total_success %] / [% report.total_records %] records have successfully been modified. |
279 |
<div class="dialog message"> |
269 |
Some errors occurred. |
280 |
[% report.total_success %] / [% report.total_records %] records have successfully been modified. Some errors occurred. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
|
|
281 |
</div> |
270 |
[% END %] |
282 |
[% END %] |
271 |
<p><a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p> |
|
|
272 |
[% ELSIF view == 'errors' %] |
283 |
[% ELSIF view == 'errors' %] |
273 |
[% FOR error IN errors %] |
284 |
[% FOR error IN errors %] |
274 |
[% IF error == 'no_template_defined' %] |
285 |
[% IF error == 'no_template_defined' %] |
275 |
No MARC modification template is defined. You have <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">to create</a> at least one template for using this tool. |
286 |
<div class="dialog alert"> |
|
|
287 |
No MARC modification template is defined. You have <a href="/cgi-bin/koha/tools/marc_modification_templates.pl">to create</a> at least one template for using this tool. |
288 |
</div> |
276 |
[% END %] |
289 |
[% END %] |
277 |
[% END %] |
290 |
[% END %] |
278 |
[% ELSE %] |
291 |
[% ELSE %] |
279 |
No action defined for the template. |
292 |
<div class="dialog alert"> |
|
|
293 |
No action defined for the template. |
294 |
</div> |
280 |
[% END %] |
295 |
[% END %] |
281 |
</div> |
296 |
</div> |
282 |
</div> |
297 |
</div> |
283 |
- |
|
|