753633213e
This patch implements some of the suggestions made by Owen Leonard and brings the form closer in line with other popup forms. In particular: - sets dimensions for the popup so that clicking on the link is more likely to open a new browser window, not a tab. - ensures that the vendor search form is always visible - adds a cancel link to make it more clear to library staff that they can abort the process. - tweaks markup to better match the patron guarantor popup search form Signed-off-by: Galen Charlton <gmc@esilibrary.com>
119 lines
5 KiB
Text
119 lines
5 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions › Transfer order</title>
|
|
[% 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 %]
|
|
</head>
|
|
<body id="order_transfer_page">
|
|
|
|
<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>
|
|
[% 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" name="query" />
|
|
<input type="submit" value="Search" />
|
|
</fieldset>
|
|
</form>
|
|
[% IF ( show_baskets ) %]
|
|
<h3>Baskets for [% booksellertoname %]</h3>
|
|
[% IF ( basketsloop ) %]
|
|
<table>
|
|
<thead>
|
|
<th>Basket (#)</th>
|
|
<th>Created by</th>
|
|
<th>Date</th>
|
|
<th> </th>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH basket IN basketsloop %]
|
|
<tr>
|
|
<td>[% basket.basketname %] (#[% basket.basketno %])</td>
|
|
<td>[% basket.createdby %]</td>
|
|
<td>[% basket.creationdate %]</td>
|
|
<td><a href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]" onclick="return confirm('Do you want to transfer order [% ordernumber %] from basket [% basketfromname %] ([% booksellerfromname %]) to basket [% basket.basketname %] ([% booksellertoname %]) ?');">Choose</a>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<p>There is no open baskets for this supplier.</p>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( ordersloop ) %]
|
|
<h3>Orders for [% booksellerfromname %]</h3>
|
|
<table>
|
|
<thead>
|
|
<th>Order</th>
|
|
<th>Summary</th>
|
|
<th> </th>
|
|
</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 %][% END %]
|
|
</td>
|
|
<td><a 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>
|
|
<th>Name</th>
|
|
<th> </th>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH bookseller IN booksellersloop %]
|
|
<tr>
|
|
<td>[% bookseller.name %]</td>
|
|
<td><a 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="close">Cancel</a></div>
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|