Bug 14018: Ordering from suggestion shows 'copy. year:2014'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / newordersuggestion.tt
blob11ab14419e9945284c290490aa85b2b80dd5ab77
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Add order from a suggestion</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8  $(document).ready(function() {
9     var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
10         "aoColumnDefs": [
11             { "aTargets": [ 0 ],  "bVisible": false, "bSearchable": false },
12             { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
13         ],
14         "sPaginationType": "four_button"
15     } ) );
16     $("#show_only_mine").on('click', function(){
17         suggestionst.fnFilter('^[% loggedinuser %]$', 0, true);
18     });
19     $("#show_all").on('click', function(){
20         suggestionst.fnFilter('', 0 );
21     });
22  });
23  //]]>
24 </script>
25 </head>
26 <body id="acq_newordersuggestion" class="acq">
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'suggestions-add-search.inc' %]
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Add order from a suggestion</div>
32 <div id="doc3" class="yui-t2">
33    
34    <div id="bd">
35         <div id="yui-main">
36         <div class="yui-b">
37         
38 <h1>Suggestions</h1>
39     [% IF ( suggestions_loop ) %]
40     <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
41     <table id="suggestionst">
42         <thead>
43         <tr>
44             <th>Mine</th>
45             <th>Suggestion</th>
46             <th>Suggested by</th>
47             <th>Accepted by</th>
48             <th>&nbsp;</th>
49         </tr>
50         </thead>
51         <tbody>
52         [% FOREACH suggestions_loo IN suggestions_loop %]
53             <tr>
54                 <td>[% suggestions_loo.managedby %]</td>
55                 <td>
56                     <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
57                     <p>
58                         [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate %] [% END %]
59                         [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc %]</i> [% END %]
60                         [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn %]</i> [% END %]
61                         [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode %] [% END %]
62                         [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %]
63                         [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %]
64                         [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
65                     </p>
66                 </td>
67                 <td>
68                     [% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby %]
69                 </td>
70                 <td>
71                     [% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %]
72                 </td>
73                 <td>
74                     [% IF ( suggestions_loo.biblionumber ) %]
75                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]&amp;biblio=[% suggestions_loo.biblionumber %]" class="button">Order</a>
76                     [% ELSE %]
77                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]" class="button">Order</a>
78                     [% END %]
79                 </td>
80             </tr>
81         [% END %]
82         </tbody>
83     </table>
84     [% ELSE %]
85         There are no outstanding (accepted) suggestions.
86     [% END %]
87 </div>
88 </div>
89 <div class="yui-b">
90 [% INCLUDE 'acquisitions-menu.inc' %]
91 </div>
92 </div>
93 [% INCLUDE 'intranet-bottom.inc' %]