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 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
30 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
33 <a href="#" aria-current="page">
34 Add order from a suggestion
41 <div class="main container-fluid">
43 <div class="col-sm-10 col-sm-push-2">
48 <div class="page-section">
49 [% IF suggestions.size %]
50 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
51 <table id="suggestionst">
67 [% FOREACH suggestion IN suggestions %]
69 <td>[% suggestion.managedby | html %]</td>
71 <p>[% suggestion.title | html %] - [% suggestion.author | html %]</p>
73 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
74 [% IF ( suggestion.volumedesc ) %]volume: <em>[% suggestion.volumedesc | html %]</em> [% END %]
75 [% IF ( suggestion.isbn ) %]ISBN: <em>[% suggestion.isbn | html %]</em> [% END %]
76 [% IF ( suggestion.publishercode ) %]<br />published by: [% suggestion.publishercode | html %] [% END %]
77 [% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %]
78 [% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% END %]
79 [% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
82 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
83 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
85 [% Branches.GetName(suggestion.branchcode) | html %]
88 [% suggestion.fund.budget_name | html %]
91 [% suggestion.price | $Price %]
94 [% IF (suggestion.quantity > 0) %]
95 [% suggestion.quantity | html %]
99 [% suggestion.total | $Price %]
102 [% IF ( suggestion.biblionumber ) %]
103 <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>
105 <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>
113 There are no outstanding (accepted) suggestions.
115 </div> <!-- /.page-section -->
117 </div> <!-- /.col-sm-10.col-sm-push-2 -->
119 <div class="col-sm-2 col-sm-pull-10">
121 [% INCLUDE 'acquisitions-menu.inc' %]
123 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
124 </div> <!-- /.row -->
126 [% MACRO jsinclude BLOCK %]
127 [% Asset.js("js/acquisitions-menu.js") | $raw %]
128 [% INCLUDE 'datatables.inc' %]
129 [% INCLUDE 'calendar.inc' %]
131 $(document).ready(function() {
132 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
134 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
135 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
137 "sPaginationType": "full"
139 $("#show_only_mine").on('click', function(e){
141 suggestionst.fnFilter('^[% logged_in_user.borrowernumber | html %]$', 0, true);
143 $("#show_all").on('click', function(e){
145 suggestionst.fnFilter('', 0 );
151 [% INCLUDE 'intranet-bottom.inc' %]