4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › Add order from a suggestion</title>
6 [% Asset.css("css/datatables.css") | $raw %]
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_newordersuggestion" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'suggestions-add-search.inc' %]
14 <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>
16 <div class="main container-fluid">
18 <div class="col-sm-10 col-sm-push-2">
22 [% IF ( suggestions_loop ) %]
23 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
24 <table id="suggestionst">
35 [% FOREACH suggestions_loo IN suggestions_loop %]
37 <td>[% suggestions_loo.managedby | html %]</td>
39 <p>[% suggestions_loo.title | html %] - [% suggestions_loo.author | html %]</p>
41 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %]
42 [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc | html %]</i> [% END %]
43 [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn | html %]</i> [% END %]
44 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode | html %] [% END %]
45 [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear | html %]</i> [% END %]
46 [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place | html %]</i> [% END %]
47 [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note | html %])</i></p> [% END %]
51 [% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby | html %]
54 [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %]
57 [% IF ( suggestions_loo.biblionumber ) %]
58 <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>
60 <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>
68 There are no outstanding (accepted) suggestions.
71 </div> <!-- /.col-sm-10.col-sm-push-2 -->
73 <div class="col-sm-2 col-sm-pull-10">
75 [% INCLUDE 'acquisitions-menu.inc' %]
77 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
80 [% MACRO jsinclude BLOCK %]
81 [% Asset.js("js/acquisitions-menu.js") | $raw %]
82 [% INCLUDE 'datatables.inc' %]
84 $(document).ready(function() {
85 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
87 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
88 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
90 "sPaginationType": "four_button"
92 $("#show_only_mine").on('click', function(e){
94 suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true);
96 $("#show_all").on('click', function(e){
98 suggestionst.fnFilter('', 0 );
104 [% INCLUDE 'intranet-bottom.inc' %]