Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt
Caroline Cyr La Rose 923aab2774
Bug 23983: Contextualization of 'Order' (verb) vs 'Order' (noun)
This patch adds context (word class, either verb or noun) to the word
'Order' when it is displayed alone in the acquisitions module.

The following files have been modified:
basket.tt
neworderbiblio.tt
newordersubscription.tt
newordersuggestion.tt
ordered.tt
parcel.tt
spent.tt
transferorder.tt
uncertainprice.tt
z3950_search.tt

To test, check all those pages in English to make sure there is
no change.
1- Go to Acquisitions
2- Create a basket
3- Add to basket from an existing record (neworderbiblio)
4- Add to basket from a subscription (newordersubscription)
5- Add to basket from a suggestion (newordersuggestion)
6- Add to basket from an external source (z3950_search)
7- In one of the orders, check the uncertain price box
8- Check the basket display table (basket)
9- Click transfer on one of the orders (transferorder)
10- Go to the vendor page and click on 'Uncertain prices' (uncertainprice)
11- Click on 'Receive parcel' (parcel)
12- Go to the Acquisitions home page and click on the
amount for 'ordered' (ordered)
13- Go to the Acquisitions home page and click on the
amount for 'spent' (spent)

Next, install a new language (fr-CA used as example)
1- translate create fr-CA
2- open fr-CA-messages.po and add a translation for Order
(verb) and Order (noun) (it doesn't have to be real, just
write something different for each)
3- translate install fr-CA
4- in the system preferences, enable the french language in
'language'
5- change interface language to french

Redo the tests above to make sure the word you put in the translation
for the verb is in the places where 'Order' should be a verb and that
the translation you put in for the noun is in the places where 'Order'
should be a noun

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-13 13:14:39 +00:00

145 lines
6.3 KiB
Text

[%# USE the plugin and define some macros %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
[%- USE KohaDates -%]
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="acq_transferorder" class="acq">
<div class="container-fluid">
[% 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>Created by</th>
<th>Date</th>
<th>&nbsp;</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>&nbsp;</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 ) %] &ndash; [% ordersloo.isbn | html %][% END %]
[% IF ( ordersloo.publishercode ) %]
<br />Publisher: [% ordersloo.publishercode | html %]
[%- 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 ( booksellersloop ) %]
<table>
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
[% FOREACH bookseller IN booksellersloop %]
<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 %]