|
Lines 12-22
function Import(GetThisOne,biblionumber) {
Link Here
|
| 12 |
return false; |
12 |
return false; |
| 13 |
} |
13 |
} |
| 14 |
|
14 |
|
| 15 |
function closemenu(){ |
|
|
| 16 |
$(".linktools").hide(); |
| 17 |
$("tr").removeClass("selected"); |
| 18 |
} |
| 19 |
|
| 20 |
$(document).ready(function(){ |
15 |
$(document).ready(function(){ |
| 21 |
$("#CheckAll").click(function(){ |
16 |
$("#CheckAll").click(function(){ |
| 22 |
$(".checkboxed").checkCheckboxes(); |
17 |
$(".checkboxed").checkCheckboxes(); |
|
Lines 74-80
$(document).ready(function(){
Link Here
|
| 74 |
$("#dataPreviewLabel").html(""); |
69 |
$("#dataPreviewLabel").html(""); |
| 75 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
70 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
| 76 |
}); |
71 |
}); |
| 77 |
|
72 |
$( ".submit" ).on( "click", function() { |
|
|
73 |
$( "body" ).css( "cursor", "wait" ); |
| 74 |
}); |
| 75 |
$( ".import_auth_record" ).on( "click", function(e) { |
| 76 |
e.preventDefault(); |
| 77 |
var data_breedingid = $( this ).data( "breedingid" ); |
| 78 |
var data_headingcode = $( this ).data( "heading_code" ); |
| 79 |
var data_authid = $( this ).data( "authid" ); |
| 80 |
Import(data_breedingid, data_headingcode, data_authid ); |
| 81 |
return false; |
| 82 |
}); |
| 83 |
$( "#close_menu" ).on( "click", function(e) { |
| 84 |
e.preventDefault(); |
| 85 |
$(".linktools").hide(); |
| 86 |
$("tr").removeClass("selected"); |
| 87 |
return false; |
| 88 |
}); |
| 89 |
$( "[name='changepage_prev']" ).on( "click", function() { |
| 90 |
var data_current_page_prev = $( this ).data( "currentpage" ); |
| 91 |
$( '#current_page' ).val( data_current_page_prev - 1 ); |
| 92 |
$( '#page_form' ).submit(); |
| 93 |
}); |
| 94 |
$( "[name='changepage_next']" ).on( "click", function() { |
| 95 |
var data_current_page_next = $( this ).data( "currentpage" ); |
| 96 |
$( '#current_page' ).val( data_current_page_next + 1 ); |
| 97 |
$( '#page_form' ).submit(); |
| 98 |
}); |
| 99 |
$( "[name='changepage_goto']" ).on( "click", function() { |
| 100 |
return validate_goto_page(); |
| 101 |
}); |
| 78 |
}); |
102 |
}); |
| 79 |
|
103 |
|
| 80 |
[% IF ( total_pages ) %] |
104 |
[% IF ( total_pages ) %] |
|
Lines 135-147
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 135 |
<li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li> |
159 |
<li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li> |
| 136 |
<li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li> |
160 |
<li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li> |
| 137 |
<li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li> |
161 |
<li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li> |
|
|
162 |
<li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li> |
| 138 |
</ol> |
163 |
</ol> |
| 139 |
<p><a id="resetZ3950Search" href="#">Clear search form</a></p> |
|
|
| 140 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
164 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
| 141 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
165 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
| 142 |
</div> |
166 |
</div> |
| 143 |
<div class="yui-g"> |
167 |
<div class="yui-g"> |
| 144 |
<h2>Search targets <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="checkall"><a id="CheckAll" href="#">Select all</a></span><span class="clearall"><a id="CheckNone" href="#">Clear all</a></span></span></h2> |
168 |
<h2>Search targets <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span></span></h2> |
| 145 |
<div id="z3950_search_targets"> |
169 |
<div id="z3950_search_targets"> |
| 146 |
[% FOREACH serverloo IN serverloop %] |
170 |
[% FOREACH serverloo IN serverloop %] |
| 147 |
<p> |
171 |
<p> |
|
Lines 156-162
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 156 |
[% END %] |
180 |
[% END %] |
| 157 |
</div> |
181 |
</div> |
| 158 |
</div> |
182 |
</div> |
| 159 |
<fieldset class="action"><input type="submit" class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
183 |
<fieldset class="action"><input type="submit" class="submit" value="Search" /> <a class="cancel close" href="#">Cancel</a></fieldset> |
| 160 |
</form> |
184 |
</form> |
| 161 |
|
185 |
|
| 162 |
|
186 |
|
|
Lines 206-212
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 206 |
[% IF ( breeding_loo.breedingid ) %] |
230 |
[% IF ( breeding_loo.breedingid ) %] |
| 207 |
|
231 |
|
| 208 |
<tr id="row[% breeding_loo.breedingid %]"> |
232 |
<tr id="row[% breeding_loo.breedingid %]"> |
| 209 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],[% breeding_loo.biblionumber %]); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td> |
233 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="#" class="import_auth_record" data-breedingid="[% breeding_loo.breedingid %]" data-heading_code="[% breeding_loo.heading_code %]" data-authid="[% breeding_loo.authid %]">Import</a><a href="#" id="close_menu" title="Close this menu"> X </a></div> </td> |
| 210 |
<td>[% breeding_loo.title |html %]</td> |
234 |
<td>[% breeding_loo.title |html %]</td> |
| 211 |
<td>[% breeding_loo.author %]</td> |
235 |
<td>[% breeding_loo.author %]</td> |
| 212 |
<td>[% breeding_loo.date %]</td> |
236 |
<td>[% breeding_loo.date %]</td> |
|
Lines 215-221
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 215 |
<td>[% breeding_loo.lccn %]</td> |
239 |
<td>[% breeding_loo.lccn %]</td> |
| 216 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">MARC</a></td> |
240 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">MARC</a></td> |
| 217 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Card</a></td> |
241 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Card</a></td> |
| 218 |
<td><a href="#" onclick="Import([% breeding_loo.breedingid %],[% breeding_loo.biblionumber %]); return false">Import</a></td> |
242 |
<td><a href="#" class="import_auth_record" data-breedingid="[% breeding_loo.breedingid %]" data-heading_code="[% breeding_loo.heading_code %]" data-authid="[% breeding_loo.authid %]">Import</a></td> |
| 219 |
</tr> |
243 |
</tr> |
| 220 |
[% END %] |
244 |
[% END %] |
| 221 |
[% END %]</tbody> |
245 |
[% END %]</tbody> |
|
Lines 253-265
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 253 |
[% END %] |
277 |
[% END %] |
| 254 |
|
278 |
|
| 255 |
[% IF ( show_prevbutton ) %] |
279 |
[% IF ( show_prevbutton ) %] |
| 256 |
<input type="button" name="changepage_prev" value="Previous Page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" /> |
280 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" /> |
| 257 |
[% END %] |
281 |
[% END %] |
| 258 |
Page [% current_page %] / [% total_pages %] |
282 |
Page [% current_page %] / [% total_pages %] |
| 259 |
[% IF ( show_nextbutton ) %] |
283 |
[% IF ( show_nextbutton ) %] |
| 260 |
<input type="button" name="changepage_next" value="Next Page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" /> |
284 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" /> |
| 261 |
[% END %] |
285 |
[% END %] |
| 262 |
<br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" onclick="return validate_goto_page();" value="Go" /> |
286 |
<br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" /> |
| 263 |
</form> |
287 |
</form> |
| 264 |
|
288 |
|
| 265 |
[% ELSE %] |
289 |
[% ELSE %] |
| 266 |
- |
|
|