Bug 33908: Improve translation of title tags: Acquisitions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / newordersuggestion.tt
1 [% USE raw %]
2 [% USE Branches %]
3 [% USE Price %]
4 [% USE Asset %]
5 [% USE AuthorisedValues %]
6 [% PROCESS 'i18n.inc' %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10     [% t("Add order from a suggestion") | html %] &rsaquo;
11     [% t("Acquisitions") | html %] &rsaquo;
12     [% t("Koha") | html %]
13 [% END %]</title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 </head>
16
17 <body id="acq_newordersuggestion" class="acq">
18 [% WRAPPER 'header.inc' %]
19     [% INCLUDE 'suggestions-add-search.inc' %]
20 [% END %]
21
22 [% WRAPPER 'sub-header.inc' %]
23     [% WRAPPER breadcrumbs %]
24         [% WRAPPER breadcrumb_item %]
25             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
26         [% END %]
27         [% WRAPPER breadcrumb_item %]
28             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
29         [% END %]
30         [% WRAPPER breadcrumb_item %]
31             <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
32         [% END %]
33         [% WRAPPER breadcrumb_item bc_active= 1 %]
34             <span>Add order from a suggestion</span>
35         [% END %]
36     [% END #/ WRAPPER breadcrumbs %]
37 [% END #/ WRAPPER sub-header.inc %]
38
39 <div class="main container-fluid">
40     <div class="row">
41         <div class="col-sm-10 col-sm-push-2">
42             <main>
43
44 <h1>Suggestions</h1>
45
46     <div class="page-section">
47         [% IF suggestions.size %]
48             <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
49             <table id="suggestionst">
50                 <thead>
51                 <tr>
52                     <th>Mine</th>
53                     <th>Suggestion</th>
54                     <th>Document type</th>
55                     <th>Suggested by</th>
56                     <th>Accepted by</th>
57                     <th>Library</th>
58                     <th>Fund</th>
59                     <th>Price</th>
60                     <th>Quantity</th>
61                     <th>Total</th>
62                     <th>&nbsp;</th>
63                 </tr>
64                 </thead>
65                 <tbody>
66                     [% FOREACH suggestion IN suggestions %]
67                         <tr>
68                             <td>[% suggestion.managedby | html %]</td>
69                             <td>
70                                 <p>[% suggestion.title | html %] - [% suggestion.author | html %]</p>
71                                 <p>
72                                     [% IF ( suggestion.copyrightdate ) %]&copy; [% suggestion.copyrightdate | html %] [% END %]
73                                     [% IF ( suggestion.volumedesc ) %]volume: <em>[% suggestion.volumedesc | html %]</em> [% END %]
74                                     [% IF ( suggestion.isbn ) %]ISBN: <em>[% suggestion.isbn | html %]</em> [% END %]
75                                     [% IF ( suggestion.publishercode ) %]<br />published by: [% suggestion.publishercode | html %] [% END %]
76                                     [% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %]
77                                     [% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% END %]
78                                     [% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
79                                 </p>
80                             </td>
81                             <td>[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype ) | html %]</td>
82                             <td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
83                             <td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
84                             <td>
85                                 [% Branches.GetName(suggestion.branchcode) | html %]
86                             </td>
87                             <td>
88                                 [% suggestion.fund.budget_name | html %]
89                             </td>
90                             <td>
91                                 [% suggestion.price | $Price %]
92                             </td>
93                             <td>
94                                 [% IF (suggestion.quantity > 0) %]
95                                     [% suggestion.quantity | html %]
96                                 [% END %]
97                             </td>
98                             <td>
99                                 [% suggestion.total | $Price %]
100                             </td>
101                             <td class="actions">
102                                 [% IF ( suggestion.biblionumber ) %]
103                                     <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;suggestionid=[% suggestion.suggestionid | uri %]&amp;biblio=[% suggestion.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
104                                 [% ELSE %]
105                                     <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]&amp;suggestionid=[% suggestion.suggestionid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
106                                 [% END %]
107                             </td>
108                         </tr>
109                     [% END %]
110                 </tbody>
111             </table>
112         [% ELSE %]
113             There are no outstanding (accepted) suggestions.
114         [% END %]
115     </div> <!-- /.page-section -->
116 </main>
117 </div> <!-- /.col-sm-10.col-sm-push-2 -->
118
119 <div class="col-sm-2 col-sm-pull-10">
120     <aside>
121         [% INCLUDE 'acquisitions-menu.inc' %]
122     </aside>
123 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
124 </div> <!-- /.row -->
125
126 [% MACRO jsinclude BLOCK %]
127     [% Asset.js("js/acquisitions-menu.js") | $raw %]
128     [% INCLUDE 'datatables.inc' %]
129     [% INCLUDE 'calendar.inc' %]
130     <script>
131     $(document).ready(function() {
132         var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
133             "aoColumnDefs": [
134                 { "aTargets": [ 0 ],  "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
135                 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
136             ],
137             "sPaginationType": "full"
138         }));
139         $("#show_only_mine").on('click', function(e){
140             e.preventDefault();
141             suggestionst.fnFilter('^[% logged_in_user.borrowernumber | html %]$', 0, true);
142         });
143         $("#show_all").on('click', function(e){
144             e.preventDefault();
145             suggestionst.fnFilter('', 0 );
146         });
147      });
148     </script>
149 [% END %]
150
151 [% INCLUDE 'intranet-bottom.inc' %]