Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / result.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Serials &rsaquo; Search results</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="ser_result" class="ser">
8
9 <div id="doc" class="yui-t7">
10    <div id="bd">
11         
12
13 [% IF ( total ) %]
14 <h1>Search results from [% from %] to [% to %] of [% total %]</h1>
15 <table>
16     <tr>
17        <th>Title</th>
18        <th>Author</th>
19        <th>Publisher</th>
20        <th>Publication year</th>
21        <th>ISSN</th>
22            <th>&nbsp;</th>
23     </tr>
24     [% FOREACH resultsloo IN resultsloop %]
25         <tr>
26             <td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
27             </td>
28             <td>
29                 [% resultsloo.author |html %]
30             </td>
31             <td>
32                 [% resultsloo.publishercode |html %]
33             </td>
34             <td>
35                 [% resultsloo.publicationyear |html %]
36             </td>
37             <td>
38                 [% resultsloo.issn |html %]
39             </td>
40             <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber %]" href="#" title="Choose this record">Choose</a></td>
41         </tr>
42     [% END %]
43     </table>
44 [% ELSE %]
45
46     <div class="dialog message">
47         <p>No results found for <b>[% query %]</b></p>
48     </div>
49
50 [% END %]
51
52 <div class="pages">
53     [% IF ( displayprev ) %]
54         <a class="nav" 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; Previous</a>
55     [% END %]
56     [% IF ( displaynext ) %]
57         <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&amp;type=intranet&amp;startfrom=[% startfromnext |url %]&amp;q=[% query |url %]">Next  &gt;&gt;</a>
58     [% END %]
59 </div>
60
61 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
62
63 <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
64
65 </div>
66
67 [% MACRO jsinclude BLOCK %]
68     <script type="text/javascript">
69         $(document).ready(function(){
70             $(".select_title").on("click",function(e){
71                 e.preventDefault();
72                 var biblionumber = $(this).data("biblionumber");
73                 GetIt( biblionumber, $(this) );
74             });
75         });
76         function GetIt(bibno,title) {
77             title = title.parents('tr').find('.title').text();
78             opener.document.f.biblionumber.value = bibno;
79             opener.document.f.title.value = title;
80             window.close();
81         }
82     </script>
83 [% END %]
84
85 [% INCLUDE 'intranet-bottom.inc' %]