5 [% USE AuthorisedValues %]
6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% FILTER collapse %]
10 [% t("Add order from a suggestion") | html %] ›
11 [% t("Acquisitions") | html %] ›
12 [% t("Koha") | html %]
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="acq_newordersuggestion" class="acq">
18 [% WRAPPER 'header.inc' %]
19 [% INCLUDE 'suggestions-add-search.inc' %]
22 [% WRAPPER 'sub-header.inc' %]
23 [% WRAPPER breadcrumbs %]
24 [% WRAPPER breadcrumb_item %]
25 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 [% WRAPPER breadcrumb_item %]
28 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
30 [% WRAPPER breadcrumb_item %]
31 <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
33 [% WRAPPER breadcrumb_item bc_active= 1 %]
34 <span>Add order from a suggestion</span>
36 [% END #/ WRAPPER breadcrumbs %]
37 [% END #/ WRAPPER sub-header.inc %]
39 <div class="main container-fluid">
41 <div class="col-sm-10 col-sm-push-2">
46 <div class="page-section">
47 [% IF suggestions.size %]
48 <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
49 <table id="suggestionst">
54 <th>Document type</th>
66 [% FOREACH suggestion IN suggestions %]
68 <td>[% suggestion.managedby | html %]</td>
70 <p>[% suggestion.title | html %] - [% suggestion.author | html %]</p>
72 [% IF ( suggestion.copyrightdate ) %]© [% suggestion.copyrightdate | html %] [% END %]
73 [% IF ( suggestion.volumedesc ) %]volume: <em>[% suggestion.volumedesc | html %]</em> [% END %]
74 [% IF ( suggestion.isbn ) %]ISBN: <em>[% suggestion.isbn | html %]</em> [% END %]
75 [% IF ( suggestion.publishercode ) %]<br />published by: [% suggestion.publishercode | html %] [% END %]
76 [% IF ( suggestion.publicationyear ) %] in <em>[% suggestion.publicationyear | html %]</em> [% END %]
77 [% IF ( suggestion.place ) %] in <em>[% suggestion.place | html %]</em> [% END %]
78 [% IF ( suggestion.note ) %]<p><em>([% suggestion.note | html %])</em></p> [% END %]
81 <td>[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestion.itemtype ) | html %]</td>
82 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.suggester %]</td>
83 <td>[% INCLUDE 'patron-title.inc' patron => suggestion.manager %]</td>
85 [% Branches.GetName(suggestion.branchcode) | html %]
88 [% suggestion.fund.budget_name | html %]
91 [% suggestion.price | $Price %]
94 [% IF (suggestion.quantity > 0) %]
95 [% suggestion.quantity | html %]
99 [% suggestion.total | $Price %]
102 [% IF ( suggestion.biblionumber ) %]
103 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestion.suggestionid | uri %]&biblio=[% suggestion.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
105 <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestion.suggestionid | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a>
113 There are no outstanding (accepted) suggestions.
115 </div> <!-- /.page-section -->
117 </div> <!-- /.col-sm-10.col-sm-push-2 -->
119 <div class="col-sm-2 col-sm-pull-10">
121 [% INCLUDE 'acquisitions-menu.inc' %]
123 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
124 </div> <!-- /.row -->
126 [% MACRO jsinclude BLOCK %]
127 [% Asset.js("js/acquisitions-menu.js") | $raw %]
128 [% INCLUDE 'datatables.inc' %]
129 [% INCLUDE 'calendar.inc' %]
131 $(document).ready(function() {
132 var suggestionst = $("#suggestionst").dataTable($.extend(true, {}, dataTablesDefaults, {
134 { "aTargets": [ 0 ], "bVisible": false, "bSearchable": true }, // must be searchable for fnFilter
135 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
137 "sPaginationType": "full"
139 $("#show_only_mine").on('click', function(e){
141 suggestionst.fnFilter('^[% logged_in_user.borrowernumber | html %]$', 0, true);
143 $("#show_all").on('click', function(e){
145 suggestionst.fnFilter('', 0 );
151 [% INCLUDE 'intranet-bottom.inc' %]