Lines 75-128
Link Here
|
75 |
<br><br> |
75 |
<br><br> |
76 |
|
76 |
|
77 |
<div id="batch_mod_form" class="toptabs" style="clear:both"> |
77 |
<div id="batch_mod_form" class="toptabs" style="clear:both"> |
78 |
<ul> |
78 |
<ul class="nav nav-tabs" role="tablist"> |
79 |
<li><a href="#uploadfile_tab">Upload a file</a></li> |
79 |
<li role="presentation" class="active"> |
80 |
[% IF lists.count %]<li id="show_list_option"><a href="#shelves_tab">Select a list of records</a></li>[% END %] |
80 |
<a href="#uploadfile_tab" aria-controls="uploadfile_tab" role="tab" data-toggle="tab">Upload a file</a> |
81 |
<li><a href="#enterlist_tab">Enter a list of record IDs</a></li> |
81 |
</li> |
|
|
82 |
[% IF lists.count %] |
83 |
<li id="show_list_option"> |
84 |
<a href="#shelves_tab" aria-controls="shelves_tab" role="tab" data-toggle="tab">Select a list of records</a> |
85 |
</li> |
86 |
[% END %] |
87 |
<li role="presentation"> |
88 |
<a href="#enterlist_tab" aria-controls="enterlist_tab" role="tab" data-toggle="tab">Enter a list of record numbers</a> |
89 |
</li> |
82 |
</ul> |
90 |
</ul> |
83 |
|
91 |
|
84 |
<div id="uploadfile_tab"> |
92 |
<div class="tab-content"> |
85 |
<fieldset class="rows"> |
93 |
<div id="uploadfile_tab" role="tabpanel" class="tab-pane active"> |
86 |
<ol> |
94 |
<fieldset class="rows"> |
87 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
95 |
<ol> |
88 |
</ol> |
96 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
89 |
</fieldset> |
97 |
</ol> |
90 |
|
98 |
</fieldset> |
91 |
</div> |
99 |
|
|
|
100 |
</div> |
92 |
|
101 |
|
93 |
[% IF lists.count %] |
102 |
[% IF lists.count %] |
94 |
<div id="shelves_tab"> |
103 |
<div id="shelves_tab" role="tabpanel" class="tab-pane"> |
|
|
104 |
<fieldset class="rows"> |
105 |
<ol> |
106 |
<li> |
107 |
<label for="shelf_number">List: </label> |
108 |
<select name="shelf_number" id="shelf_number"> |
109 |
<option value="">Select a list</option> |
110 |
[% FOREACH list IN lists %] |
111 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
112 |
[% END %] |
113 |
</option> |
114 |
</select> |
115 |
</li> |
116 |
</ol> |
117 |
</fieldset> |
118 |
|
119 |
</div> |
120 |
[% END %] |
121 |
|
122 |
<div id="enterlist_tab" role="tabpanel" class="tab-pane"> |
95 |
<fieldset class="rows"> |
123 |
<fieldset class="rows"> |
96 |
<ol> |
124 |
<ol> |
97 |
<li> |
125 |
<li> |
98 |
<label for="shelf_number">List: </label> |
126 |
<label for="recordnumber_list">Record numbers: </label> |
99 |
<select name="shelf_number" id="shelf_number"> |
127 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
100 |
<option value="">Select a list</option> |
128 |
<div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div> |
101 |
[% FOREACH list IN lists %] |
|
|
102 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
103 |
[% END %] |
104 |
</option> |
105 |
</select> |
106 |
</li> |
129 |
</li> |
107 |
</ol> |
130 |
</ol> |
108 |
</fieldset> |
131 |
</fieldset> |
109 |
|
132 |
|
110 |
</div> |
133 |
</div> |
111 |
[% END %] |
134 |
</div> <!-- /.tab-content --> |
112 |
|
|
|
113 |
<div id="enterlist_tab"> |
114 |
<fieldset class="rows"> |
115 |
<ol> |
116 |
<li> |
117 |
<label for="recordnumber_list">IDs: </label> |
118 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
119 |
<div class="hint">Enter a list of biblionumbers or authority IDs, one per line.</div> |
120 |
</li> |
121 |
</ol> |
122 |
</fieldset> |
123 |
|
124 |
</div> |
125 |
|
126 |
</div> <!-- /#batch_mod_form --> |
135 |
</div> <!-- /#batch_mod_form --> |
127 |
|
136 |
|
128 |
<fieldset class="rows"> |
137 |
<fieldset class="rows"> |
Lines 277-284
Link Here
|
277 |
<script> |
286 |
<script> |
278 |
$(document).ready(function() { |
287 |
$(document).ready(function() { |
279 |
|
288 |
|
280 |
$("#batch_mod_form").tabs(); |
|
|
281 |
|
282 |
$("input[type='radio']").click(function() { |
289 |
$("input[type='radio']").click(function() { |
283 |
if ($(this).attr('id') == 'authority_type') { |
290 |
if ($(this).attr('id') == 'authority_type') { |
284 |
$("#show_list_option").hide(); |
291 |
$("#show_list_option").hide(); |
285 |
- |
|
|