Lines 63-98
Link Here
|
63 |
<li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li> |
63 |
<li><label for="authority_type">Authorities: </label><input type="radio" name="recordtype" value="authority" id="authority_type" /></li> |
64 |
</ol> |
64 |
</ol> |
65 |
</fieldset> |
65 |
</fieldset> |
66 |
<fieldset class="rows"> |
66 |
|
67 |
<legend>Use a file</legend> |
67 |
<br><br> |
68 |
<ol> |
68 |
|
69 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
69 |
<div id="batch_del_form" class="toptabs"> |
70 |
</ol> |
70 |
<ul> |
71 |
</fieldset> |
71 |
<li><a href="#uploadfile">Upload a file</a></li> |
72 |
<fieldset class="rows" id="shelves"> |
72 |
[% IF lists %]<li id="show_list_option"><a href="#shelves">Select a list of records</a></li>[% END %] |
73 |
<legend>Or select a list of records</legend> |
73 |
<li><a href="#enterlist">Enter a list of record numbers</a></li> |
74 |
<ol> |
74 |
</ul> |
75 |
<li> |
75 |
|
76 |
<label for="shelf_number">Use records from the following list: </label> |
76 |
<div id="uploadfile"> |
77 |
<select name="shelf_number" id="shelf_number"> |
77 |
<fieldset class="rows"> |
78 |
<option value="">Select a list</option> |
78 |
<legend>Use a file</legend> |
79 |
[% FOREACH list IN lists %] |
79 |
<ol> |
80 |
<option value="[% list.shelfnumber %]">[% list.shelfname %]</option> |
80 |
<li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> |
81 |
[% END %] |
81 |
</ol> |
82 |
</option> |
82 |
</fieldset> |
83 |
</select> |
83 |
|
84 |
</li> |
84 |
</div> |
85 |
</ol> |
85 |
|
86 |
</fieldset> |
86 |
<div id="shelves"> |
87 |
<fieldset class="rows"> |
87 |
<fieldset class="rows"> |
88 |
<legend>Or enter a list of record numbers</legend> |
88 |
<legend>Or select a list of records</legend> |
89 |
<ol> |
89 |
<ol> |
90 |
<li> |
90 |
<li> |
91 |
<label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> |
91 |
<label for="shelf_number">Use records from the following list: </label> |
92 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
92 |
<select name="shelf_number" id="shelf_number"> |
93 |
</li> |
93 |
<option value="">Select a list</option> |
94 |
</ol> |
94 |
[% FOREACH list IN lists %] |
95 |
</fieldset> |
95 |
<option value="[% list.shelfnumber %]">[% list.shelfname %]</option> |
|
|
96 |
[% END %] |
97 |
</option> |
98 |
</select> |
99 |
</li> |
100 |
</ol> |
101 |
</fieldset> |
102 |
|
103 |
</div> |
104 |
|
105 |
<div id="enterlist"> |
106 |
<fieldset class="rows"> |
107 |
<legend>Or enter a list of record numbers</legend> |
108 |
<ol> |
109 |
<li> |
110 |
<label for="recordnumber_list">List of biblionumbers or authority ids (one per line): </label> |
111 |
<textarea rows="10" cols="30" id="recordnumber_list" name="recordnumber_list"></textarea> |
112 |
</li> |
113 |
</ol> |
114 |
</fieldset> |
115 |
|
116 |
</div> |
117 |
|
118 |
</div> |
119 |
|
96 |
<fieldset class="action"> |
120 |
<fieldset class="action"> |
97 |
<input type="hidden" name="op" value="list" /> |
121 |
<input type="hidden" name="op" value="list" /> |
98 |
<input type="submit" value="Continue" class="button" /> |
122 |
<input type="submit" value="Continue" class="button" /> |
Lines 199-209
Link Here
|
199 |
<script type="text/javascript"> |
223 |
<script type="text/javascript"> |
200 |
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out."); |
224 |
var MSG_CANNOT_BE_DELETED = _("This record cannot be deleted, at least one item is currently checked out."); |
201 |
$(document).ready(function() { |
225 |
$(document).ready(function() { |
|
|
226 |
|
227 |
$("#batch_del_form").tabs(); |
228 |
|
202 |
$("input[type='radio']").click(function(){ |
229 |
$("input[type='radio']").click(function(){ |
203 |
if ($(this).attr('id') == 'authority_type') { |
230 |
if ($(this).attr('id') == 'authority_type') { |
204 |
$("#shelves").hide(); |
231 |
$("#show_list_option").hide(); |
205 |
} else if ($(this).attr('id') == 'biblio_type') { |
232 |
} else if ($(this).attr('id') == 'biblio_type') { |
206 |
$("#shelves").show(); |
233 |
$("#show_list_option").show(); |
207 |
} |
234 |
} |
208 |
}); |
235 |
}); |
209 |
$("#selectall").click(function(e){ |
236 |
$("#selectall").click(function(e){ |