cbb5096934
This patch fixes the display of copyrightdate for MARC21 installations. As MARC21 already requires you to add punctuation in cataloguing, there is usually no need for punctutation in the templates. Also fixes a template variable name typo and the basket summary page. To test (all 3 patches): - Add several order lines to an order, one should be uncertain - Verify that the publisher and publication year are displayed - Check the uncertain price page - Verify that the publisher code and publication year are displayed - Fix uncertain price and close your order - Basket summary: Verify... (you know what) - Cancel one of your orders - Verify... for cancelled orders - Receive shipment - Verify... for unreceived orders - Receive order - Verify ... for received orders - Finish receiving - Verify ... on the invoice summary page Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
153 lines
6.2 KiB
Text
153 lines
6.2 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions › Transfer order</title>
|
|
[%- USE KohaDates -%]
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css">
|
|
#custom-doc { width:44.46em;*width:43.39em;min-width:578px; margin:auto; text-align:left; }
|
|
</style>
|
|
[% IF transferred %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
opener.location.reload();
|
|
window.close();
|
|
//]]>
|
|
</script>
|
|
[% END %]
|
|
|
|
[% IF ( bookselleridfrom ) %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
$(document).ready(function(){
|
|
$(".confirm_transfer").on("click",function(){
|
|
return confirm( _("Transfer order to this basket?") );
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
[% END %]
|
|
|
|
|
|
</head>
|
|
<body id="acq_transferorder" class="acq">
|
|
<div id="custom-doc" class="yui-t7">
|
|
<div id="bd">
|
|
<div class="yui-g">
|
|
[% IF ( bookselleridfrom ) %]
|
|
<h3>Search for a vendor to transfer to</h3>
|
|
<div class="transferinfo">
|
|
<ul>
|
|
<li><span class="label">From vendor: </span>[% booksellerfromname %]</li>
|
|
<li><span class="label">Basket: </span>[% basketfromname %]</li>
|
|
<li><span class="label">Order: </span>[% ordernumber %]</li>
|
|
</ul>
|
|
</div>
|
|
[% ELSE %]
|
|
<h3>Search for a vendor to transfer from</h3>
|
|
[% END %]
|
|
<form method="get" action="transferorder.pl">
|
|
<fieldset>
|
|
<input type="hidden" name="op" value="do_search" />
|
|
[% IF ( ordernumber ) %]
|
|
<input type="hidden" name="ordernumber" value="[% ordernumber %]" />
|
|
[% END %]
|
|
[% IF ( bookselleridfrom ) %]
|
|
<input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom %]" />
|
|
[% END %]
|
|
<label for="query">Vendor:</label>
|
|
<input type="text" id="query" name="query" />
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
</form>
|
|
[% IF ( show_baskets ) %]
|
|
<h3>Baskets for [% booksellertoname %]</h3>
|
|
[% IF ( basketsloop ) %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Basket (#)</th>
|
|
<th>Created by</th>
|
|
<th>Date</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH basket IN basketsloop %]
|
|
<tr>
|
|
<td>[% basket.basketname %] (#[% basket.basketno %])</td>
|
|
<td>[% basket.createdby %]</td>
|
|
<td>[% basket.creationdate | $KohaDates %]</td>
|
|
<td><a class="btn btn-default btn-xs confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]">Choose</a>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<p>There are no open baskets for this vendor.</p>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( ordersloop ) %]
|
|
<h3>Orders for [% booksellerfromname %]</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Order</th>
|
|
<th>Summary</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH ordersloo IN ordersloop %]
|
|
<tr>
|
|
<td><a href="neworderempty.pl?ordernumber=[% ordersloo.ordernumber %]">[% ordersloo.ordernumber %]</a></td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]">[% ordersloo.title |html %]</a>
|
|
[% IF ( ordersloo.author ) %] by [% ordersloo.author %][% END %]
|
|
[% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn %][% END %]
|
|
[% IF ( ordersloo.publishercode ) %]
|
|
<br />Publisher: [% ordersloo.publishercode %]
|
|
[%- IF ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear %]
|
|
[%- ELSIF ( ordersloo.copyrightdate > 0) -%] [% ordersloo.copyrightdate %]
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
<td><a class="btn btn-default btn-xs" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% END %]
|
|
[% IF ( do_search ) %]
|
|
[% IF ( bookselleridfrom ) %]
|
|
<h3>Choose a vendor to transfer to</h3>
|
|
[% ELSE %]
|
|
<h3>Choose a vendor to transfer from</h3>
|
|
[% END %]
|
|
[% IF ( booksellersloop ) %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH bookseller IN booksellersloop %]
|
|
<tr>
|
|
<td>[% bookseller.name %]</td>
|
|
<td><a class="btn btn-default btn-xs" href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<p>No results found.</p>
|
|
[% END %]
|
|
[% END %]
|
|
</div>
|
|
|
|
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|