5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Add order from a suggestion › Acquisitions › Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_newordersuggestion" class="acq">
13 [% WRAPPER 'header.inc' %]
14 [% INCLUDE 'suggestions-add-search.inc' %]
17 [% WRAPPER 'sub-header.inc' %]
18 [% WRAPPER breadcrumbs %]
19 [% WRAPPER breadcrumb_item %]
20 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
22 [% WRAPPER breadcrumb_item %]
23 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
28 [% WRAPPER breadcrumb_item bc_active= 1 %]
29 <span>Add order from a suggestion</span>
31 [% END #/ WRAPPER breadcrumbs %]
32 [% END #/ WRAPPER sub-header.inc %]
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
41 <div class="page-section">
42 [% IF suggestions.size %]
43 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
44 <table id="suggestionst">
60 [% FOREACH suggestion IN suggestions %]
62 <td>[% suggestion.managedby | html %]</td>
64 <p>[% suggestion.title | html %] - [% suggestion.author | html %]</p>
66 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
67 [% IF ( suggestion.volumedesc ) %]volume: <em>[% suggestion.volumedesc | html %]</em> [% END %]
68 [% IF ( suggestion.isbn ) %]ISBN: <em>[% suggestion.isbn | html %]</em> [% END %]
69 [% IF ( suggestion.publishercode ) %]<br />published by: [% suggestion.publishercode | html %] [% END %]
70 [% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %]
71 [% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% END %]
72 [% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
75 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
76 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
78 [% Branches.GetName(suggestion.branchcode) | html %]
81 [% suggestion.fund.budget_name | html %]
84 [% suggestion.price | $Price %]
87 [% IF (suggestion.quantity > 0) %]
88 [% suggestion.quantity | html %]
92 [% suggestion.total | $Price %]
95 [% IF ( suggestion.biblionumber ) %]
96 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestion.suggestionid | uri %]&biblio=[% suggestion.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
98 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestion.suggestionid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
106 There are no outstanding (accepted) suggestions.
108 </div> <!-- /.page-section -->
110 </div> <!-- /.col-sm-10.col-sm-push-2 -->
112 <div class="col-sm-2 col-sm-pull-10">
114 [% INCLUDE 'acquisitions-menu.inc' %]
116 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
117 </div> <!-- /.row -->
119 [% MACRO jsinclude BLOCK %]
120 [% Asset.js("js/acquisitions-menu.js") | $raw %]
121 [% INCLUDE 'datatables.inc' %]
122 [% INCLUDE 'calendar.inc' %]
124 $(document).ready(function() {
125 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
127 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
128 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
130 "sPaginationType": "full"
132 $("#show_only_mine").on('click', function(e){
134 suggestionst.fnFilter('^[% logged_in_user.borrowernumber | html %]$', 0, true);
136 $("#show_all").on('click', function(e){
138 suggestionst.fnFilter('', 0 );
144 [% INCLUDE 'intranet-bottom.inc' %]