Bug 33908: Improve translation of title tags: Acquisitions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / transferorder.tt
1 [% USE raw %]
2 [% PROCESS 'i18n.inc' %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>[% FILTER collapse %]
6     [% t("Transfer order") | html %] &rsaquo;
7     [% t("Acquisitions") | html %] &rsaquo;
8     [% t("Koha") | html %]
9 [% END %]</title>
10 [%- USE KohaDates -%]
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13
14 <body id="acq_transferorder" class="acq">
15     <div class="container-fluid">
16         <h1>Transfer order</h1>
17         [% IF ( bookselleridfrom ) %]
18             <h3>Search for a vendor to transfer to</h3>
19               <div class="transferinfo">
20                 <ul>
21                   <li><span class="label">From vendor: </span>[% booksellerfromname | html %]</li>
22                   <li><span class="label">Basket: </span>[% basketfromname | html %]</li>
23                   <li><span class="label">[% tp('noun', 'Order') | html %]: </span>[% ordernumber | html %]</li>
24                 </ul>
25               </div>
26         [% ELSE %]
27             <h3>Search for a vendor to transfer from</h3>
28         [% END %]
29         <form method="get" action="transferorder.pl">
30             <fieldset>
31             <input type="hidden" name="op" value="do_search" />
32             [% IF ( ordernumber ) %]
33                 <input type="hidden" name="ordernumber" value="[% ordernumber | html %]" />
34             [% END %]
35             [% IF ( bookselleridfrom ) %]
36                 <input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom | html %]" />
37             [% END %]
38             <label for="query">Vendor:</label>
39             <input type="text" id="query" name="query" />
40             <input type="submit" class="btn btn-primary" value="Search" />
41             </fieldset>
42         </form>
43         [% IF ( show_baskets ) %]
44             <h3>Baskets for [% booksellertoname | html %]</h3>
45             [% IF ( basketsloop ) %]
46                 <table>
47                     <thead>
48                         <tr>
49                             <th>Basket (#)</th>
50                             <th>[% tp('basket created by', 'Created by') | html %]</th>
51                             <th>Date</th>
52                             <th>&nbsp;</th>
53                         </tr>
54                     </thead>
55                     <tbody>
56                         [% FOREACH basket IN basketsloop %]
57                           <tr>
58                             <td>[% basket.basketname | html %] (#[% basket.basketno | html %])</td>
59                             <td>[% basket.createdby | html %]</td>
60                             <td>[% basket.creationdate | $KohaDates %]</td>
61                             <td><a class="btn btn-default btn-xs confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno | html %]&ordernumber=[% ordernumber | html %]">Choose</a>
62                           </tr>
63                         [% END %]
64                     </tbody>
65                 </table>
66             [% ELSE %]
67                 <p>There are no open baskets for this vendor.</p>
68             [% END %]
69         [% END %]
70         [% IF ( ordersloop ) %]
71             <h3>Orders for [% booksellerfromname | html %]</h3>
72             <table>
73                 <thead>
74                     <tr>
75                         <th>[% tp('noun', 'Order') | html %]</th>
76                         <th>Summary</th>
77                         <th>&nbsp;</th>
78                     </tr>
79                 </thead>
80                 <tbody>
81                     [% FOREACH ordersloo IN ordersloop %]
82                       <tr>
83                         <td><a href="neworderempty.pl?ordernumber=[% ordersloo.ordernumber | uri %]">[% ordersloo.ordernumber | html %]</a></td>
84                         <td>
85                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber | uri %]">[% ordersloo.title | html %]</a>
86                             [% IF ( ordersloo.author ) %] by [% ordersloo.author | html %][% END %]
87                             [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn | html %][% END %]
88                             [% IF ( ordersloo.publishercode ) %]
89                                 <br /><span>Publisher: [% ordersloo.publishercode | html %]</span>
90                                 [%- IF    ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear | html %]
91                                 [%- ELSIF ( ordersloo.copyrightdate   > 0) -%] [% ordersloo.copyrightdate | html %]
92                                 [% END %]
93                             [% END %]
94                         </td>
95                         <td><a class="btn btn-default btn-xs" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom | html %]&ordernumber=[% ordersloo.ordernumber | html %]">Transfer</a></td>
96                       </tr>
97                     [% END %]
98                 </tbody>
99             </table>
100         [% END %]
101         [% IF ( do_search ) %]
102             [% IF ( bookselleridfrom ) %]
103                 <h3>Choose a vendor to transfer to</h3>
104             [% ELSE %]
105                 <h3>Choose a vendor to transfer from</h3>
106             [% END %]
107             [% IF booksellers.count %]
108                 <table>
109                     <thead>
110                         <tr>
111                             <th>Name</th>
112                             <th>&nbsp;</th>
113                         </tr>
114                     </thead>
115                     <tbody>
116                         [% FOREACH bookseller IN booksellers %]
117                           <tr>
118                             <td>[% bookseller.name | html %]</td>
119                             <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>
120                           </tr>
121                         [% END %]
122                     </tbody>
123                  </table>
124             [% ELSE %]
125                 <p>No results found.</p>
126             [% END %]
127         [% END %]
128
129 <div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
130
131 [% MACRO jsinclude BLOCK %]
132     [% IF transferred %]
133         <script>
134             opener.location.reload();
135             window.close();
136         </script>
137     [% END %]
138
139     [% IF ( bookselleridfrom ) %]
140         <script>
141             $(document).ready(function(){
142                 $(".confirm_transfer").on("click",function(){
143                     return confirm( _("Transfer order to this basket?") );
144                 });
145             });
146         </script>
147     [% END %]
148 [% END %]
149
150 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]