4 [% USE TablesSettings %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %] › Acquisitions › Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_histsearch" class="acq">
13 [% WRAPPER 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
17 [% WRAPPER 'sub-header.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
24 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27 [% IF ( order_loop ) %]
29 <a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a>
32 <a href="#" aria-current="page">
38 <a href="#" aria-current="page">
47 <div class="main container-fluid">
49 <div class="col-sm-10 col-sm-push-2">
54 [% IF !order_loop && search_done %]
55 <div class="dialog message">
56 Your search returned no results.
60 [% UNLESS ( order_loop ) %]
61 [% PROCESS filter_form context => "main" %]
65 [% IF ( order_loop ) %]<h1>Search results</h1>
66 <div id="acqui_histsearch">
67 <table id="histsearcht">
70 <th>Order line (parent)</th>
73 <th>Basket creator</th>
75 <th>Managing library</th>
76 <th>Invoice number</th>
77 <th class="anti-the">Summary</th>
81 <th>Quantity received</th>
82 <th>Quantity ordered</th>
85 <th>Internal note</th>
90 [% FOREACH order IN order_loop %]
93 [% order.ordernumber | html %]
94 [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber | html %])[% END %]
97 [% SWITCH order.orderstatus %]
98 [% CASE 'new' %]<span>New</span>
99 [% CASE 'ordered' %]<span>Ordered</span>
100 [% CASE 'partial' %]<span>Partially received</span>
101 [% CASE 'complete' %]<span>Received</span>
102 [% CASE 'cancelled' %]<span>Cancelled</span>
104 [% IF order.is_standing %](standing order)[% END %]
106 <td><a href="basket.pl?basketno=[% order.basketno | uri %]">[% order.basketname | html %] ([% order.basketno | html %])</a></td>
107 <td>[% order.authorisedbyname | html %]</td>
109 [% IF ( order.basketgroupid ) %]
110 <a href="basketgroup.pl?op=add&booksellerid=[% order.id | uri %]&basketgroupid=[% order.basketgroupid | uri %]">[% order.groupname | html %] ([% order.basketgroupid | html %])</a>
115 <td>[% Branches.GetName(order.managing_library) | html %]</td>
116 <td>[% IF ( order.invoicenumber ) %]
117 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
123 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title | html %]</a>
124 <br />[% order.author | html %] <br /> [% order.isbn | html %]
126 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id | uri %]">[% order.name | html %]</a></td>
127 <td data-order="[% order.creationdate | html %]">[% order.creationdate | $KohaDates %]</td>
128 <td data-order="[% order.datereceived | html %]">
129 [% order.datereceived | $KohaDates %]
131 <td>[% order.quantityreceived | html %]</td>
132 <td>[% order.quantity | html %]</td>
133 <td>[% order.ecost | html %]</td>
134 <td>[% order.budget_name | html %]</td>
135 <td>[% order.order_internalnote | html %]</td>
136 <td>[% order.order_vendornote | html %]</td>
145 </div> <!-- /.col-sm-10.col-sm-push-2 -->
147 <div class="col-sm-2 col-sm-pull-10">
149 [% IF ( order_loop ) %]
150 [% PROCESS filter_form context => "sidebar" %]
152 [% INCLUDE 'acquisitions-menu.inc' %]
154 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
157 [% MACRO jsinclude BLOCK %]
158 [% Asset.js("js/acquisitions-menu.js") | $raw %]
159 [% INCLUDE 'calendar.inc' %]
160 [% INCLUDE 'datatables.inc' %]
161 [% INCLUDE 'columns_settings.inc' %]
162 [% Asset.js("js/autocomplete/patrons.js") | $raw %]
164 var MSG_REMOVE_PATRON = _("Remove");
165 $(document).ready(function() {
166 var table_settings = [% TablesSettings.GetTableSettings( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
167 KohaTable("histsearcht", {
168 "sPaginationType": "full"
171 patron_autocomplete({
172 patron_container: $("#basket_creators"),
173 input_autocomplete: $("#find_patron"),
174 patron_input_name: 'created_by',
175 field_to_retrieve: 'borrowernumber'
181 [% BLOCK filter_form %]
182 <form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
183 [% IF ( context == "sidebar" ) %]
184 <fieldset class="brief">
185 <h4>Search orders</h4>
187 <fieldset class="rows">
188 <legend>Search orders</legend>
190 [% INCLUDE 'filter-orders.inc' %]
191 <input type="hidden" name="do_search" value="1" />
192 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
197 [% INCLUDE 'intranet-bottom.inc' %]