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 id="doc3" class="yui-t2">
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">
36 [% FOREACH suggestions_loo IN suggestions_loop %]
38 <td>[% suggestions_loo.managedby | html %]</td>
40 <p>[% suggestions_loo.title | html %] - [% suggestions_loo.author | html %]</p>
42 [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate | html %] [% END %]
43 [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc | html %]</i> [% END %]
44 [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn | html %]</i> [% END %]
45 [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode | html %] [% END %]
46 [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear | html %]</i> [% END %]
47 [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place | html %]</i> [% END %]
48 [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note | html %])</i></p> [% END %]
52 [% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %],[% END %] [% suggestions_loo.firstnamesuggestedby | html %]
55 [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %]
58 [% IF ( suggestions_loo.biblionumber ) %]
59 <a href="neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]&suggestionid=[% suggestions_loo.suggestionid | html %]&biblio=[% suggestions_loo.biblionumber | html %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
61 <a href="neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]&suggestionid=[% suggestions_loo.suggestionid | html %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
69 There are no outstanding (accepted) suggestions.
74 [% INCLUDE 'acquisitions-menu.inc' %]
78 [% MACRO jsinclude BLOCK %]
79 [% Asset.js("js/acquisitions-menu.js") | $raw %]
80 [% INCLUDE 'datatables.inc' %]
81 <script type="text/javascript">
82 $(document).ready(function() {
83 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
85 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
86 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
88 "sPaginationType": "four_button"
90 $("#show_only_mine").on('click', function(e){
92 suggestionst.fnFilter('^[% loggedinuser | html %]$', 0, true);
94 $("#show_all").on('click', function(e){
96 suggestionst.fnFilter('', 0 );
102 [% INCLUDE 'intranet-bottom.inc' %]