Bug 34571: Remove use of "onclick" for ExpandField in cataloguing editors
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / result.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Search results &rsaquo; Serials &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="ser_result" class="ser">
8
9 <div class="main container-fluid">
10
11 [% IF ( total ) %]
12 <h1>Search results from [% from | html %] to [% to | html %] of [% total | html %]</h1>
13 <div class="page-section">
14 <table>
15     <tr>
16        <th>Title</th>
17        <th>Author</th>
18        <th>Publisher</th>
19        <th>Publication year</th>
20        <th>ISSN</th>
21            <th>&nbsp;</th>
22     </tr>
23     [% FOREACH resultsloo IN resultsloop %]
24         <tr>
25             <td class="title">
26                 [% INCLUDE 'biblio-title.inc' biblio=resultsloo %]
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 | html %]" href="#" title="Choose this record">Choose</a></td>
41         </tr>
42     [% END %]
43     </table>
44 </div>
45 [% ELSE %]
46
47     <div class="dialog message">
48         <p>No results found for <strong>[% query | html %]</strong></p>
49     </div>
50
51 [% END %]
52
53 <div class="pages">
54     [% IF ( displayprev ) %]
55         <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>
56     [% END %]
57     [% IF ( displaynext ) %]
58         <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>
59     [% END %]
60 </div>
61
62 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
63
64 <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
65
66 [% MACRO jsinclude BLOCK %]
67     <script>
68         $(document).ready(function(){
69             $(".select_title").on("click",function(e){
70                 e.preventDefault();
71                 var biblionumber = $(this).data("biblionumber");
72                 GetIt( biblionumber, $(this) );
73             });
74         });
75         function GetIt(bibno,title) {
76             title = title.parents('tr').find('.title').text();
77             opener.document.f.biblionumber.value = bibno;
78             opener.document.f.title.value = title;
79             window.close();
80         }
81     </script>
82 [% END %]
83
84 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]