Bug 11529: Add templates for biblio title display. Unify display.
[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">
25                 [% INCLUDE 'biblio-title.inc' biblio=resultsloo %]
26             </td>
27             <td>
28                 [% resultsloo.author | html %]
29             </td>
30             <td>
31                 [% resultsloo.publishercode | html %]
32             </td>
33             <td>
34                 [% resultsloo.publicationyear | html %]
35             </td>
36             <td>
37                 [% resultsloo.issn | html %]
38             </td>
39             <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber | html %]" href="#" title="Choose this record">Choose</a></td>
40         </tr>
41     [% END %]
42     </table>
43 [% ELSE %]
44
45     <div class="dialog message">
46         <p>No results found for <b>[% query | html %]</b></p>
47     </div>
48
49 [% END %]
50
51 <div class="pages">
52     [% IF ( displayprev ) %]
53         <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>
54     [% END %]
55     [% IF ( displaynext ) %]
56         <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>
57     [% END %]
58 </div>
59
60 <p><a href="subscription-bib-search.pl">Search for another record</a></p>
61
62 <div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
63
64 [% MACRO jsinclude BLOCK %]
65     <script type="text/javascript">
66         $(document).ready(function(){
67             $(".select_title").on("click",function(e){
68                 e.preventDefault();
69                 var biblionumber = $(this).data("biblionumber");
70                 GetIt( biblionumber, $(this) );
71             });
72         });
73         function GetIt(bibno,title) {
74             title = title.parents('tr').find('.title').text();
75             opener.document.f.biblionumber.value = bibno;
76             opener.document.f.title.value = title;
77             window.close();
78         }
79     </script>
80 [% END %]
81
82 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]