2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › Add order from a suggestion</title>
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="acq_newordersuggestion" class="acq">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'suggestions-add-search.inc' %]
12 <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 %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> › Add order from a suggestion</div>
14 <div id="doc3" class="yui-t2">
21 [% IF ( suggestions_loop ) %]
22 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
23 <table id="suggestionst">
34 [% FOREACH suggestions_loo IN suggestions_loop %]
36 <td>[% suggestions_loo.managedby %]</td>
38 <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
40 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate %] [% END %]
41 [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc %]</i> [% END %]
42 [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn %]</i> [% END %]
43 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode %] [% END %]
44 [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %]
45 [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %]
46 [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
50 [% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby %]
53 [% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %]
56 [% IF ( suggestions_loo.biblionumber ) %]
57 <a href="neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&suggestionid=[% suggestions_loo.suggestionid %]&biblio=[% suggestions_loo.biblionumber %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
59 <a href="neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&suggestionid=[% suggestions_loo.suggestionid %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
67 There are no outstanding (accepted) suggestions.
72 [% INCLUDE 'acquisitions-menu.inc' %]
76 [% MACRO jsinclude BLOCK %]
77 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
78 [% INCLUDE 'datatables.inc' %]
79 <script type="text/javascript">
80 $(document).ready(function() {
81 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
83 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
84 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
86 "sPaginationType": "four_button"
88 $("#show_only_mine").on('click', function(e){
90 suggestionst.fnFilter('^[% loggedinuser %]$', 0, true);
92 $("#show_all").on('click', function(e){
94 suggestionst.fnFilter('', 0 );
100 [% INCLUDE 'intranet-bottom.inc' %]