Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/result.tt
Josef Moravec 804677265e Bug 16239: Update templates
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-01-13 14:41:22 +00:00

82 lines
2.5 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials &rsaquo; Search results</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
$(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>
</head>
<body id="ser_result" class="ser">
<div id="doc" class="yui-t7">
<div id="bd">
[% IF ( total ) %]
<h1>Search results from [% from %] to [% to %] of [% total %]</h1>
<table>
<tr>
<th>Title</th>
<th>Author</th>
<th>Publisher</th>
<th>Publication year</th>
<th>ISSN</th>
<th>&nbsp;</th>
</tr>
[% FOREACH resultsloo IN resultsloop %]
<tr>
<td class="title">[% resultsloo.title |html %] [% resultsloo.subtitle |html %]
</td>
<td>
[% resultsloo.author |html %]
</td>
<td>
[% resultsloo.publishercode |html %]
</td>
<td>
[% resultsloo.publicationyear |html %]
</td>
<td>
[% resultsloo.issn |html %]
</td>
<td><a class="btn btn-default btn-xs select_title" data-biblionumber="[% resultsloo.biblionumber %]" href="#" title="Choose this record">Choose</a></td>
</tr>
[% END %]
</table>
[% ELSE %]
<div class="dialog message">
<p>No results found for <b>[% query %]</b></p>
</div>
[% END %]
<div class="pages">
[% IF ( displayprev ) %]
<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>
[% END %]
[% IF ( displaynext ) %]
<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>
[% END %]
</div>
<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>
</div>
[% INCLUDE 'intranet-bottom.inc' %]