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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-32 / +59 lines)
Lines 63-98 Link Here
63
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
63
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
64
        </ol>
64
        </ol>
65
      </fieldset>
65
      </fieldset>
66
      <fieldset class="rows">
66
67
        <legend>Use a file</legend>
67
      <br><br>
68
        <ol>
68
69
          <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
69
      <div id="batch_del_form" class="toptabs">
70
        </ol>
70
        <ul>
71
      </fieldset>
71
          <li><a href="#uploadfile">Upload a file</a></li>
72
      <fieldset class="rows" id="shelves">
72
          [% IF lists.count %]<li id="show_list_option"><a href="#shelves">Select a list of records</a></li>[% END %]
73
        <legend>Or select a list of records</legend>
73
          <li><a href="#enterlist">Enter a list of record numbers</a></li>
74
        <ol>
74
        </ul>
75
          <li>
75
76
            <label for="shelf_number">Use records from the following list: </label>
76
        <div id="uploadfile">
77
            <select name="shelf_number" id="shelf_number">
77
          <fieldset class="rows">
78
              <option value="">Select a list</option>
78
            <legend>Use a file</legend>
79
                [% FOREACH list IN lists %]
79
            <ol>
80
                  <option value="[% list.shelfnumber %]">[% list.shelfname %]</option>
80
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
81
                [% END %]
81
            </ol>
82
              </option>
82
          </fieldset>
83
            </select>
83
          &nbsp;
84
          </li>
84
        </div>
85
        </ol>
85
86
      </fieldset>
86
        <div id="shelves">
87
      <fieldset class="rows">
87
          <fieldset class="rows">
88
        <legend>Or enter a list of record numbers</legend>
88
            <legend>Or select a list of records</legend>
89
        <ol>
89
            <ol>
90
          <li>
90
              <li>
91
            <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
91
                <label for="shelf_number">Use records from the following list: </label>
92
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
92
                <select name="shelf_number" id="shelf_number">
93
          </li>
93
                  <option value="">Select a list</option>
94
        </ol>
94
                    [% FOREACH list IN lists %]
95
      </fieldset>
95
                      <option value="[% list.shelfnumber %]">[% list.shelfname %]</option>
96
                    [% END %]
97
                  </option>
98
                </select>
99
              </li>
100
            </ol>
101
          </fieldset>
102
          &nbsp;
103
        </div>
104
105
        <div id="enterlist">
106
          <fieldset class="rows">
107
            <legend>Or enter a list of record numbers</legend>
108
            <ol>
109
              <li>
110
                <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
111
                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
112
              </li>
113
            </ol>
114
          </fieldset>
115
          &nbsp;
116
        </div>
117
118
      </div>
119
96
      <fieldset class="action">
120
      <fieldset class="action">
97
        <input type="hidden" name="op" value="list" />
121
        <input type="hidden" name="op" value="list" />
98
        <input type="submit" value="Continue" class="button" />
122
        <input type="submit" value="Continue" class="button" />
Lines 199-209 Link Here
199
    <script type="text/javascript">
223
    <script type="text/javascript">
