+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Serials › Search results</title>
+<title>Search results › Serials › Koha</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" language="javascript">
-//<![CDATA[
-function GetIt(bibno,title)
-{
- title = title.parents('tr').find('.title').text();
- opener.document.f.biblionumber.value = bibno;
- opener.document.f.title.value = title;
- window.close();
-}
-//]]>
-</script>
</head>
+
<body id="ser_result" class="ser">
-<div id="doc" class="yui-t7">
- <div id="bd">
-
+<div class="main container-fluid">
[% IF ( total ) %]
-<h1>Search results from [% from %] to [% to %] of [% total %]</h1>
+<h1>Search results from [% from | html %] to [% to | html %] of [% total | html %]</h1>
+<div class="page-section">
<table>
<tr>
<th>Title</th>
</tr>
[% FOREACH resultsloo IN resultsloop %]
<tr>
- <td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
+ <td class="title">
+ [% INCLUDE 'biblio-title.inc' biblio=resultsloo %]
</td>
<td>
- [% resultsloo.author |html %]
+ [% resultsloo.author | html %]
</td>
<td>
- [% resultsloo.publishercode |html %]
+ [% resultsloo.publishercode | html %]
</td>
<td>
- [% resultsloo.publicationyear |html %]
+ [% resultsloo.publicationyear | html %]
</td>
<td>
- [% resultsloo.issn |html %]
+ [% resultsloo.issn | html %]
</td>
-
- <td><a href="#" onclick="GetIt('[% resultsloo.biblionumber %]',$(this));" title="Choose this record">Choose</a></td>
+ <td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber | html %]" href="#" title="Choose this record">Choose</a></td>
</tr>
[% END %]
</table>
+</div>
[% ELSE %]
-<h2>No results found for <b>[% query %]</b></h2>
-[% END %]
-[% IF ( displayprev ) %]
-<a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromprev |url %]&q=[% query |url %]"><<</a>
-[% END %]
-[% IF ( displaynext ) %]
-<a href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromnext |url %]&q=[% query |url %]">>></a>
+
+ <div class="dialog message">
+ <p>No results found for <strong>[% query | html %]</strong></p>
+ </div>
+
[% END %]
-<p><a href="subscription-bib-search.pl">Search for another record</a></p>
-<fieldset class="action"><a class="button close" href="#">Close</a></fieldset>
+
+<div class="pages">
+ [% IF ( displayprev ) %]
+ <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromprev |url %]&q=[% query |url %]"><< Previous</a>
+ [% END %]
+ [% IF ( displaynext ) %]
+ <a class="nav" href="/cgi-bin/koha/serials/subscription-bib-search.pl?op=do_search&type=intranet&startfrom=[% startfromnext |url %]&q=[% query |url %]">Next >></a>
+ [% END %]
</div>
-[% INCLUDE 'intranet-bottom.inc' %]
+<p><a href="subscription-bib-search.pl">Search for another record</a></p>
+
+<div id="closewindow"><a class="btn btn-default btn-default close" href="#">Close</a></div>
+
+[% MACRO jsinclude BLOCK %]
+ <script>
+ $(document).ready(function(){
+ $(".select_title").on("click",function(e){
+ e.preventDefault();
+ var biblionumber = $(this).data("biblionumber");
+ GetIt( biblionumber, $(this) );
+ });
+ });
+ function GetIt(bibno,title) {
+ title = title.parents('tr').find('.title').text();
+ opener.document.f.biblionumber.value = bibno;
+ opener.document.f.title.value = title;
+ window.close();
+ }
+ </script>
+[% END %]
+
+[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]