Lines 75-130
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 numbers</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 |
<legend>Use a file</legend> |
94 |
<fieldset class="rows"> |
87 |
<ol> |
95 |
<legend>Use a file</legend> |
88 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
96 |
<ol> |
89 |
</ol> |
97 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
90 |
</fieldset> |
98 |
</ol> |
91 |
|
99 |
</fieldset> |
92 |
</div> |
100 |
|
|
|
101 |
</div> |
93 |
|
102 |
|
94 |
[% IF lists.count %] |
103 |
[% IF lists.count %] |
95 |
<div id="shelves_tab"> |
104 |
<div id="shelves_tab" role="tabpanel" class="tab-pane"> |
|
|
105 |
<fieldset class="rows"> |
106 |
<legend>Or select a list of records</legend> |
107 |
<ol> |
108 |
<li> |
109 |
<label for="shelf_number">Use records from the following list: </label> |
110 |
<select name="shelf_number" id="shelf_number"> |
111 |
<option value="">Select a list</option> |
112 |
[% FOREACH list IN lists %] |
113 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
114 |
[% END %] |
115 |
</option> |
116 |
</select> |
117 |
</li> |
118 |
</ol> |
119 |
</fieldset> |
120 |
|
121 |
</div> |
122 |
[% END %] |
123 |
|
124 |
<div id="enterlist_tab" role="tabpanel" class="tab-pane"> |
96 |
<fieldset class="rows"> |
125 |
<fieldset class="rows"> |
97 |
<legend>Or select a list of records</legend> |
126 |
<legend>Or enter a list of record numbers</legend> |
98 |
<ol> |
127 |
<ol> |
99 |
<li> |
128 |
<li> |
100 |
<label for="shelf_number">Use records from the following list: </label> |
129 |
<label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> |
101 |
<select name="shelf_number" id="shelf_number"> |
130 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
102 |
<option value="">Select a list</option> |
|
|
103 |
[% FOREACH list IN lists %] |
104 |
<option value="[% list.shelfnumber | html %]">[% list.shelfname | html %]</option> |
105 |
[% END %] |
106 |
</option> |
107 |
</select> |
108 |
</li> |
131 |
</li> |
109 |
</ol> |
132 |
</ol> |
110 |
</fieldset> |
133 |
</fieldset> |
111 |
|
134 |
|
112 |
</div> |
135 |
</div> |
113 |
[% END %] |
136 |
</div> <!-- /.tab-content --> |
114 |
|
|
|
115 |
<div id="enterlist_tab"> |
116 |
<fieldset class="rows"> |
117 |
<legend>Or enter a list of record numbers</legend> |
118 |
<ol> |
119 |
<li> |
120 |
<label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> |
121 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
122 |
</li> |
123 |
</ol> |
124 |
</fieldset> |
125 |
|
126 |
</div> |
127 |
|
128 |
</div> <!-- /#batch_mod_form --> |
137 |
</div> <!-- /#batch_mod_form --> |
129 |
|
138 |
|
130 |
<fieldset class="rows"> |
139 |
<fieldset class="rows"> |
Lines 279-286
Link Here
|
279 |
<script> |
288 |
<script> |
280 |
$(document).ready(function() { |
289 |
$(document).ready(function() { |
281 |
|
290 |
|
282 |
$("#batch_mod_form").tabs(); |
|
|
283 |
|
284 |
$("input[type='radio']").click(function() { |
291 |
$("input[type='radio']").click(function() { |
285 |
if ($(this).attr('id') == 'authority_type') { |
292 |
if ($(this).attr('id') == 'authority_type') { |
286 |
$("#show_list_option").hide(); |
293 |
$("#show_list_option").hide(); |
287 |
- |
|
|