Bugzilla – Attachment 90972 Details for
Bug 23196
Reindent tools/batch_record_modification.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23196: Reindent tools/batch_record_modification.tt
Bug-23196-Reindent-toolsbatchrecordmodificationtt.patch (text/plain), 41.23 KB, created by
Mark Tompsett
on 2019-06-24 18:35:09 UTC
(
hide
)
Description:
Bug 23196: Reindent tools/batch_record_modification.tt
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2019-06-24 18:35:09 UTC
Size:
41.23 KB
patch
obsolete
>From 2b9ae4ebc801b0654897c6091e56077e750d8332 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 24 Jun 2019 17:09:36 +0000 >Subject: [PATCH] Bug 23196: Reindent tools/batch_record_modification.tt > >This patch re-indents the template for batch record modifications. It >makes only whitespace changes. It should have no effect on the behavior >of the page. > >To test, apply the patch and perform a diff against master using the >'-w' flag: > >git diff -w origin/master > >There should be no changes reported. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > .../en/modules/tools/batch_record_modification.tt | 650 ++++++++++----------- > 1 file changed, 325 insertions(+), 325 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >index bd58fd2398..729894d421 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt >@@ -8,277 +8,277 @@ > </head> > > <body id="tools_batch_record_modification" class="tools"> >-[% INCLUDE 'header.inc' %] >-[% INCLUDE 'cat-search.inc' %] >+ [% INCLUDE 'header.inc' %] >+ [% INCLUDE 'cat-search.inc' %] > >-<div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> › >- <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › >- <a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a> >-</div> >+ <div id="breadcrumbs"> >+ <a href="/cgi-bin/koha/mainpage.pl">Home</a> › >+ <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › >+ <a href="/cgi-bin/koha/tools/batch_record_modification.pl">Batch record modification</a> >+ </div> > >-<div class="main container-fluid"> >- <div class="row"> >- <div class="col-sm-10 col-sm-push-2"> >- <main> >+ <div class="main container-fluid"> >+ <div class="row"> >+ <div class="col-sm-10 col-sm-push-2"> >+ <main> > >- <h1>Batch record modification</h1> >+ <h1>Batch record modification</h1> > >- [% IF ( messages ) %] >- <div class="dialog message"> >+ [% IF ( messages ) %] >+ <div class="dialog message"> > >- [% FOREACH message IN messages %] >- [% IF message.type == 'success' %] >- <div><i class="fa fa-check success"></i> >- [% ELSIF message.type == 'warning' %] >- <div><i class="fa fa-warning warn"></i> >- [% ELSIF message.type == 'error' %] >- <div><i class="fa fa-exclamation error"></i> >- [% END %] >- [% IF message.code == 'no_action_defined_for_the_template' %] >- The selected template (id=[% message.mmtid | html %]) does not exist or no action is defined. >- [% ELSIF message.code == 'biblio_not_exists' %] >- Bibliographic record [% message.biblionumber | html %] does not exist in the database. >- [% ELSIF message.code == 'authority_not_exists' %] >- Authority record [% message.authid | html %] does not exist in the database. >- [% ELSIF message.code == 'biblio_not_modified' %] >- 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. >- [% ELSIF message.code == 'authority_not_modified' %] >- 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. >- [% ELSIF message.code == 'biblio_modified' %] >- Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber | uri %]">[% message.biblionumber | html %]</a> has successfully been modified. >- [% ELSIF message.code == 'authority_modified' %] >- Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has successfully been modified. >- [% END %] >- [% IF message.error %] >- (The error was: [% message.error | html %]. See the Koha logfile for more information). >- [% END %] >- </div> >- [% END %] >+ [% FOREACH message IN messages %] >+ [% IF message.type == 'success' %] >+ <div><i class="fa fa-check success"></i> >+ [% ELSIF message.type == 'warning' %] >+ <div><i class="fa fa-warning warn"></i> >+ [% ELSIF message.type == 'error' %] >+ <div><i class="fa fa-exclamation error"></i> >+ [% END %] >+ [% IF message.code == 'no_action_defined_for_the_template' %] >+ The selected template (id=[% message.mmtid | html %]) does not exist or no action is defined. >+ [% ELSIF message.code == 'biblio_not_exists' %] >+ Bibliographic record [% message.biblionumber | html %] does not exist in the database. >+ [% ELSIF message.code == 'authority_not_exists' %] >+ Authority record [% message.authid | html %] does not exist in the database. >+ [% ELSIF message.code == 'biblio_not_modified' %] >+ 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. >+ [% ELSIF message.code == 'authority_not_modified' %] >+ 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. >+ [% ELSIF message.code == 'biblio_modified' %] >+ Bibliographic record <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber | uri %]">[% message.biblionumber | html %]</a> has successfully been modified. >+ [% ELSIF message.code == 'authority_modified' %] >+ Bibliographic record <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% message.authid | uri %]">[% message.authid | html %]</a> has successfully been modified. >+ [% END %] >+ [% IF message.error %] >+ (The error was: [% message.error | html %]. See the Koha logfile for more information). >+ [% END %] >+ </div> >+ [% END %] > >- </div> >- [% END %] >+ </div> >+ [% END %] > >- [% IF view == 'form' %] >- <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection"> >- <fieldset class="rows"> >- <legend>Record type</legend> >- <ol> >- <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li> >- <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li> >- </ol> >- </fieldset> >+ [% IF view == 'form' %] >+ <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/tools/batch_record_modification.pl" id="record_ids_selection"> >+ <fieldset class="rows"> >+ <legend>Record type</legend> >+ <ol> >+ <li><label for="biblio_type">Biblios: </label><input type="radio" name="recordtype" value="biblio" id="biblio_type" checked="checked" /></li> >+ <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li> >+ </ol> >+ </fieldset> > >- <br><br> >+ <br><br> > >- <div id="batch_mod_form" class="toptabs"> >- <ul> >- <li><a href="#uploadfile_tab">Upload a file</a></li> >- [% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %] >- <li><a href="#enterlist_tab">Enter a list of record numbers</a></li> >- </ul> >+ <div id="batch_mod_form" class="toptabs"> >+ <ul> >+ <li><a href="#uploadfile_tab">Upload a file</a></li> >+ [% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %] >+ <li><a href="#enterlist_tab">Enter a list of record numbers</a></li> >+ </ul> > >- <div id="uploadfile_tab"> >- <fieldset class="rows"> >- <legend>Use a file</legend> >- <ol> >- <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> >- </ol> >- </fieldset> >- >- </div> >+ <div id="uploadfile_tab"> >+ <fieldset class="rows"> >+ <legend>Use a file</legend> >+ <ol> >+ <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> >+ </ol> >+ </fieldset> >+ >+ </div> > >- [% IF lists.count %] >- <div id="shelves_tab"> >- <fieldset class="rows"> >- <legend>Or select a list of records</legend> >- <ol> >- <li> >- <label for="shelf_number">Use records from the following list: </label> >- <select name="shelf_number" id="shelf_number"> >- <option value="">Select a list</option> >- [% FOREACH list IN lists %] >- <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> >- [% END %] >- </option> >- </select> >- </li> >- </ol> >- </fieldset> >- >- </div> >- [% END %] >+ [% IF lists.count %] >+ <div id="shelves_tab"> >+ <fieldset class="rows"> >+ <legend>Or select a list of records</legend> >+ <ol> >+ <li> >+ <label for="shelf_number">Use records from the following list: </label> >+ <select name="shelf_number" id="shelf_number"> >+ <option value="">Select a list</option> >+ [% FOREACH list IN lists %] >+ <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> >+ [% END %] >+ </option> >+ </select> >+ </li> >+ </ol> >+ </fieldset> >+ >+ </div> >+ [% END %] > >- <div id="enterlist_tab"> >- <fieldset class="rows"> >- <legend>Or enter a list of record numbers</legend> >- <ol> >- <li> >- <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> >- <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> >- </li> >- </ol> >- </fieldset> >- >- </div> >+ <div id="enterlist_tab"> >+ <fieldset class="rows"> >+ <legend>Or enter a list of record numbers</legend> >+ <ol> >+ <li> >+ <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> >+ <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> >+ </li> >+ </ol> >+ </fieldset> >+ >+ </div> > >- </div> >+ </div> > >- <fieldset class="rows"> >- <legend>Use MARC Modification Template:</legend> >- <ol> >- <li> >- <label for="marc_modification_template_id" class="required">Modify record using the following template: </label> >- <select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> >- <option value="">Select a template</option> >- [% FOREACH mmt IN MarcModificationTemplatesLoop %] >- <option value="[% mmt.template_id | html %]">[% mmt.name | html %]</option> >- [% END %] >- </select> >- </li> >- </ol> >- </fieldset> >- <fieldset class="action"> >- <input type="hidden" name="op" value="list" /> >- <input type="submit" value="Continue" class="button" /> >- <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a> >- </fieldset> >- </form> >- [% ELSIF view == 'list' %] >- [% IF records %] >- <form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post" id="process"> >- <label for="marc_modification_template_id" class="required">Modify record using the following template: </label> >- <select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> >- <option value="">Select a template</option> >- [% FOREACH mmt IN MarcModificationTemplatesLoop %] >- [% IF mmt.selected %] >- <option value="[% mmt.template_id | html %]" selected="selected">[% mmt.name | html %]</option> >- [% ELSE %] >- <option value="[% mmt.template_id | html %]">[% mmt.name | html %]</option> >- [% END %] >- [% END %] >- </select> >- <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> >- <div class="modal-dialog"> >- <div class="modal-content"> >- <div class="modal-header"> >- <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >- <h3 id="marcPreviewLabel">MARC preview</h3> >- </div> >- <div class="modal-body"> >- <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> >- </div> >- <div class="modal-footer"> >- <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> >- </div> >- </div> >- </div> >- </div> >- [% IF recordtype == 'biblio' %] >- <div id="toolbar"> >- <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> >- | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> >- </div> >- <table id="biblios" class="records"> >- <thead> >- <tr> >- <th> </th> >- <th>Biblionumber</th> >- <th>Title</th> >- <th> </th> >- </tr> >- </thead> >- <tbody> >- [% FOR biblio IN records %] >- <tr> >- <td><input type="checkbox" name="record_id" value="[% biblio.biblionumber | html %]" /></td> >- <td>[% biblio.biblionumber | html %]</td> >- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></td> >- <td class="actions"> >- <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber | uri %]&mmtid=[% mmtid | uri %]" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber | html %]" data-mmtid="[% mmtid | html %]" title="Preview MARC"><i class="fa fa-eye"></i> Show MARC</a> >- </td> >- </tr> >- [% END %] >- </tbody> >- </table> >- <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected biblios!</div> >- [% ELSE %] >- <div id="toolbar"> >- <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> >- | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> >- </div> >- <table id="authorities" class="records"> >- <thead> >- <tr> >- <th></th> >- <th>Authid</th> >- <th>Summary</th> >- <th> </th> >- </tr> >- </thead> >- <tbody> >- [% FOR authority IN records %] >- <tr> >- <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td> >- <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td> >- <td>[% PROCESS authresult summary=authority.summary %]</td> >- <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid | uri %]&mmtid=[% mmtid | uri %]" data-record_type="authority" data-record_id="[% authority.authid | html %]" data-mmtid="[% mmtid | html %]" class="previewMARC btn btn-default btn-xs"><i class='fa fa-eye'></i> Show MARC</a> >- </tr> >- [% END %] >- </tbody> >- </table> >- <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected authorities!</div> >- [% END %] >- <fieldset class="action"> >- <input type="hidden" name="op" value="modify" /> >- <input type="hidden" name="recordtype" value="[% recordtype | html %]" /> >- <input type="button" id="mainformsubmit" value="Modify selected records" class="button" /> >- <input type="hidden" name="runinbackground" id="runinbackground" value="" /> >- <input type="hidden" name="completedJobID" id="completedJobID" value="" /> >- <a class="cancel" href="/cgi-bin/koha/tools/batch_record_modification.pl">Cancel</a> >- </fieldset> >- <div id="jobpanel"> >- <div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> >- <div id="jobfailed"></div> >- </div> >- </form> >- [% ELSE %] >- <div class="dialog message"> >- No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> >- </div> >- [% END %] >- [% ELSIF view == 'report' %] >- [% IF report.total_records == report.total_success %] >- <div class="dialog message"> >- 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> >- </div> >- [% ELSE %] >- <div class="dialog message"> >- [% 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> >- </div> >- [% END %] >- [% ELSIF view == 'errors' %] >- [% FOR error IN errors %] >- [% IF error == 'no_template_defined' %] >- <div class="dialog alert"> >- 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. >- </div> >- [% END %] >- [% END %] >- [% ELSE %] >- <div class="dialog alert"> >- No action defined for the template. >- </div> >- [% END %] >- </main> >- </div> <!-- /.col-sm-10.col-sm-push-2 --> >+ <fieldset class="rows"> >+ <legend>Use MARC Modification Template:</legend> >+ <ol> >+ <li> >+ <label for="marc_modification_template_id" class="required">Modify record using the following template: </label> >+ <select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> >+ <option value="">Select a template</option> >+ [% FOREACH mmt IN MarcModificationTemplatesLoop %] >+ <option value="[% mmt.template_id | html %]">[% mmt.name | html %]</option> >+ [% END %] >+ </select> >+ </li> >+ </ol> >+ </fieldset> >+ <fieldset class="action"> >+ <input type="hidden" name="op" value="list" /> >+ <input type="submit" value="Continue" class="button" /> >+ <a class="cancel" href="/cgi-bin/koha/tools/tools-home.pl">Cancel</a> >+ </fieldset> >+ </form> >+ [% ELSIF view == 'list' %] >+ [% IF records %] >+ <form action="/cgi-bin/koha/tools/batch_record_modification.pl" method="post" id="process"> >+ <label for="marc_modification_template_id" class="required">Modify record using the following template: </label> >+ <select name="marc_modification_template_id" id="marc_modification_template_id" required="required"> >+ <option value="">Select a template</option> >+ [% FOREACH mmt IN MarcModificationTemplatesLoop %] >+ [% IF mmt.selected %] >+ <option value="[% mmt.template_id | html %]" selected="selected">[% mmt.name | html %]</option> >+ [% ELSE %] >+ <option value="[% mmt.template_id | html %]">[% mmt.name | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ <div id="marcPreview" class="modal" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> >+ <div class="modal-dialog"> >+ <div class="modal-content"> >+ <div class="modal-header"> >+ <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">Ã</button> >+ <h3 id="marcPreviewLabel">MARC preview</h3> >+ </div> >+ <div class="modal-body"> >+ <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div> >+ </div> >+ <div class="modal-footer"> >+ <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button> >+ </div> >+ </div> >+ </div> >+ </div> >+ [% IF recordtype == 'biblio' %] >+ <div id="toolbar"> >+ <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> >+ | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> >+ </div> >+ <table id="biblios" class="records"> >+ <thead> >+ <tr> >+ <th> </th> >+ <th>Biblionumber</th> >+ <th>Title</th> >+ <th> </th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOR biblio IN records %] >+ <tr> >+ <td><input type="checkbox" name="record_id" value="[% biblio.biblionumber | html %]" /></td> >+ <td>[% biblio.biblionumber | html %]</td> >+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]">[% biblio.title | html %]</a></td> >+ <td class="actions"> >+ <a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber | uri %]&mmtid=[% mmtid | uri %]" class="previewMARC btn btn-default btn-xs" data-record_type="biblio" data-record_id="[% biblio.biblionumber | html %]" data-mmtid="[% mmtid | html %]" title="Preview MARC"><i class="fa fa-eye"></i> Show MARC</a> >+ </td> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected biblios!</div> >+ [% ELSE %] >+ <div id="toolbar"> >+ <a id="selectall" href="#"><i class="fa fa-check"></i> Select all</a> >+ | <a id="clearall" href="#"><i class="fa fa-remove"></i> Clear all</a> >+ </div> >+ <table id="authorities" class="records"> >+ <thead> >+ <tr> >+ <th></th> >+ <th>Authid</th> >+ <th>Summary</th> >+ <th> </th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOR authority IN records %] >+ <tr> >+ <td><input type="checkbox" name="record_id" value="[% authority.authid | html %]" data-usage="[% authority.count_usage | html %]" /></td> >+ <td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid | uri %]">[% authority.authid | html %]</a></td> >+ <td>[% PROCESS authresult summary=authority.summary %]</td> >+ <td class="actions"><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid | uri %]&mmtid=[% mmtid | uri %]" data-record_type="authority" data-record_id="[% authority.authid | html %]" data-mmtid="[% mmtid | html %]" class="previewMARC btn btn-default btn-xs"><i class='fa fa-eye'></i> Show MARC</a> >+ </tr> >+ [% END %] >+ </tbody> >+ </table> >+ <div class="note"><i class="fa fa-exclamation"></i> Reminder: this action will modify all selected authorities!</div> >+ [% END %] >+ <fieldset class="action"> >+ <input type="hidden" name="op" value="modify" /> >+ <input type="hidden" name="recordtype" value="[% recordtype | html %]" /> >+ <input type="button" id="mainformsubmit" value="Modify selected records" class="button" /> >+ <input type="hidden" name="runinbackground" id="runinbackground" value="" /> >+ <input type="hidden" name="completedJobID" id="completedJobID" value="" /> >+ <a class="cancel" href="/cgi-bin/koha/tools/batch_record_modification.pl">Cancel</a> >+ </fieldset> >+ <div id="jobpanel"> >+ <div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> >+ <div id="jobfailed"></div> >+ </div> >+ </form> >+ [% ELSE %] >+ <div class="dialog message"> >+ No records were modified. <a href="/cgi-bin/koha/tools/batch_record_modification.pl" title="New batch record modification">New batch record modification</a> >+ </div> >+ [% END %] >+ [% ELSIF view == 'report' %] >+ [% IF report.total_records == report.total_success %] >+ <div class="dialog message"> >+ 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> >+ </div> >+ [% ELSE %] >+ <div class="dialog message"> >+ [% 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> >+ </div> >+ [% END %] >+ [% ELSIF view == 'errors' %] >+ [% FOR error IN errors %] >+ [% IF error == 'no_template_defined' %] >+ <div class="dialog alert"> >+ 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. >+ </div> >+ [% END %] >+ [% END %] >+ [% ELSE %] >+ <div class="dialog alert"> >+ No action defined for the template. >+ </div> >+ [% END %] >+ </main> >+ </div> <!-- /.col-sm-10.col-sm-push-2 --> > >- <div class="col-sm-2 col-sm-pull-10"> >- <aside> >- [% INCLUDE 'tools-menu.inc' %] >- </aside> >- </div> <!-- /.col-sm-2.col-sm-pull-10 --> >- </div> <!-- /.row --> >+ <div class="col-sm-2 col-sm-pull-10"> >+ <aside> >+ [% INCLUDE 'tools-menu.inc' %] >+ </aside> >+ </div> <!-- /.col-sm-2.col-sm-pull-10 --> >+ </div> <!-- /.row --> > > [% MACRO jsinclude BLOCK %] > [% Asset.js("js/tools-menu.js") | $raw %] >@@ -288,90 +288,90 @@ > <script> > $(document).ready(function() { > >- $("#batch_mod_form").tabs(); >+ $("#batch_mod_form").tabs(); > >- $("input[type='radio']").click(function(){ >- if ($(this).attr('id') == 'authority_type') { >- $("#show_list_option").hide(); >- } else if ($(this).attr('id') == 'biblio_type') { >- $("#show_list_option").show(); >- } >- }); >- $("#selectall").click(function(e){ >- e.preventDefault(); >- $(".records").checkCheckboxes(); >- }); >- $("#clearall").click(function(e){ >- e.preventDefault(); >- $(".records").unCheckCheckboxes(); >- }); >- $("#selectall").click(); >+ $("input[type='radio']").click(function() { >+ if ($(this).attr('id') == 'authority_type') { >+ $("#show_list_option").hide(); >+ } else if ($(this).attr('id') == 'biblio_type') { >+ $("#show_list_option").show(); >+ } >+ }); >+ $("#selectall").click(function(e) { >+ e.preventDefault(); >+ $(".records").checkCheckboxes(); >+ }); >+ $("#clearall").click(function(e) { >+ e.preventDefault(); >+ $(".records").unCheckCheckboxes(); >+ }); >+ $("#selectall").click(); > >- $("table#biblios").dataTable($.extend(true, {}, dataTablesDefaults, { >- "aoColumnDefs": [ >- { "aTargets": [ 0, 3 ], "bSortable": false, "bSearchable": false }, >- { "aTargets": [ 1 ], "sType": "num-html" } >- ], >- "sDom": 't', >- "aaSorting": [], >- "bPaginate": false >- })); >+ $("table#biblios").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, >+ { "aTargets": [1], "sType": "num-html" } >+ ], >+ "sDom": 't', >+ "aaSorting": [], >+ "bPaginate": false >+ })); > >- $("table#authorities").dataTable($.extend(true, {}, dataTablesDefaults, { >- "aoColumnDefs": [ >- { "aTargets": [ 0, 3 ], "bSortable": false, "bSearchable": false }, >- { "aTargets": [ 1 ], "sType": "num-html" } >- ], >- "sDom": 't', >- "aaSorting": [], >- "bPaginate": false >- })); >+ $("table#authorities").dataTable($.extend(true, {}, dataTablesDefaults, { >+ "aoColumnDefs": [ >+ { "aTargets": [0, 3], "bSortable": false, "bSearchable": false }, >+ { "aTargets": [1], "sType": "num-html" } >+ ], >+ "sDom": 't', >+ "aaSorting": [], >+ "bPaginate": false >+ })); > >- $("#mainformsubmit").click(function(){ >- if ($("input[type=checkbox][name='record_id']:checked").length == 0 ) { >- alert(_("Please select at least one record to process")); >- return false; >- } >- if ( $("#marc_modification_template_id").val() <= 0 ) { >- alert(_("Please select a modification template.")); >- return false; >- } >- return submitBackgroundJob(document.getElementById("process")); >- }); >+ $("#mainformsubmit").click(function() { >+ if ($("input[type=checkbox][name='record_id']:checked").length == 0) { >+ alert(_("Please select at least one record to process")); >+ return false; >+ } >+ if ($("#marc_modification_template_id").val() <= 0) { >+ alert(_("Please select a modification template.")); >+ return false; >+ } >+ return submitBackgroundJob(document.getElementById("process")); >+ }); > >- $("#record_ids_selection").on("submit", function(e){ >- var tab = $(this).find('.ui-tabs-active:first a').attr('href'); >- if ( tab == '#uploadfile_tab' ) { >- $("#shelf_number").empty(''); >- $("#recordnumber_list").val(''); >- } else if ( tab == '#shelves_tab' ) { >- $("#uploadfile").val('') >- $("#recordnumber_list").val(''); >- } else { // enterlist >- $("#uploadfile").val('') >- $("#shelf_number").empty(''); >- } >- }); >+ $("#record_ids_selection").on("submit", function(e) { >+ var tab = $(this).find('.ui-tabs-active:first a').attr('href'); >+ if (tab == '#uploadfile_tab') { >+ $("#shelf_number").empty(''); >+ $("#recordnumber_list").val(''); >+ } else if (tab == '#shelves_tab') { >+ $("#uploadfile").val('') >+ $("#recordnumber_list").val(''); >+ } else { // enterlist >+ $("#uploadfile").val('') >+ $("#shelf_number").empty(''); >+ } >+ }); > >- $("#marc_modification_template_id").change(function(){ >- var url = "/cgi-bin/koha/svc/records/preview?" >- var mmtid = $(this).val(); >- $("a.previewMARC").each(function(){ >- $(this).attr("href", url + "record_type=" + $(this).attr("data-record_type") + "&record_id=" + $(this).attr("data-record_id") + "&mmtid=" + mmtid); >+ $("#marc_modification_template_id").change(function() { >+ var url = "/cgi-bin/koha/svc/records/preview?" >+ var mmtid = $(this).val(); >+ $("a.previewMARC").each(function() { >+ $(this).attr("href", url + "record_type=" + $(this).attr("data-record_type") + "&record_id=" + $(this).attr("data-record_id") + "&mmtid=" + mmtid); >+ }); > }); >- }); > >- $("body").on("click",".previewMARC", function(e){ >+ $("body").on("click", ".previewMARC", function(e) { > e.preventDefault(); > var ltitle = $(this).text(); > var page = $(this).attr("href"); > $("#marcPreviewLabel").text(ltitle); > $("#marcPreview .modal-body").load(page + " div"); >- $('#marcPreview').modal({show:true}); >+ $('#marcPreview').modal({ show: true }); > }); >- $("#marcPreview").on("hidden.bs.modal", function(){ >+ $("#marcPreview").on("hidden.bs.modal", function() { > $("#marcPreviewLabel").html(""); >- $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); >+ $("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> " + _("Loading") + "</div>"); > }); > > }); >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23196
:
90965
|
90966
|
90972
|
90973
|
91036
|
91037