|
Lines 42-53
Link Here
|
| 42 |
Bibliographic record [% message.biblionumber | html %] does not exist in the database. |
42 |
Bibliographic record [% message.biblionumber | html %] does not exist in the database. |
| 43 |
[% ELSIF message.code == 'authority_not_exists' %] |
43 |
[% ELSIF message.code == 'authority_not_exists' %] |
| 44 |
Authority record [% message.authid | html %] does not exist in the database. |
44 |
Authority record [% message.authid | html %] does not exist in the database. |
| 45 |
[% ELSIF message.code == 'biblio_not_modified' %] |
|
|
| 46 |
Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber | uri %]">[% message.biblionumber | html %]</a> has not been modified. An error occurred on modifying it. |
| 47 |
[% ELSIF message.code == 'authority_not_modified' %] |
45 |
[% ELSIF message.code == 'authority_not_modified' %] |
| 48 |
Authority record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has not been modified. An error occurred on modifying it. |
46 |
Authority record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has not been modified. An error occurred on modifying it. |
| 49 |
[% ELSIF message.code == 'biblio_modified' %] |
|
|
| 50 |
Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber | uri %]">[% message.biblionumber | html %]</a> has successfully been modified. |
| 51 |
[% ELSIF message.code == 'authority_modified' %] |
47 |
[% ELSIF message.code == 'authority_modified' %] |
| 52 |
Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has successfully been modified. |
48 |
Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has successfully been modified. |
| 53 |
[% END %] |
49 |
[% END %] |
|
Lines 147-153
Link Here
|
| 147 |
</form> <!-- /#record_ids_selection --> |
143 |
</form> <!-- /#record_ids_selection --> |
| 148 |
[% ELSIF view == 'list' %] |
144 |
[% ELSIF view == 'list' %] |
| 149 |
[% IF records %] |
145 |
[% IF records %] |
| 150 |
<form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post" id="process"> |
146 |
<form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post"> |
| 151 |
<label for="marc_modification_template_id" class="required">Modify record using the following template: </label> |
147 |
<label for="marc_modification_template_id" class="required">Modify record using the following template: </label> |
| 152 |
<select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> |
148 |
<select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> |
| 153 |
<option value="">Select a template</option> |
149 |
<option value="">Select a template</option> |
|
Lines 233-281
Link Here
|
| 233 |
<fieldset class="action"> |
229 |
<fieldset class="action"> |
| 234 |
<input type="hidden" name="op" value="modify" /> |
230 |
<input type="hidden" name="op" value="modify" /> |
| 235 |
<input type="hidden" name="recordtype" value="[% recordtype | html %]" /> |
231 |
<input type="hidden" name="recordtype" value="[% recordtype | html %]" /> |
| 236 |
<input type="button" id="mainformsubmit" value="Modify selected records" class="button" /> |
232 |
<input type="submit" id="mainformsubmit" value="Modify selected records" class="button" /> |
| 237 |
<input type="hidden" name="runinbackground" id="runinbackground" value="" /> |
|
|
| 238 |
<input type="hidden" name="completedJobID" id="completedJobID" value="" /> |
| 239 |
<a class="cancel" href="/cgi-bin/koha/tools/batch_record_modification.pl">Cancel</a> |
| 240 |
</fieldset> |
233 |
</fieldset> |
| 241 |
<div id="jobpanel"> |
|
|
| 242 |
<div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
| 243 |
<div id="jobfailed"></div> |
| 244 |
</div> |
| 245 |
</form> <!-- /#process --> |
234 |
</form> <!-- /#process --> |
| 246 |
[% ELSE %] |
235 |
[% ELSE %] |
| 247 |
<div class="dialog message"> |
236 |
<div class="dialog message"> |
| 248 |
No records were modified. [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %] |
237 |
No records were modified. [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %] |
| 249 |
</div> |
238 |
</div> |
| 250 |
[% END %] |
239 |
[% END %] |
| 251 |
[% ELSIF view == 'report' %] |
|
|
| 252 |
[% IF report.total_records == report.total_success %] |
| 253 |
<div class="dialog message"> |
| 254 |
All records have successfully been modified! [% IF recordtype != 'biblio' %]<a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a>[% END %] |
| 255 |
</div> |
| 256 |
[% ELSE %] |
| 257 |
<div class="dialog message"> |
| 258 |
[% report.total_success | html %] / [% report.total_records | html %] 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> |
| 259 |
</div> |
| 260 |
[% END %] |
| 261 |
|
| 262 |
[% IF recordtype == 'biblio' %] |
| 263 |
<h3>Next steps</h3> |
| 264 |
<ul> |
| 265 |
<li><a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
| 266 |
[% IF lists.count %] |
| 267 |
<li> |
| 268 |
<label for="add_bibs_to_list">Add modified records to the following list: </label> |
| 269 |
<select name="add_bibs_to_list" id="add_bibs_to_list"> |
| 270 |
<option value="">Select a list</option> |
| 271 |
[% FOREACH list IN lists %] |
| 272 |
<option class="shelf" value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
| 273 |
[% END %] |
| 274 |
</select> |
| 275 |
</li> |
| 276 |
[% END %] |
| 277 |
</ul> |
| 278 |
[% END %] |
| 279 |
[% ELSIF view == 'errors' %] |
240 |
[% ELSIF view == 'errors' %] |
| 280 |
[% FOR error IN errors %] |
241 |
[% FOR error IN errors %] |
| 281 |
[% IF error == 'no_template_defined' %] |
242 |
[% IF error == 'no_template_defined' %] |
|
Lines 284-289
Link Here
|
| 284 |
</div> |
245 |
</div> |
| 285 |
[% END %] |
246 |
[% END %] |
| 286 |
[% END %] |
247 |
[% END %] |
|
|
248 |
[% ELSIF view == 'enqueued' %] |
| 249 |
<div class="dialog message"> |
| 250 |
The job has been enqueued! It will be processed as soon as possible (FIXME - well, it could depend on a config?) |
| 251 |
<a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> |
| 252 |
| <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> |
| 253 |
</div> |
| 287 |
[% ELSE %] |
254 |
[% ELSE %] |
| 288 |
<div class="dialog alert"> |
255 |
<div class="dialog alert"> |
| 289 |
No action defined for the template. |
256 |
No action defined for the template. |
|
Lines 291-297
Link Here
|
| 291 |
[% END %] |
258 |
[% END %] |
| 292 |
</main> |
259 |
</main> |
| 293 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
260 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
| 294 |
|
|
|
| 295 |
<div class="col-sm-2 col-sm-pull-10"> |
261 |
<div class="col-sm-2 col-sm-pull-10"> |
| 296 |
<aside> |
262 |
<aside> |
| 297 |
[% INCLUDE 'tools-menu.inc' %] |
263 |
[% INCLUDE 'tools-menu.inc' %] |
|
Lines 356-362
Link Here
|
| 356 |
alert(_("Please select a modification template.")); |
322 |
alert(_("Please select a modification template.")); |
| 357 |
return false; |
323 |
return false; |
| 358 |
} |
324 |
} |
| 359 |
return submitBackgroundJob(document.getElementById("process")); |
325 |
return true; |
| 360 |
}); |
326 |
}); |
| 361 |
|
327 |
|
| 362 |
$("#record_ids_selection").on("submit", function(e) { |
328 |
$("#record_ids_selection").on("submit", function(e) { |