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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt (-63 / +54 lines)
Lines 69-133 Link Here
69
        </ol>
69
        </ol>
70
      </fieldset>
70
      </fieldset>
71
71
72
      <div id="batch_del_form" class="toptabs">
72
        [% WRAPPER tabs id= "batch_del_form" %]
73
        <ul class="nav nav-tabs" role="tablist">
73
            [% WRAPPER tabs_nav %]
74
          <li role="presentation" class="active">
74
                [% WRAPPER tab_item tabname= "uploadfile_tab" bt_active= 1 %] Upload a file [% END %]
75
              <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
75
                [% IF lists.count %]
76
          </li>
76
                    [% WRAPPER tab_item tabname= "shelves_tab" %] Select a list of records [% END %]
77
          [% IF lists.count %]
77
                [% END %]
78
            <li id="show_list_option" role="presentation">
78
                [% WRAPPER tab_item tabname= "enterlist_tab" %] Enter a list of record numbers [% END %]
79
                <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
79
            [% END # /WRAPPER tabs_nav %]
80
            </li>
81
          [% END %]
82
          <li role="presentation">
83
            <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
84
          </li>
85
        </ul>
86
80
87
    <div class="tab-content">
81
            [% WRAPPER tab_panels %]
88
        <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
82
                [% WRAPPER tab_panel tabname="uploadfile_tab" bt_active= 1 %]
89
          <fieldset class="rows">
83
                    <fieldset class="rows">
90
            <ol>
84
                        <ol>
91
              <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
85
                        <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
92
            </ol>
86
                        </ol>
93
          </fieldset>
87
                    </fieldset>
94
          &nbsp;
88
                [% END # /WRAPPER tab_panel %]
95
        </div>
96
89
97
        [% IF lists.count %]
90
                [% IF lists.count %]
98
            <div id="shelves_tab" role="tabpanel" class="tab-pane">
91
                    [% WRAPPER tab_panel tabname="shelves_tab" %]
99
              <fieldset class="rows">
92
                        <fieldset class="rows">
100
                <ol>
93
                            <ol>
101
                  <li>
94
                                <li>
102
                    <label for="shelf_number">List: </label>
95
                                    <label for="shelf_number">List: </label>
103
                    <select name="shelf_number" id="shelf_number">
96
                                    <select name="shelf_number" id="shelf_number">
104
                      <option value="">Select a list</option>
97
                                        <option value="">Select a list</option>
105
                        [% FOREACH list IN lists %]
98
                                        [% FOREACH list IN lists %]
106
                          <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
99
                                            <option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option>
107
                        [% END %]
100
                                        [% END %]
108
                    </select>
101
                                    </select>
109
                  </li>
102
                                </li>
110
                </ol>
103
                            </ol>
111
              </fieldset>
104
                        </fieldset>
112
              &nbsp;
105
                    [% END # /WRAPPER tab_panel %]
113
            </div>
106
                [% END # /IF lists.count %]
114
        [% END %]
115
107
116
        <div id="enterlist_tab" role="tabpanel" class="tab-pane">
108
                [% WRAPPER tab_panel tabname="enterlist_tab" %]
117
          <fieldset class="rows">
109
                    <fieldset class="rows">
118
            <ol>
110
                        <ol>
119
              <li>
111
                            <li>
120
                <label for="recordnumber_list">IDs: </label>
112
                                <label for="recordnumber_list">IDs: </label>
121
                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
113
                                <textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea>
122
                <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
114
                                <div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div>
123
              </li>
115
                            </li>
124
            </ol>
116
                        </ol>
125
          </fieldset>
117
                    </fieldset>
126
          &nbsp;
118
                [% END # /WRAPPER tab_panel %]
127
        </div>
119
            [% END # /WRAPPER tab_panels %]
128
120
        [% END # /WRAPPER tabs %]
129
      </div> <!-- /.tab-content -->
130
    </div>
131
121
132
      <fieldset class="action">
122
      <fieldset class="action">
133
        <input type="hidden" name="op" value="list" />
123
        <input type="hidden" name="op" value="list" />
Lines 238-250 Link Here
238
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
228
        var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out.");
239
        $(document).ready(function() {
229
        $(document).ready(function() {
240
230
241
          $("input[type='radio']").click(function(){
231
            $("input[type='radio']").click(function() {
242
            if ($(this).attr('id') == 'authority_type') {
232
                if ($(this).attr('id') == 'authority_type') {
243
              $("#show_list_option").hide();
233
                    $("a[href='#shelves_tab_panel']").parent().hide();
244
            } else if ($(this).attr('id') == 'biblio_type') {
234
                } else if ($(this).attr('id') == 'biblio_type') {
245
              $("#show_list_option").show();
235
                    $("a[href='#shelves_tab_panel']").parent().show();
246
            }
236
                }
247
          });
237
            });
238
248
            $("#selectall").click(function(e){
239
            $("#selectall").click(function(e){
249
                e.preventDefault();
240
                e.preventDefault();
250
                $(".records input[type='checkbox']:not(:disabled)").each(function(){
241
                $(".records input[type='checkbox']:not(:disabled)").each(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-29 / +18 lines)
Lines 86-118 Link Here
86
86
87
                            <br><br>
87
                            <br><br>
88
88
89
                            <div id="batch_mod_form" class="toptabs" style="clear:both">
89
                            [% WRAPPER tabs id= "batch_mod_form" %]
90
                                <ul class="nav nav-tabs" role="tablist">
90
                                [% WRAPPER tabs_nav %]
91
                                    <li role="presentation" class="active">
91
                                    [% WRAPPER tab_item tabname= "uploadfile_tab" bt_active= 1 %] Upload a file [% END %]
92
                                        <a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a>
93
                                    </li>
94
                                    [% IF lists.count %]
92
                                    [% IF lists.count %]
95
                                        <li id="show_list_option">
93
                                        [% WRAPPER tab_item tabname= "shelves_tab" %] Select a list of records [% END %]
96
                                            <a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a>
94
                                        <!-- <li id="show_list_option"> -->
97
                                        </li>
98
                                    [% END %]
95
                                    [% END %]
99
                                    <li role="presentation">
96
                                    [% WRAPPER tab_item tabname= "enterlist_tab" %] Enter a list of record numbers [% END %]
100
                                        <a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a>
97
                                [% END # /WRAPPER tabs_nav %]
101
                                    </li>
98
                                [% WRAPPER tab_panels %]
102
                                </ul>
99
                                    [% WRAPPER tab_panel tabname="uploadfile_tab" bt_active= 1 %]
103
104
                                <div class="tab-content">
105
                                    <div id="uploadfile_tab" role="tabpanel" class="tab-pane active">
106
                                        <fieldset class="rows">
100
                                        <fieldset class="rows">
107
                                            <ol>
101
                                            <ol>
108
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
102
                                                <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li>
109
                                            </ol>
103
                                            </ol>
110
                                        </fieldset>
104
                                        </fieldset>
111
                                        &nbsp;
105
                                    [% END # /tab_panel %]
112
                                    </div>
113
106
114
                                    [% IF lists.count %]
107
                                    [% IF lists.count %]
115
                                        <div id="shelves_tab" role="tabpanel" class="tab-pane">
108
                                        [% WRAPPER tab_panel tabname="shelves_tab" %]
116
                                            <fieldset class="rows">
109
                                            <fieldset class="rows">
117
                                                <ol>
110
                                                <ol>
118
                                                    <li>
111
                                                    <li>
Lines 127-137 Link Here
127
                                                    </li>
120
                                                    </li>
128
                                                </ol>
121
                                                </ol>
129
                                            </fieldset>
122
                                            </fieldset>
130
                                            &nbsp;
123
                                        [% END # /tab_panel %]
131
                                        </div>
132
                                    [% END %]
124
                                    [% END %]
133
125
                                    [% WRAPPER tab_panel tabname="enterlist_tab" %]
134
                                    <div id="enterlist_tab" role="tabpanel" class="tab-pane">
135
                                        <fieldset class="rows">
126
                                        <fieldset class="rows">
136
                                            <ol>
127
                                            <ol>
137
                                                <li>
128
                                                <li>
Lines 141-150 Link Here
141
                                                </li>
132
                                                </li>
142
                                            </ol>
133
                                            </ol>
143
                                        </fieldset>
134
                                        </fieldset>
144
                                        &nbsp;
135
                                    [% END # /tab_panel %]
145
                                    </div>
136
                                [% END # /WRAPPER tab_panels %]
146
                                </div> <!-- /.tab-content -->
137
                            [% END # /WRAPPER tabs %]
147
                            </div> <!-- /#batch_mod_form -->
148
138
149
                            <fieldset class="rows">
139
                            <fieldset class="rows">
150
                                <legend>MARC modification template</legend>
140
                                <legend>MARC modification template</legend>
Lines 303-311 Link Here
303
293
304
            $("input[type='radio']").click(function() {
294
            $("input[type='radio']").click(function() {
305
                if ($(this).attr('id') == 'authority_type') {
295
                if ($(this).attr('id') == 'authority_type') {
306
                    $("#show_list_option").hide();
296
                    $("a[href='#shelves_tab_panel']").parent().hide();
307
                } else if ($(this).attr('id') == 'biblio_type') {
297
                } else if ($(this).attr('id') == 'biblio_type') {
308
                    $("#show_list_option").show();
298
                    $("a[href='#shelves_tab_panel']").parent().show();
309
                }
299
                }
310
            });
300
            });
311
301
312
- 

Return to bug 32914