|
Lines 73-78
$(document).ready(function(){
Link Here
|
| 73 |
$("#marcPreviewLabel").html(""); |
73 |
$("#marcPreviewLabel").html(""); |
| 74 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
74 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
| 75 |
}); |
75 |
}); |
|
|
76 |
$( ".submit" ).on( "click", function() { |
| 77 |
$( "body" ).css( "cursor", "wait" ); |
| 78 |
}); |
| 79 |
$( ".import_auth_record" ).on( "click", function(e) { |
| 80 |
e.preventDefault(); |
| 81 |
var data_breedingid = $( this ).data( "breedingid" ); |
| 82 |
var data_headingcode = $( this ).data( "heading_code" ); |
| 83 |
var data_authid = $( this ).data( "authid" ); |
| 84 |
Import(data_breedingid, data_headingcode, data_authid ); |
| 85 |
return false; |
| 86 |
}); |
| 87 |
$( ".close_menu" ).on( "click", function() { |
| 88 |
e.preventDefault(); |
| 89 |
closemenu(); |
| 90 |
return false; |
| 91 |
}); |
| 76 |
}); |
92 |
}); |
| 77 |
|
93 |
|
| 78 |
[% IF ( total_pages ) %] |
94 |
[% IF ( total_pages ) %] |
|
Lines 144-150
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 144 |
</fieldset> |
160 |
</fieldset> |
| 145 |
</div> |
161 |
</div> |
| 146 |
<div class="yui-g"> |
162 |
<div class="yui-g"> |
| 147 |
<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> |
163 |
<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> |
| 148 |
<div id="z3950_search_targets_auth"> |
164 |
<div id="z3950_search_targets_auth"> |
| 149 |
[% FOREACH serverloo IN serverloop %] |
165 |
[% FOREACH serverloo IN serverloop %] |
| 150 |
<p> |
166 |
<p> |
|
Lines 158-164
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 158 |
[% END %] |
174 |
[% END %] |
| 159 |
</div> |
175 |
</div> |
| 160 |
</div> |
176 |
</div> |
| 161 |
<fieldset class="action"><input type="submit" class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
177 |
<fieldset class="action"><input type="submit" class="submit" value="Search"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
| 162 |
</form> |
178 |
</form> |
| 163 |
[% ELSE %] |
179 |
[% ELSE %] |
| 164 |
<h2>Results for Authority Records</h2> |
180 |
<h2>Results for Authority Records</h2> |
|
Lines 174-184
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
| 174 |
<tbody>[% FOREACH breeding_loo IN breeding_loop %] |
190 |
<tbody>[% FOREACH breeding_loo IN breeding_loop %] |
| 175 |
[% IF ( breeding_loo.breedingid ) %] |
191 |
[% IF ( breeding_loo.breedingid ) %] |
| 176 |
<tr id="row[% breeding_loo.breedingid %]"> |
192 |
<tr id="row[% breeding_loo.breedingid %]"> |
| 177 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">Preview MARC</a> <a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td> |
193 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">Preview MARC</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> |
| 178 |
<td>[% breeding_loo.heading %]</td> |
194 |
<td>[% breeding_loo.heading %]</td> |
| 179 |
<td>[% breeding_loo.heading_code %]</td> |
195 |
<td>[% breeding_loo.heading_code %]</td> |
| 180 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">MARC</a></td> |
196 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC">MARC</a></td> |
| 181 |
<td><a href="#" onclick="Import([% breeding_loo.breedingid %],'[% breeding_loo.heading_code %]','[% breeding_loo.authid %]'); return false">Import</a></td> |
197 |
<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> |
| 182 |
</tr> |
198 |
</tr> |
| 183 |
[% END %] |
199 |
[% END %] |
| 184 |
[% END %]</tbody> |
200 |
[% END %]</tbody> |
| 185 |
- |
|
|