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