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