Bug 13618: Add html filters to all the variables
[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 class="main container-fluid">
10
11 [% IF ( total ) %]
12 <h1>Search results from [% from | html %] to [% to | html %] of [% total | html %]</h1>
13 <table>
14     <tr>
15        <th>Title</th>
16        <th>Author</th>
17        <th>Publisher</th>
18        <th>Publication year</th>
19        <th>ISSN</th>
20            <th>&nbsp;</th>
21     </tr>
22     [% FOREACH resultsloo IN resultsloop %]
23         <tr>
24             <td class="title">[% resultsloo.title | html %] [% resultsloo.subtitle | html %]
25             </td>
26             <td>
27                 [% resultsloo.author | html %]
28             </td>
29             <td>
30                 [% resultsloo.publishercode | html %]
31             </td>
32             <td>
33                 [% resultsloo.publicationyear | html %]
34             </td>
35             <td>
36                 [% resultsloo.issn | html %]
37             </td>
38             <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber | html %]" href="#" title="Choose this record">Choose</a></td>
39         </tr>
40     [% END %]
41     </table>
42 [% ELSE %]
43
44     <div class="dialog message">
45         <p>No results found for <b>[% query | html %]</b></p>
46     </div>
47
48 [% END %]
49
50 <div class="pages">
51     [% IF ( displayprev ) %]
52         <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>
53     [% END %]
54     [% IF ( displaynext ) %]
55         <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>
56     [% END %]
57 </div>
58
59 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
60
61 <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
62
63 [% MACRO jsinclude BLOCK %]
64     <script type="text/javascript">
65         $(document).ready(function(){
66             $(".select_title").on("click",function(e){
67                 e.preventDefault();
68                 var biblionumber = $(this).data("biblionumber");
69                 GetIt( biblionumber, $(this) );
70             });
71         });
72         function GetIt(bibno,title) {
73             title = title.parents('tr').find('.title').text();
74             opener.document.f.biblionumber.value = bibno;
75             opener.document.f.title.value = title;
76             window.close();
77         }
78     </script>
79 [% END %]
80
81 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]