Victor Grousset/tuxayo
7758a0248e
And a few minor fixes when they where causing issues for translatability. And rephrased a string about password reset to have it identical to other strings with the same meaning. Simplified via wrapping strings with <span> to split to huge concatenated strings with a lot of %s everywhere. == Test plan == This patch needs mainly proof reading. Still it's possible to do some basic testing to demonstrate that adding a <span> in an IF doesn't break anything. Pick in one of the 110 modified templates a string that you know how to display. Otherwise: 1. acquisitions => vendor => basket => add to basket => search "from existing record" => add order 2. Cancel the order 3. You see without issue "Bibliographic record will not be deleted" 4. administration => Patron categories 5. Try to delete a used and unused category 6. You see as expected Category XXXX is in use. Deletion not possible! and Confirm deletion of category XXXX Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
145 lines
6.4 KiB
Text
145 lines
6.4 KiB
Text
[% PROCESS 'i18n.inc' %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Transfer order › Acquisitions › Koha</title>
|
|
[%- USE KohaDates -%]
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="acq_transferorder" class="acq">
|
|
<div class="container-fluid">
|
|
<h1>Transfer order</h1>
|
|
[% IF ( bookselleridfrom ) %]
|
|
<h3>Search for a vendor to transfer to</h3>
|
|
<div class="transferinfo">
|
|
<ul>
|
|
<li><span class="label">From vendor: </span>[% booksellerfromname | html %]</li>
|
|
<li><span class="label">Basket: </span>[% basketfromname | html %]</li>
|
|
<li><span class="label">[% tp('noun', 'Order') | html %]: </span>[% ordernumber | html %]</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 | html %]" />
|
|
[% END %]
|
|
[% IF ( bookselleridfrom ) %]
|
|
<input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom | html %]" />
|
|
[% 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 | html %]</h3>
|
|
[% IF ( basketsloop ) %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Basket (#)</th>
|
|
<th>[% tp('basket created by', 'Created by') | html %]</th>
|
|
<th>Date</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH basket IN basketsloop %]
|
|
<tr>
|
|
<td>[% basket.basketname | html %] (#[% basket.basketno | html %])</td>
|
|
<td>[% basket.createdby | html %]</td>
|
|
<td>[% basket.creationdate | $KohaDates %]</td>
|
|
<td><a class="btn btn-default btn-xs confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno | html %]&ordernumber=[% ordernumber | html %]">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 | html %]</h3>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>[% tp('noun', 'Order') | html %]</th>
|
|
<th>Summary</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH ordersloo IN ordersloop %]
|
|
<tr>
|
|
<td><a href="neworderempty.pl?ordernumber=[% ordersloo.ordernumber | uri %]">[% ordersloo.ordernumber | html %]</a></td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber | uri %]">[% ordersloo.title | html %]</a>
|
|
[% IF ( ordersloo.author ) %] by [% ordersloo.author | html %][% END %]
|
|
[% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn | html %][% END %]
|
|
[% IF ( ordersloo.publishercode ) %]
|
|
<br /><span>Publisher: [% ordersloo.publishercode | html %]</span>
|
|
[%- IF ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear | html %]
|
|
[%- ELSIF ( ordersloo.copyrightdate > 0) -%] [% ordersloo.copyrightdate | html %]
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
<td><a class="btn btn-default btn-xs" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom | html %]&ordernumber=[% ordersloo.ordernumber | html %]">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 booksellers.count %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH bookseller IN booksellers %]
|
|
<tr>
|
|
<td>[% bookseller.name | html %]</td>
|
|
<td><a class="btn btn-default btn-xs" href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id | html %][% IF (ordernumber) %]&ordernumber=[% ordernumber | html %][% END %]">Choose</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<p>No results found.</p>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% IF transferred %]
|
|
<script>
|
|
opener.location.reload();
|
|
window.close();
|
|
</script>
|
|
[% END %]
|
|
|
|
[% IF ( bookselleridfrom ) %]
|
|
<script>
|
|
$(document).ready(function(){
|
|
$(".confirm_transfer").on("click",function(){
|
|
return confirm( _("Transfer order to this basket?") );
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|