Lines 64-128
Link Here
|
64 |
</ol> |
64 |
</ol> |
65 |
</fieldset> |
65 |
</fieldset> |
66 |
|
66 |
|
67 |
<div id="batch_del_form" class="toptabs"> |
67 |
[% WRAPPER tabs id= "batch_del_form" %] |
68 |
<ul class="nav nav-tabs" role="tablist"> |
68 |
[% WRAPPER tabs_nav %] |
69 |
<li role="presentation" class="active"> |
69 |
[% WRAPPER tab_item tabname= "uploadfile_tab" bt_active= 1 %] <span>Upload a file</span> [% END %] |
70 |
<a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a> |
70 |
[% IF lists.count %] |
71 |
</li> |
71 |
[% WRAPPER tab_item tabname= "shelves_tab" %] <span>Select a list of records</span> [% END %] |
72 |
[% IF lists.count %] |
72 |
[% END %] |
73 |
<li id="show_list_option" role="presentation"> |
73 |
[% WRAPPER tab_item tabname= "enterlist_tab" %] <span>Enter a list of record numbers</span> [% END %] |
74 |
<a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a> |
74 |
[% END # /WRAPPER tabs_nav %] |
75 |
</li> |
|
|
76 |
[% END %] |
77 |
<li role="presentation"> |
78 |
<a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a> |
79 |
</li> |
80 |
</ul> |
81 |
|
75 |
|
82 |
<div class="tab-content"> |
76 |
[% WRAPPER tab_panels %] |
83 |
<div id="uploadfile_tab" role="tabpanel" class="tab-pane active"> |
77 |
[% WRAPPER tab_panel tabname="uploadfile_tab" bt_active= 1 %] |
84 |
<fieldset class="rows"> |
78 |
<fieldset class="rows"> |
85 |
<ol> |
79 |
<ol> |
86 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
80 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
87 |
</ol> |
81 |
</ol> |
88 |
</fieldset> |
82 |
</fieldset> |
89 |
|
83 |
[% END # /WRAPPER tab_panel %] |
90 |
</div> |
|
|
91 |
|
84 |
|
92 |
[% IF lists.count %] |
85 |
[% IF lists.count %] |
93 |
<div id="shelves_tab" role="tabpanel" class="tab-pane"> |
86 |
[% WRAPPER tab_panel tabname="shelves_tab" %] |
94 |
<fieldset class="rows"> |
87 |
<fieldset class="rows"> |
95 |
<ol> |
88 |
<ol> |
96 |
<li> |
89 |
<li> |
97 |
<label for="shelf_number">List: </label> |
90 |
<label for="shelf_number">List: </label> |
98 |
<select name="shelf_number" id="shelf_number"> |
91 |
<select name="shelf_number" id="shelf_number"> |
99 |
<option value="">Select a list</option> |
92 |
<option value="">Select a list</option> |
100 |
[% FOREACH list IN lists %] |
93 |
[% FOREACH list IN lists %] |
101 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
94 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
102 |
[% END %] |
95 |
[% END %] |
103 |
</select> |
96 |
</select> |
104 |
</li> |
97 |
</li> |
105 |
</ol> |
98 |
</ol> |
106 |
</fieldset> |
99 |
</fieldset> |
107 |
|
100 |
[% END # /WRAPPER tab_panel %] |
108 |
</div> |
101 |
[% END # /IF lists.count %] |
109 |
[% END %] |
|
|
110 |
|
111 |
<div id="enterlist_tab" role="tabpanel" class="tab-pane"> |
112 |
<fieldset class="rows"> |
113 |
<ol> |
114 |
<li> |
115 |
<label for="recordnumber_list">IDs: </label> |
116 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
117 |
<div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div> |
118 |
</li> |
119 |
</ol> |
120 |
</fieldset> |
121 |
|
122 |
</div> |
123 |
|
102 |
|
124 |
</div> <!-- /.tab-content --> |
103 |
[% WRAPPER tab_panel tabname="enterlist_tab" %] |
125 |
</div> |
104 |
<fieldset class="rows"> |
|
|
105 |
<ol> |
106 |
<li> |
107 |
<label for="recordnumber_list">IDs: </label> |
108 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
109 |
<div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div> |
110 |
</li> |
111 |
</ol> |
112 |
</fieldset> |
113 |
[% END # /WRAPPER tab_panel %] |
114 |
[% END # /WRAPPER tab_panels %] |
115 |
[% END # /WRAPPER tabs %] |
126 |
|
116 |
|
127 |
<fieldset class="action"> |
117 |
<fieldset class="action"> |
128 |
<input type="hidden" name="op" value="list" /> |
118 |
<input type="hidden" name="op" value="list" /> |
Lines 233-245
Link Here
|
233 |
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out."); |
223 |
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out."); |
234 |
$(document).ready(function() { |
224 |
$(document).ready(function() { |
235 |
|
225 |
|
236 |
$("input[type='radio']").click(function(){ |
226 |
$("input[type='radio']").click(function() { |
237 |
if ($(this).attr('id') == 'authority_type') { |
227 |
if ($(this).attr('id') == 'authority_type') { |
238 |
$("#show_list_option").hide(); |
228 |
$("a[href='#shelves_tab_panel']").parent().hide(); |
239 |
} else if ($(this).attr('id') == 'biblio_type') { |
229 |
} else if ($(this).attr('id') == 'biblio_type') { |
240 |
$("#show_list_option").show(); |
230 |
$("a[href='#shelves_tab_panel']").parent().show(); |
241 |
} |
231 |
} |
242 |
}); |
232 |
}); |
|
|
233 |
|
243 |
$("#selectall").click(function(e){ |
234 |
$("#selectall").click(function(e){ |
244 |
e.preventDefault(); |
235 |
e.preventDefault(); |
245 |
$(".records input[type='checkbox']:not(:disabled)").each(function(){ |
236 |
$(".records input[type='checkbox']:not(:disabled)").each(function(){ |