5 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Acquisitions › Add order from a suggestion</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_loop ) %]
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 suggestions_loo IN suggestions_loop %]
64 <td>[% suggestions_loo.managedby | html %]</td>
66 <p>[% suggestions_loo.title | html %] - [% suggestions_loo.author | html %]</p>
68 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %]
69 [% IF ( suggestions_loo.volumedesc ) %]volume: <em>[% suggestions_loo.volumedesc | html %]</em> [% END %]
70 [% IF ( suggestions_loo.isbn ) %]ISBN: <em>[% suggestions_loo.isbn | html %]</em> [% END %]
71 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode | html %] [% END %]
72 [% IF ( suggestions_loo.publicationyear ) %] in <em>[% suggestions_loo.publicationyear | html %]</em> [% END %]
73 [% IF ( suggestions_loo.place ) %] in <em>[% suggestions_loo.place | html %]</em> [% END %]
74 [% IF ( suggestions_loo.note ) %]<p><em>([% suggestions_loo.note | html %])</em></p> [% END %]
78 [% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby | html %]
81 [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %]
84 [% Branches.GetName(suggestions_loo.branchcode) | html %]
87 [% suggestions_loo.budget_name | html %]
90 [% suggestions_loo.price | $Price %]
93 [% IF (suggestions_loo.quantity > 0) %]
94 [% suggestions_loo.quantity | html %]
98 [% suggestions_loo.total | $Price %]
101 [% IF ( suggestions_loo.biblionumber ) %]
102 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestions_loo.suggestionid | uri %]&biblio=[% suggestions_loo.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
104 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestions_loo.suggestionid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
112 There are no outstanding (accepted) suggestions.
115 </div> <!-- /.col-sm-10.col-sm-push-2 -->
117 <div class="col-sm-2 col-sm-pull-10">
119 [% INCLUDE 'acquisitions-menu.inc' %]
121 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
122 </div> <!-- /.row -->
124 [% MACRO jsinclude BLOCK %]
125 [% Asset.js("js/acquisitions-menu.js") | $raw %]
126 [% INCLUDE 'datatables.inc' %]
127 [% INCLUDE 'calendar.inc' %]
129 $(document).ready(function() {
130 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
132 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
133 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
135 "sPaginationType": "full"
137 $("#show_only_mine").on('click', function(e){
139 suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true);
141 $("#show_all").on('click', function(e){
143 suggestionst.fnFilter('', 0 );
149 [% INCLUDE 'intranet-bottom.inc' %]