6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Acquisitions › Add order from a suggestion</title>
8 [% INCLUDE 'doc-head-close.inc' %]
11 <body id="acq_newordersuggestion" class="acq">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'suggestions-add-search.inc' %]
15 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">[% name | html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | html %]">Basket [% basketno | html %]</a> › Add order from a suggestion</div>
17 <div class="main container-fluid">
19 <div class="col-sm-10 col-sm-push-2">
23 [% IF ( suggestions_loop ) %]
24 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
25 <table id="suggestionst">
41 [% FOREACH suggestions_loo IN suggestions_loop %]
43 <td>[% suggestions_loo.managedby | html %]</td>
45 <p>[% suggestions_loo.title | html %] - [% suggestions_loo.author | html %]</p>
47 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %]
48 [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc | html %]</i> [% END %]
49 [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn | html %]</i> [% END %]
50 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode | html %] [% END %]
51 [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear | html %]</i> [% END %]
52 [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place | html %]</i> [% END %]
53 [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note | html %])</i></p> [% END %]
57 [% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby | html %]
60 [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %]
63 [% Branches.GetName(suggestions_loo.branchcode) | html %]
66 [% suggestions_loo.budget_name | html %]
69 [% suggestions_loo.price | $Price %]
72 [% IF (suggestions_loo.quantity > 0) %]
73 [% suggestions_loo.quantity | html %]
77 [% suggestions_loo.total | $Price %]
80 [% IF ( suggestions_loo.biblionumber ) %]
81 <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> Order</a>
83 <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> Order</a>
91 There are no outstanding (accepted) suggestions.
94 </div> <!-- /.col-sm-10.col-sm-push-2 -->
96 <div class="col-sm-2 col-sm-pull-10">
98 [% INCLUDE 'acquisitions-menu.inc' %]
100 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
101 </div> <!-- /.row -->
103 [% MACRO jsinclude BLOCK %]
104 [% Asset.js("js/acquisitions-menu.js") | $raw %]
105 [% INCLUDE 'datatables.inc' %]
107 $(document).ready(function() {
108 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
110 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
111 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
113 "sPaginationType": "full"
115 $("#show_only_mine").on('click', function(e){
117 suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true);
119 $("#show_all").on('click', function(e){
121 suggestionst.fnFilter('', 0 );
127 [% INCLUDE 'intranet-bottom.inc' %]