Lines 6-31
Link Here
|
6 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
7 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
8 |
//<![CDATA[ |
8 |
//<![CDATA[ |
9 |
function Import(GetThisOne,biblionumber) { |
|
|
10 |
opener.document.location="../cataloguing/addbiblio.pl?biblionumber="+biblionumber+"&z3950=1&frameworkcode=[% frameworkcode %]&breedingid="+GetThisOne; |
11 |
window.close(); |
12 |
return false; |
13 |
} |
14 |
|
15 |
function closemenu(){ |
16 |
$(".linktools").hide(); |
17 |
$("tr").removeClass("selected"); |
18 |
} |
19 |
|
9 |
|
20 |
$(document).ready(function(){ |
10 |
$(document).ready(function(){ |
21 |
$("#CheckAll").click(function(){ |
11 |
|
22 |
$(".checkboxed").checkCheckboxes(); |
|
|
23 |
return false; |
24 |
}); |
25 |
$("#CheckNone").click(function(){ |
26 |
$(".checkboxed").unCheckCheckboxes(); |
27 |
return false; |
28 |
}); |
29 |
$("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
$("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, { |
30 |
"sDom": 't', |
13 |
"sDom": 't', |
31 |
"aoColumnDefs": [ |
14 |
"aoColumnDefs": [ |
Lines 51-101
$(document).ready(function(){
Link Here
|
51 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
34 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
52 |
} |
35 |
} |
53 |
}); |
36 |
}); |
54 |
$("form[name='f']").submit(function(){ |
|
|
55 |
if ($('input[type=checkbox]').filter(':checked').length == 0) { |
56 |
alert(_("Please choose at least one external target")); |
57 |
return false; |
58 |
} else |
59 |
return true; |
60 |
}); |
61 |
$("#resetZ3950Search").click(function(e) { |
62 |
e.preventDefault(); |
63 |
$("form[name='f']").find("input[type=text]").val(""); |
64 |
}); |
65 |
$(".previewData").on("click", function(e){ |
66 |
e.preventDefault(); |
67 |
var ltitle = $(this).text(); |
68 |
var page = $(this).attr("href"); |
69 |
$("#dataPreviewLabel").text(ltitle); |
70 |
$("#dataPreview .modal-body").load(page + " div"); |
71 |
$('#dataPreview').modal({show:true}); |
72 |
}); |
73 |
$("#dataPreview").on("hidden", function(){ |
74 |
$("#dataPreviewLabel").html(""); |
75 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
76 |
}); |
77 |
|
37 |
|
78 |
}); |
38 |
}); |
79 |
|
39 |
|
80 |
[% IF ( total_pages ) %] |
|
|
81 |
function validate_goto_page(){ |
82 |
var page = $('#goto_page').val(); |
83 |
if(isNaN(page)) { |
84 |
alert(_("The page entered is not a number.")); |
85 |
return false; |
86 |
} |
87 |
else if(page < 1 || page > [% total_pages %] ) { |
88 |
alert(_("The page should be a number between 1 and %s.").format([% total_pages %])); |
89 |
return false; |
90 |
} |
91 |
else { |
92 |
return true; |
93 |
} |
94 |
} |
95 |
[% END %] |
96 |
|
97 |
//]]> |
40 |
//]]> |
98 |
</script> |
41 |
</script> |
|
|
42 |
[% INCLUDE 'z3950_search.inc' %] |
43 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search.js"></script> |
99 |
<style type="text/css"> |
44 |
<style type="text/css"> |
100 |
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;} |
45 |
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;} |
101 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
46 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
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> |
80 |
<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> |
81 |
<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> |
82 |
<li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li> |
|
|
83 |
<li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li> |
138 |
</ol> |
84 |
</ol> |
139 |
<p><a id="resetZ3950Search" href="#">Clear search form</a></p> |
|
|
140 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
85 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
141 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
86 |
<input type="hidden" name="frameworkcode" value="[% frameworkcode %]" /> |
142 |
</div> |
87 |
</div> |
143 |
<div class="yui-g"> |
88 |
<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> |
89 |
<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"> |
90 |
<div id="z3950_search_targets"> |
146 |
[% FOREACH serverloo IN serverloop %] |
91 |
[% FOREACH serverloo IN serverloop %] |
147 |
<p> |
92 |
<p> |
Lines 156-162
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
156 |
[% END %] |
101 |
[% END %] |
157 |
</div> |
102 |
</div> |
158 |
</div> |
103 |
</div> |
159 |
<fieldset class="action"><input type="submit" class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
104 |
<fieldset class="action"><input type="submit" class="submit" value="Search" /> <a class="cancel close" href="#">Cancel</a></fieldset> |
160 |
</form> |
105 |
</form> |
161 |
|
106 |
|
162 |
|
107 |
|
Lines 206-212
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
206 |
[% IF ( breeding_loo.breedingid ) %] |
151 |
[% IF ( breeding_loo.breedingid ) %] |
207 |
|
152 |
|
208 |
<tr id="row[% breeding_loo.breedingid %]"> |
153 |
<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> |
154 |
<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_record" data-breedingid="[% breeding_loo.breedingid %]" data-biblionumber="[% breeding_loo.biblionumber %]" data-frameworkcode="[% frameworkcode %]">Import</a><a href="#" id="close_menu" title="Close this menu"> X </a></div> </td> |
210 |
<td>[% breeding_loo.title |html %]</td> |
155 |
<td>[% breeding_loo.title |html %]</td> |
211 |
<td>[% breeding_loo.author %]</td> |
156 |
<td>[% breeding_loo.author %]</td> |
212 |
<td>[% breeding_loo.date %]</td> |
157 |
<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> |
160 |
<td>[% breeding_loo.lccn %]</td> |
216 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">MARC</a></td> |
161 |
<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> |
162 |
<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> |
163 |
<td><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid %]" data-biblionumber="[% breeding_loo.biblionumber %]" data-frameworkcode="[% frameworkcode %]">Import</a></td> |
219 |
</tr> |
164 |
</tr> |
220 |
[% END %] |
165 |
[% END %] |
221 |
[% END %]</tbody> |
166 |
[% END %]</tbody> |
Lines 253-265
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
253 |
[% END %] |
198 |
[% END %] |
254 |
|
199 |
|
255 |
[% IF ( show_prevbutton ) %] |
200 |
[% IF ( show_prevbutton ) %] |
256 |
<input type="button" name="changepage_prev" value="Previous Page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" /> |
201 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" /> |
257 |
[% END %] |
202 |
[% END %] |
258 |
Page [% current_page %] / [% total_pages %] |
203 |
Page [% current_page %] / [% total_pages %] |
259 |
[% IF ( show_nextbutton ) %] |
204 |
[% IF ( show_nextbutton ) %] |
260 |
<input type="button" name="changepage_next" value="Next Page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" /> |
205 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" /> |
261 |
[% END %] |
206 |
[% 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" /> |
207 |
<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> |
208 |
</form> |
264 |
|
209 |
|
265 |
[% ELSE %] |
210 |
[% ELSE %] |