1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Z39.50 search results</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
5 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
10 $(document).ready(function(){
12 $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
15 { "aTargets": [ -1,-2 ], "bSortable": false, "bSearchable": false },
17 "aaSorting": [[ 1, "asc" ]],
20 /* Inline edit/delete links */
21 $("td").click(function(event){
22 var $tgt = $(event.target);
23 var row = $(this).parent();
24 $(".linktools").hide();
25 $("tr").removeClass("selected");
26 row.addClass("selected");
27 if($tgt.is("a")||$tgt.is(":nth-child(4)")||$tgt.is(":nth-child(5)")){
28 //Don't show inline links for cells containing links of their own.
30 var position = $(this).offset();
31 var top = position.top+5;
32 var left = position.left+5;
33 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
41 [% INCLUDE 'z3950_search.inc' %]
42 <script type="text/javascript" src="[% interface %]/[% theme %]/js/z3950_search.js"></script>
43 <style type="text/css">
44 .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 a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
46 .linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
47 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; } #marcPreview { width : 90%; margin-left : -45%; top: 5%; } .modal-body { max-height: 380px; } .modal-header { padding: 0 14px; } @media (max-width: 767px) { #marcPreview { margin: 0; width : auto; } }
51 <style type="text/css">
52 #custom-doc { width:53em;*width:51.72em;min-width:689px; margin:auto; text-align:left; }
55 <body id="cat_z3950_auth_search" class="cat">
56 <div id="custom-doc" class="yui-t7">
59 <body id="cat_z3950_search" class="cat" style="padding:.5em;">
64 <h2>Z39.50 Authority search points</h2>
65 <form method="post" action="z3950_auth_search.pl" name="f" class="checkboxed">
66 <input type="hidden" name="op" id="op" value="do_search" />
67 <input type="hidden" name="authid" value="[% authid %]" />
69 <div class="yui-u first">
70 <fieldset class="rows">
72 <li><label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li>
73 <li><label for="nameany">Name (any): </label> <input type="text" id="nameany" name="nameany" value="" /></li>
74 <li><label for="authorany">Author (any): </label> <input type="text" id="authorany" name="authorany" value="" /></li>
75 <li><label for="authorpersonal">Author (personal): </label> <input type="text" id="authorpersonal" name="authorpersonal" value="[% authorpersonal | html %]" /></li>
76 <li><label for="authorcorp">Author (corporate): </label> <input type="text" id="authorcorp" name="authorcorp" value="[% authorcorp | html %]" /></li>
77 <li><label for="authormeetingcon">Author (meeting/conference): </label> <input type="text" id="authormeetingcon" name="authormeetingcon" value="[% authormeetingcon | html %]" /></li>
82 <fieldset class="rows">
84 <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
85 <li><label for="subjectsubdiv">Subject sub-division: </label> <input type="text" id="subjectsubdiv" name="subjectsubdiv" value="" /></li>
86 <li><label for="title">Title (any): </label> <input type="text" id="title" name="title" value="[% title | html %]" /></li>
87 <li><label for="uniformtitle">Title (uniform): </label> <input type="text" id="uniformtitle" name="uniformtitle" value="[% uniformtitle | html %]" /></li>
88 <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
93 <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>
94 <div id="z3950_search_targets_auth">
95 [% FOREACH serverloo IN serverloop %]
97 [% IF ( serverloo.checked ) %]
98 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" checked="checked" />
100 <input type="checkbox" name="id" id="z3950_[% serverloo.id %]" value="[% serverloo.id %]" />
102 <label for="z3950_[% serverloo.id %]">[% serverloo.servername %]</label>
107 <fieldset class="action"><input type="submit" class="submit" value="Search"/> <a class="cancel close" href="#">Cancel</a></fieldset>
110 <h2>Results for Authority Records</h2>
111 [% IF ( breeding_loop ) %]
112 <table id="resultst">
116 <th>Authority Type</th>
119 <tbody>[% FOREACH breeding_loo IN breeding_loop %]
120 [% IF ( breeding_loo.breedingid ) %]
121 <tr id="row[% breeding_loo.breedingid %]">
122 <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>
123 <td>[% breeding_loo.heading %]</td>
124 <td>[% breeding_loo.heading_code %]</td>
126 <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewMARC btn btn-default btn-xs"><i class="fa fa-eye"></i> Show MARC</a>
127 <a href="#" class="import_record btn btn-default btn-xs" data-breedingid="[% breeding_loo.breedingid %]" data-heading_code="[% breeding_loo.heading_code %]" data-authid="[% breeding_loo.authid %]"><i class="fa fa-download"></i> Import</a>
134 <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
135 <div class="modal-dialog">
136 <div class="modal-content">
137 <div class="modal-header">
138 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
139 <h3 id="marcPreviewLabel">MARC preview</h3>
141 <div class="modal-body">
142 <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
148 <form method="post" action="z3950_auth_search.pl" id="page_form" name="page_form" class="checkboxed">
149 <input type="hidden" name="op" id="op" value="do_search" />
150 <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
151 <input type="hidden" id="nameany" name="nameany" value="[% nameany %]" />
152 <input type="hidden" id="authorany" name="authorany" value="[% authorany %]" />
153 <input type="hidden" id="authorcorp" name="authorcorp" value="[% authorcorp %]" />
154 <input type="hidden" id="authorpersonal" name="authorpersonal" value="[% authorpersonal %]" />
155 <input type="hidden" id="authormeetingcon" name="authormeetingcon" value="[% authormeetingcon %]" />
156 <input type="hidden" id="title" name="title" value="[% title %]" />
157 <input type="hidden" id="uniformtitle" name="uniformtitle" value="[% uniformtitle %]" />
158 <input type="hidden" id="subject" name="subject" value="[% subject %]" />
159 <input type="hidden" id="subjectsubdiv" name="subjectsubdiv" value="[% subjectsubdiv %]" />
160 <input type="hidden" id="heading" name="heading" value="[% heading %]" />
161 <input type="hidden" id="srchany" name="srchany" value="[% srchany %]" />
162 <input type="hidden" name="authid" value="[% authid %]" />
164 [% FOREACH server IN servers %]
165 <input type="hidden" name="id" id="z3950_[% server.id %]" value="[% server.id %]" />
168 [% IF ( show_prevbutton ) %]
169 <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" />
171 Page [% current_page %] / [% total_pages %]
172 [% IF ( show_nextbutton ) %]
173 <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" />
175 <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
178 <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>
181 <div class="dialog alert">
183 [% FOREACH errcon IN errconn %]
184 [% IF ( errcon.error == '10000' ) %]<li>Connection failed to [% errcon.server %]</li>
185 [% ELSIF ( errcon.error == '10007' ) %]<li>Connection timeout to [% errcon.server %]</li>[% END %]
190 <div class="dialog message">Nothing found.</div>
191 <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>
198 [% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]