Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/acqui-search-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

58 lines
1.6 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials &rsaquo; Select vendor</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
function GetIt(aqbooksellerid,name)
{
opener.document.f.aqbooksellerid.value = aqbooksellerid;
opener.document.f.aqbooksellername.value = name;
window.close();
}
$(document).ready(function(){
$(".select_vendor").on("click",function(e){
e.preventDefault();
var vendorname = $(this).data("vendorname");
var vendorid = $(this).data("vendorid");
GetIt( vendorid, vendorname );
});
});
</script>
</head>
<body id="ser_acqui-search-result" class="ser">
<div id="doc" class="yui-t7">
<div id="bd">
<h1>Vendor search results</h1>
[% UNLESS count %]
<h2>Your search returned no results.</h2>
[% ELSIF ( supplier.length < 1 ) %]
<h2>Vendor search: [% count %] result(s) found</h2>
[% ELSE %]
<h2>Vendor search: [% count %] result(s) found for '[% supplier %]'</h2>
[% END %]
[% IF ( loop_suppliers ) %]
<table>
<tr>
<th>Vendor</th>
<th>Select</th>
</tr>
[% FOREACH loop_supplier IN loop_suppliers %]
<tr>
<td>[% loop_supplier.name %]</td>
<td><a class="btn btn-default btn-xs select_vendor" href="#" data-vendorid="[% loop_supplier.aqbooksellerid %]" data-vendorname="[% loop_supplier.name |html%]">Choose</a></td>
</tr>
[% END %]
</table>
[% END %]
<p><a href="/cgi-bin/koha/serials/acqui-search.pl">Perform a new search</a></p>
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]