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 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'suggestions-add-search.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
25 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
28 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
31 <a href="#" aria-current="page">
32 Add order from a suggestion
38 <div class="main container-fluid">
40 <div class="col-sm-10 col-sm-push-2">
44 [% IF suggestions.size %]
45 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
46 <table id="suggestionst">
62 [% FOREACH suggestion IN suggestions %]
64 <td>[% suggestion.managedby | html %]</td>
66 <p>[% suggestion.title | html %] - [% suggestion.author | html %]</p>
68 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
69 [% IF ( suggestion.volumedesc ) %]volume: <em>[% suggestion.volumedesc | html %]</em> [% END %]
70 [% IF ( suggestion.isbn ) %]ISBN: <em>[% suggestion.isbn | html %]</em> [% END %]
71 [% IF ( suggestion.publishercode ) %]<br />published by: [% suggestion.publishercode | html %] [% END %]
72 [% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %]
73 [% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% END %]
74 [% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
77 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
78 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
80 [% Branches.GetName(suggestion.branchcode) | html %]
83 [% suggestion.fund.budget_name | html %]
86 [% suggestion.price | $Price %]
89 [% IF (suggestion.quantity > 0) %]
90 [% suggestion.quantity | html %]
94 [% suggestion.total | $Price %]
97 [% IF ( suggestion.biblionumber ) %]
98 <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>
100 <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>
108 There are no outstanding (accepted) suggestions.
111 </div> <!-- /.col-sm-10.col-sm-push-2 -->
113 <div class="col-sm-2 col-sm-pull-10">
115 [% INCLUDE 'acquisitions-menu.inc' %]
117 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
118 </div> <!-- /.row -->
120 [% MACRO jsinclude BLOCK %]
121 [% Asset.js("js/acquisitions-menu.js") | $raw %]
122 [% INCLUDE 'datatables.inc' %]
123 [% INCLUDE 'calendar.inc' %]
125 $(document).ready(function() {
126 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
128 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
129 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
131 "sPaginationType": "full"
133 $("#show_only_mine").on('click', function(e){
135 suggestionst.fnFilter('^[% logged_in_user.borrowernumber | html %]$', 0, true);
137 $("#show_all").on('click', function(e){
139 suggestionst.fnFilter('', 0 );
145 [% INCLUDE 'intranet-bottom.inc' %]