200
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
224
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
201
        $(document).ready(function() {
225
        $(document).ready(function() {
226
227
          $("#batch_del_form").tabs();
228
202
          $("input[type='radio']").click(function(){
229
          $("input[type='radio']").click(function(){
203
            if ($(this).attr('id') == 'authority_type') {
230
            if ($(this).attr('id') == 'authority_type') {
204
              $("#shelves").hide();
231
              $("#show_list_option").hide();
205
            } else if ($(this).attr('id') == 'biblio_type') {
232
            } else if ($(this).attr('id') == 'biblio_type') {
206
              $("#shelves").show();
233
              $("#show_list_option").show();
207
            }
234
            }
208
          });
235
          });
209
          $("#selectall").click(function(e){
236
          $("#selectall").click(function(e){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-32 / +59 lines)
Lines 67-102 Link Here
67
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
67
          <li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li>
68
        </ol>
68
        </ol>
69
      </fieldset>
69
      </fieldset>
70
      <fieldset class="rows">
70
71
        <legend>Use a file</legend>
71
      <br><br>
72
        <ol>
72
73
          <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
73
      <div id="batch_mod_form" class="toptabs">
74
        </ol>
74
        <ul>
75
      </fieldset>
75
          <li><a href="#uploadfile">Upload a file</a></li>
76
      <fieldset class="rows" id="shelves">
76
          [% IF lists.count %]<li id="show_list_option"><a href="#shelves">Select a list of records</a></li>[% END %]
77
        <legend>Or select a list of records</legend>
77
          <li><a href="#enterlist">Enter a list of record numbers</a></li>
78
        <ol>
78
        </ul>
79
          <li>
79
80
            <label for="shelf_number">Use records from the following list: </label>
80
        <div id="uploadfile">
81
            <select name="shelf_number" id="shelf_number">
81
          <fieldset class="rows">
82
              <option value="">Select a list</option>
82
            <legend>Use a file</legend>
83
                [% FOREACH list IN lists %]
83
            <ol>
84
                  <option value="[% list.shelfnumber %]">[% list.shelfname %]</option>
84
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
85
                [% END %]
85
            </ol>
86
              </option>
86
          </fieldset>
87
            </select>
87
          &nbsp;
88
          </li>
88
        </div>
89
        </ol>
89
90
      </fieldset>
90
        <div id="shelves">
91
      <fieldset class="rows">
91
          <fieldset class="rows">
92
        <legend>Or enter a list of record numbers</legend>
92
            <legend>Or select a list of records</legend>
93
        <ol>
93
            <ol>
94
          <li>
94
              <li>
95
            <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
95
                <label for="shelf_number">Use records from the following list: </label>
96
            <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
96
                <select name="shelf_number" id="shelf_number">
97
          </li>
97
                  <option value="">Select a list</option>
98
        </ol>
98
                    [% FOREACH list IN lists %]
99
      </fieldset>
99
                      <option value="[% list.shelfnumber %]">[% list.shelfname %]</option>
100
                    [% END %]
101
                  </option>
102
                </select>
103
              </li>
104
            </ol>
105
          </fieldset>
106
          &nbsp;
107
        </div>
108
109
        <div id="enterlist">
110
          <fieldset class="rows">
111
            <legend>Or enter a list of record numbers</legend>
112
            <ol>
113
              <li>
114
                <label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label>
115
                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
116
              </li>
117
            </ol>
118
          </fieldset>
119
          &nbsp;
120
        </div>
121
122
      </div>
123
100
      <fieldset class="rows">
124
      <fieldset class="rows">
101
        <legend>Use MARC Modification Template:</legend>
125
        <legend>Use MARC Modification Template:</legend>
102
        <ol>
126
        <ol>
Lines 257-267 Link Here
257
    [% Asset.js("js/background-job-progressbar.js") %]
281
    [% Asset.js("js/background-job-progressbar.js") %]
258
    <script type="text/javascript">
282
    <script type="text/javascript">
259
        $(document).ready(function() {
283
        $(document).ready(function() {
284
285
          $("#batch_mod_form").tabs();
286
260
          $("input[type='radio']").click(function(){
287
          $("input[type='radio']").click(function(){
261
            if ($(this).attr('id') == 'authority_type') {
288
            if ($(this).attr('id') == 'authority_type') {
262
              $("#shelves").hide();
289
              $("#show_list_option").hide();
263
            } else if ($(this).attr('id') == 'biblio_type') {
290
            } else if ($(this).attr('id') == 'biblio_type') {
264
              $("#shelves").show();
291
              $("#show_list_option").show();
265
            }
292
            }
266
          });
293
          });
267
          $("#selectall").click(function(e){
294
          $("#selectall").click(function(e){
(-)a/tools/batch_delete_records.pl (-2 / +1 lines)
Lines 44-51 my ($template, $loggedinuser, $cookie) = get_template_and_user({ Link Here
44
        flagsrequired => { tools => 'records_batchdel' },
44
        flagsrequired => { tools => 'records_batchdel' },
45
});
45
});
46
46
47
my @lists = Koha::Virtualshelves->search({});
47
$template->param( lists => scalar Koha::Virtualshelves->search([{ category => 1, owner => $loggedinuser }, { category => 2 }]) );
48
$template->param( lists => \@lists );
49
48
50
my @records;
49
my @records;
51
my @messages;
50
my @messages;
(-)a/tools/batch_record_modification.pl (-3 / +1 lines)
Lines 69-76 if ( $completedJobID ) { Link Here
69
    exit;
69
    exit;
70
}
70
}
71
71
72
my @lists = Koha::Virtualshelves->search({});
72
$template->param( lists => scalar Koha::Virtualshelves->search([{ category => 1, owner => $loggedinuser }, { category => 2 }]) );
73
$template->param( lists => \@lists );
74
73
75
my @templates = GetModificationTemplates( $mmtid );
74
my @templates = GetModificationTemplates( $mmtid );
76
unless ( @templates ) {
75
unless ( @templates ) {
77
- 

Return to bug 12759