Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt
Jonathan Druart 8e978c7ce0 Bug 5343: It is not possible to add a subscription for another supplier
If a supplier is defined for a subscription, you cannot order this
subscription to another supplier. If no supplier is defined, you can.

FIX: If a cancelled order is linked to a subscription, you can order it.

Signed-off-by: Leila Arkab <koha.aixmarseille@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-03-22 23:54:46 -04:00

123 lines
5.6 KiB
Text

[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
[% INCLUDE 'datatables-strings.inc' %]
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
<script type="text/javascript">
//<![CDATA[
function updateRowsVisibility(show_only_renewed) {
if ( show_only_renewed ) {
$("#srlt [data-reneweddate='']").hide();
} else {
$("#srlt > tbody > tr").show();
}
}
[% IF (dateformat == 'metric') %]
dt_add_type_uk_date();
[% END %]
$(document).ready(function() {
$("#srlt").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
[% IF (dateformat == 'metric') %]
{ "aTargets": [ -2 ], "sType": "uk_date" },
[% END %]
],
} ) )
$("#show_only_renewed").click(function(){
updateRowsVisibility($(this+":checked").val());
});
$("#show_only_renewed").attr('checked', false);
updateRowsVisibility(false);
$("#advsearch_form").show();
});
//]]>
</script>
</head>
<body>
[% INCLUDE 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% supplierid %]">[% booksellername %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Shopping Basket [% basketno %]</a> &rsaquo; Add order from a subscription</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h2>Serials subscriptions</h2>
[% IF (routing) %]
<h3>Search for Serial Routing List</h3>
[% END %]
[% IF (done_searched) %]
<label for="show_only_renewed">
<input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
Show only renewed
</label>
[% IF (subs_loop) %]
<table id="srlt">
<thead>
<tr>
<th>ISSN</th>
<th>Title</th>
<th> Notes </th>
<th>Library</th>
<th>Call number</th>
<th>Expiration date</th>
<th></th>
</tr>
</thead>
<tbody>
[% FOREACH sub IN subs_loop %]
<tr data-reneweddate="[% sub.reneweddate %]" >
<td>[% sub.issn %]</td>
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid %]" class="button" title="subscription detail">[% IF (sub.title) %][% sub.title |html %][% ELSE %]
---
[% END %][% IF (sub.unititle) %], [% sub.unititle %][% END %]</a>
</td>
<td>[% notes %]
[% IF (sub.internalnotes) %]([% sub.internalnotes %])[% END %]
</td>
<td>
[% IF (sub.branchcode) %][% sub.branchcode %][% END %]
</td>
<td>
[% IF (sub.callnumber) %][% sub.callnumber %][% END %]
</td>
<td>
[% IF (sub.enddate) %][% sub.enddate | $KohaDates %][% END %]
</td>
<td>
[% IF (sub.alreadyOnOrder) %]
Outstanding order (only one order per subscription is allowed)
[% ELSIF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid%]
<a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% sub.biblionumber %]&amp;subscriptionid=[% sub.subscriptionid %]" title="Order this one">
Order
</a>
[% ELSE %]
<a title="This subscription depends on another supplier" style="cursor:help">Not orderable</a>
[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[% ELSE %]
<p>Sorry, there is no result for your search.</p>
[% END %]
[% ELSE %]
<p>Use the search form on the left to find subscriptions.</p>
[% END %]
</div>
</div>
<div class="yui-b">
[% INCLUDE 'subscriptions-search.inc' %]
[% INCLUDE 'acquisitions-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]