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 |
|
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 |
|
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 |
|
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(){ |