|
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 257-280
$(document).ready(function() {
Link Here
|
| 257 |
</div> |
264 |
</div> |
| 258 |
</form> |
265 |
</form> |
| 259 |
[% ELSE %] |
266 |
[% ELSE %] |
| 260 |
There is no record ids defined. |
267 |
<div class="dialog message"> |
|
|
268 |
No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
| 269 |
</div> |
| 261 |
[% END %] |
270 |
[% END %] |
| 262 |
[% ELSIF view == 'report' %] |
271 |
[% ELSIF view == 'report' %] |
| 263 |
[% IF report.total_records == report.total_success %] |
272 |
[% IF report.total_records == report.total_success %] |
| 264 |
All records have successfully been modified! |
273 |
<div class="dialog message"> |
|
|
274 |
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> |
| 275 |
</div> |
| 265 |
[% ELSE %] |
276 |
[% ELSE %] |
| 266 |
[% report.total_success %] / [% report.total_records %] records have successfully been modified. |
277 |
<div class="dialog message"> |
| 267 |
Some errors occurred. |
278 |
[% 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> |
|
|
279 |
</div> |
| 268 |
[% END %] |
280 |
[% END %] |
| 269 |
<p><a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a></p> |
|
|
| 270 |
[% ELSIF view == 'errors' %] |
281 |
[% ELSIF view == 'errors' %] |
| 271 |
[% FOR error IN errors %] |
282 |
[% FOR error IN errors %] |
| 272 |
[% IF error == 'no_template_defined' %] |
283 |
[% IF error == 'no_template_defined' %] |
| 273 |
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. |
284 |
<div class="dialog alert"> |
|
|
285 |
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> |
| 274 |
[% END %] |
287 |
[% END %] |
| 275 |
[% END %] |
288 |
[% END %] |
| 276 |
[% ELSE %] |
289 |
[% ELSE %] |
| 277 |
No action defined for the template. |
290 |
<div class="dialog alert"> |
|
|
291 |
No action defined for the template. |
| 292 |
</div> |
| 278 |
[% END %] |
293 |
[% END %] |
| 279 |
</div> |
294 |
</div> |
| 280 |
</div> |
295 |
</div> |
| 281 |
- |
|
|