Merge remote-tracking branch 'origin/new/bug_6291'
[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.parents('tr').find('.title').text();
9     opener.document.f.biblionumber.value = bibno;
10     opener.document.f.title.value = title;
11     window.close();
12 }
13 //]]>
14 </script>
15 </head>
16 <body>
17
18 <div id="doc" class="yui-t7">
19    <div id="bd">
20         
21
22 [% IF ( total ) %]
23 <h1>Search results from [% from %] to [% to %] of [% total %]</h1>
24 <table>
25     <tr>
26        <th>Title</th>
27        <th>Author</th>
28        <th>Publisher</th>
29        <th>Publication year</th>
30            <th>&nbsp;</th>
31     </tr>
32     [% FOREACH resultsloo IN resultsloop %]
33         <tr>
34             <td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
35             </td>
36             <td>
37                 [% resultsloo.author |html %]
38             </td>
39             <td>
40                 [% resultsloo.publishercode |html %]
41             </td>
42             <td>
43                 [% resultsloo.publicationyear |html %]
44             </td>
45                         <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]',$(this));" title="Choose this record">Choose</a></td>
46         </tr>
47     [% END %]
48     </table>
49 [% ELSE %]
50 <h2>No results found for <b>[% query %]</b></h2>
51 [% END %]
52 [% IF ( displayprev ) %]
53 <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>
54 [% END %]
55 [% IF ( displaynext ) %]
56 <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>
57 [% END %]
58 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
59 <fieldset class="action"><a class="button close" href="#">Close</a></fieldset>
60 </div>
61
62 [% INCLUDE 'intranet-bottom.inc' %]