Merge remote branch 'kc/new/enh/bug_5917' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / result.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Serials &rsaquo; Search Results</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" language="javascript">
5 //<![CDATA[
6 function GetIt(bibno,title)
7 {
8     title = title.replace(/\?/,"\?");
9     title = title.replace(/"/,"\"");
10     title = title.replace(/'/,"\'");
11     opener.document.f.biblionumber.value = bibno;
12     opener.document.f.title.value = title;
13     window.close();
14 }
15 //]]>
16 </script>
17 </head>
18 <body>
19
20 <div id="doc" class="yui-t7">
21    <div id="bd">
22         
23
24 [% IF ( total ) %]
25 <h1>Search results from [% from %] to [% to %] of [% total %]</h1>
26 <table>
27     <tr>
28        <th>Title</th>
29        <th>Author</th>
30        <th>Publisher</th>
31        <th>Publication year</th>
32            <th>&nbsp;</th>
33     </tr>
34     [% FOREACH resultsloo IN resultsloop %]
35         <tr>
36             <td>[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
37             </td>
38             <td>
39                 [% resultsloo.author |html %]
40             </td>
41             <td>
42                 [% resultsloo.publishercode |html %]
43             </td>
44             <td>
45                 [% resultsloo.publicationyear |html %]
46             </td>
47                         <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]','[% resultsloo.title |url %]');" title="Choose this record">Choose</a></td>
48         </tr>
49     [% END %]
50     </table>
51 [% ELSE %]
52 <h2>No results found for <b>[% query %]</b></h2>
53 [% END %]
54 [% IF ( displayprev ) %]
55 <a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromprev |url %]&amp;q=[% query |url %]">&lt;&lt;</a>
56 [% END %]
57 [% IF ( displaynext ) %]
58 <a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromnext |url %]&amp;q=[% query |url %]">&gt;&gt;</a>
59 [% END %]
60 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
61 <fieldset class="action"><a class="button close" href="#">Close</a></fieldset>
62 </div>
63
64 [% INCLUDE 'intranet-bottom.inc' %]