Merge remote-tracking branch 'origin/new/bug_7936'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / newordersuggestion.tt
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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10  $(document).ready(function() {
11     var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
12         "aoColumnDefs": [
13             { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
14         ],
15         "sPaginationType": "four_button"
16     } ) );
17  });
18  //]]>
19 </script>
20 </head>
21 <body id="acq_newordersuggestion" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'suggestions-add-search.inc' %]
24
25 <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>
26
27 <div id="doc3" class="yui-t2">
28    
29    <div id="bd">
30         <div id="yui-main">
31         <div class="yui-b">
32         
33 <h1>Suggestions</h1>
34     [% IF ( suggestions_loop ) %]
35     <table id="suggestionst">
36         <thead>
37         <tr>
38             <th>Suggestion</th>
39             <th>Suggested by</th>
40             <th>Accepted by</th>
41             <th>&nbsp;</th>
42         </tr>
43         </thead>
44         <tbody>
45         [% FOREACH suggestions_loo IN suggestions_loop %]
46             <tr>
47                 <td>
48                     <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
49                     <p>
50                         [% IF ( suggestions_loo.copyrightdate ) %]copy. year:[% suggestions_loo.copyrightdate %] [% END %]
51                         [% IF ( suggestions_loo.volumedesc ) %]volume:<i>[% suggestions_loo.volumedesc %]</i> [% END %]
52                         [% IF ( suggestions_loo.isbn ) %]ISBN :<i>[% suggestions_loo.isbn %]</i> [% END %]
53                         [% IF ( suggestions_loo.publishercode ) %]<br />published by:[% suggestions_loo.publishercode %] [% END %]
54                         [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %]
55                         [% IF ( suggestions_loo.place ) %] at <i>[% suggestions_loo.place %]</i> [% END %]
56                         [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
57                     </p>
58                 </td>
59                 <td>
60                     [% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby %]
61                 </td>
62                 <td>
63                     [% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %]
64                 </td>
65                 <td>
66                     [% IF ( suggestions_loo.biblionumber ) %]
67                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]&amp;biblio=[% suggestions_loo.biblionumber %]" class="button">Order</a>
68                     [% ELSE %]
69                         <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]" class="button">Order</a>
70                     [% END %]
71                 </td>
72             </tr>
73         [% END %]
74         </tbody>
75     </table>
76     [% ELSE %]
77         There are no outstanding (accepted) suggestions.
78     [% END %]
79 </div>
80 </div>
81 <div class="yui-b">
82 [% INCLUDE 'acquisitions-menu.inc' %]
83 </div>
84 </div>
85 [% INCLUDE 'intranet-bottom.inc' %]