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 <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>
18 <div class="main container-fluid">
20 <div class="col-sm-10 col-sm-push-2">
24 [% IF ( suggestions_loop ) %]
25 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
26 <table id="suggestionst">
42 [% FOREACH suggestions_loo IN suggestions_loop %]
44 <td>[% suggestions_loo.managedby | html %]</td>
46 <p>[% suggestions_loo.title | html %] - [% suggestions_loo.author | html %]</p>
48 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %]
49 [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc | html %]</i> [% END %]
50 [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn | html %]</i> [% END %]
51 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode | html %] [% END %]
52 [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear | html %]</i> [% END %]
53 [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place | html %]</i> [% END %]
54 [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note | html %])</i></p> [% END %]
58 [% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby | html %]
61 [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %]
64 [% Branches.GetName(suggestions_loo.branchcode) | html %]
67 [% suggestions_loo.budget_name | html %]
70 [% suggestions_loo.price | $Price %]
73 [% IF (suggestions_loo.quantity > 0) %]
74 [% suggestions_loo.quantity | html %]
78 [% suggestions_loo.total | $Price %]
81 [% IF ( suggestions_loo.biblionumber ) %]
82 <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>
84 <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>
92 There are no outstanding (accepted) suggestions.
95 </div> <!-- /.col-sm-10.col-sm-push-2 -->
97 <div class="col-sm-2 col-sm-pull-10">
99 [% INCLUDE 'acquisitions-menu.inc' %]
101 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
102 </div> <!-- /.row -->
104 [% MACRO jsinclude BLOCK %]
105 [% Asset.js("js/acquisitions-menu.js") | $raw %]
106 [% INCLUDE 'datatables.inc' %]
108 $(document).ready(function() {
109 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
111 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
112 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
114 "sPaginationType": "full"
116 $("#show_only_mine").on('click', function(e){
118 suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true);
120 $("#show_all").on('click', function(e){
122 suggestionst.fnFilter('', 0 );
128 [% INCLUDE 'intranet-bottom.inc' %]