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(Breeding,AuthType,authid) { |
|
|
10 |
opener.document.location="../authorities/authorities.pl?breedingid="+Breeding+"&authtypecode="+AuthType+"&authid="+authid; |
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 50-66
$(document).ready(function(){
Link Here
|
50 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
33 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
51 |
} |
34 |
} |
52 |
}); |
35 |
}); |
53 |
$("form[name='f']").submit(function(){ |
|
|
54 |
if ($('input[type=checkbox]').filter(':checked').length == 0) { |
55 |
alert(_("Please choose at least one Z39.50 target")); |
56 |
return false; |
57 |
} else |
58 |
return true; |
59 |
}); |
60 |
$("#resetZ3950Search").click(function(e) { |
61 |
e.preventDefault(); |
62 |
$("form[name='f']").find("input[type=text]").val(""); |
63 |
}); |
64 |
$(".previewMARC").on("click", function(e){ |
36 |
$(".previewMARC").on("click", function(e){ |
65 |
e.preventDefault(); |
37 |
e.preventDefault(); |
66 |
var ltitle = $(this).text(); |
38 |
var ltitle = $(this).text(); |
Lines 73-99
$(document).ready(function(){
Link Here
|
73 |
$("#marcPreviewLabel").html(""); |
45 |
$("#marcPreviewLabel").html(""); |
74 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
46 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
75 |
}); |
47 |
}); |
76 |
}); |
|
|
77 |
|
78 |
[% IF ( total_pages ) %] |
79 |
function validate_goto_page(){ |
80 |
var page = $('#goto_page').val(); |
81 |
if(isNaN(page)) { |
82 |
alert(_("The page entered is not a number.")); |
83 |
return false; |
84 |
} |
85 |
else if(page < 1 || page > [% total_pages %] ) { |
86 |
alert(_("The page should be a number between 1 and %s.").format([% total_pages %])); |
87 |
return false; |
88 |
} |
89 |
else { |
90 |
return true; |
91 |
} |
92 |
} |
93 |
[% END %] |
94 |
|
48 |
|
|
|
49 |
}); |
50 |
var MSG_CHOOSE_Z3950 = _("Please choose at least one external target"); |
95 |
//]]> |
51 |
//]]> |
96 |
</script> |
52 |
</script> |
|
|
53 |
[% INCLUDE 'z3950_search.inc' %] |
54 |
<script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search.js"></script> |
97 |
<style type="text/css"> |
55 |
<style type="text/css"> |
98 |
.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;} |
56 |
.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;} |
99 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
57 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
Lines 139-150
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
139 |
<li><label for="subjectsubdiv">Subject sub-division: </label> <input type="text" id="subjectsubdiv" name="subjectsubdiv" value="" /></li> |
97 |
<li><label for="subjectsubdiv">Subject sub-division: </label> <input type="text" id="subjectsubdiv" name="subjectsubdiv" value="" /></li> |
140 |
<li><label for="title">Title (any): </label> <input type="text" id="title" name="title" value="[% title | html %]" /></li> |
98 |
<li><label for="title">Title (any): </label> <input type="text" id="title" name="title" value="[% title | html %]" /></li> |
141 |
<li><label for="uniformtitle">Title (uniform): </label> <input type="text" id="uniformtitle" name="uniformtitle" value="[% uniformtitle | html %]" /></li> |
99 |
<li><label for="uniformtitle">Title (uniform): </label> <input type="text" id="uniformtitle" name="uniformtitle" value="[% uniformtitle | html %]" /></li> |
|
|
100 |
<li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li> |
142 |
</ol> |
101 |
</ol> |
143 |
<p><a id="resetZ3950Search" href="#">Clear search form</a></p> |
|
|
144 |
</fieldset> |
102 |
</fieldset> |
145 |
</div> |
103 |
</div> |
146 |
<div class="yui-g"> |
104 |
<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> |
105 |
<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"> |
106 |
<div id="z3950_search_targets_auth"> |
149 |
[% FOREACH serverloo IN serverloop %] |
107 |
[% FOREACH serverloo IN serverloop %] |
150 |
<p> |
108 |
<p> |
Lines 158-164
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
158 |
[% END %] |
116 |
[% END %] |
159 |
</div> |
117 |
</div> |
160 |
</div> |
118 |
</div> |
161 |
<fieldset class="action"><input type="submit" class="submit" value="Search" onclick="cursor :'wait'"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
119 |
<fieldset class="action"><input type="submit" class="submit" value="Search"/> <a class="cancel close" href="#">Cancel</a></fieldset> |
162 |
</form> |
120 |
</form> |
163 |
[% ELSE %] |
121 |
[% ELSE %] |
164 |
<h2>Results for Authority Records</h2> |
122 |
<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 %] |
132 |
<tbody>[% FOREACH breeding_loo IN breeding_loop %] |
175 |
[% IF ( breeding_loo.breedingid ) %] |
133 |
[% IF ( breeding_loo.breedingid ) %] |
176 |
<tr id="row[% breeding_loo.breedingid %]"> |
134 |
<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> |
135 |
<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_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> |
136 |
<td>[% breeding_loo.heading %]</td> |
179 |
<td>[% breeding_loo.heading_code %]</td> |
137 |
<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> |
138 |
<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> |
139 |
<td><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid %]" data-heading_code="[% breeding_loo.heading_code %]" data-authid="[% breeding_loo.authid %]">Import</a></td> |
182 |
</tr> |
140 |
</tr> |
183 |
[% END %] |
141 |
[% END %] |
184 |
[% END %]</tbody> |
142 |
[% END %]</tbody> |
Lines 215-227
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
215 |
[% END %] |
173 |
[% END %] |
216 |
|
174 |
|
217 |
[% IF ( show_prevbutton ) %] |
175 |
[% IF ( show_prevbutton ) %] |
218 |
<input type="button" name="changepage_prev" value="Previous page" onclick="$('#current_page').val([% current_page %]-1);$('#page_form').submit();" /> |
176 |
<input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" /> |
219 |
[% END %] |
177 |
[% END %] |
220 |
Page [% current_page %] / [% total_pages %] |
178 |
Page [% current_page %] / [% total_pages %] |
221 |
[% IF ( show_nextbutton ) %] |
179 |
[% IF ( show_nextbutton ) %] |
222 |
<input type="button" name="changepage_next" value="Next page" onclick="$('#current_page').val([% current_page %]+1);$('#page_form').submit();" /> |
180 |
<input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" /> |
223 |
[% END %] |
181 |
[% END %] |
224 |
<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" /> |
182 |
<br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" /> |
225 |
</form> |
183 |
</form> |
226 |
|
184 |
|
227 |
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try another search"/></form></p> |
185 |
<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_auth_search.pl"><input type="hidden" name="authid" value="[% authid %]" /><input type="submit" value="Try another search"/></form></p> |