4 [% USE TablesSettings %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Acquisitions › [% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_histsearch" class="acq">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
25 [% IF ( order_loop ) %]
27 <a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a>
30 <a href="#" aria-current="page">
36 <a href="#" aria-current="page">
44 <div class="main container-fluid">
46 <div class="col-sm-10 col-sm-push-2">
48 [% IF !order_loop && search_done %]
49 <div class="dialog message">
50 Your search returned no results.
54 [% UNLESS ( order_loop ) %]
55 [% PROCESS filter_form context => "main" %]
59 [% IF ( order_loop ) %]<h1>Search results</h1>
60 <div id="acqui_histsearch">
61 <table id="histsearcht">
64 <th>Order line (parent)</th>
67 <th>Basket creator</th>
69 <th>Managing library</th>
70 <th>Invoice number</th>
71 <th class="anti-the">Summary</th>
75 <th>Quantity received</th>
76 <th>Quantity ordered</th>
82 [% FOREACH order IN order_loop %]
85 [% order.ordernumber | html %]
86 [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber | html %])[% END %]
89 [% SWITCH order.orderstatus %]
91 [% CASE 'ordered' %]Ordered
92 [% CASE 'partial' %]Partially received
93 [% CASE 'complete' %]Received
94 [% CASE 'cancelled' %]Cancelled
96 [% IF order.is_standing %](standing order)[% END %]
98 <td><a href="basket.pl?basketno=[% order.basketno | uri %]">[% order.basketname | html %] ([% order.basketno | html %])</a></td>
99 <td>[% order.authorisedbyname | html %]</td>
101 [% IF ( order.basketgroupid ) %]
102 <a href="basketgroup.pl?op=add&booksellerid=[% order.id | uri %]&basketgroupid=[% order.basketgroupid | uri %]">[% order.groupname | html %] ([% order.basketgroupid | html %])</a>
107 <td>[% Branches.GetName(order.managing_library) | html %]</td>
108 <td>[% IF ( order.invoicenumber ) %]
109 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
115 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title | html %]</a>
116 <br />[% order.author | html %] <br /> [% order.isbn | html %]
118 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id | uri %]">[% order.name | html %]</a></td>
119 <td data-order="[% order.creationdate | html %]">[% order.creationdate | $KohaDates %]</td>
120 <td data-order="[% order.datereceived | html %]">
121 [% order.datereceived | $KohaDates %]
123 <td>[% order.quantityreceived | html %]</td>
124 <td>[% order.quantity | html %]</td>
125 <td>[% order.ecost | html %]</td>
126 <td>[% order.budget_name | html %]</td>
135 </div> <!-- /.col-sm-10.col-sm-push-2 -->
137 <div class="col-sm-2 col-sm-pull-10">
139 [% IF ( order_loop ) %]
140 [% PROCESS filter_form context => "sidebar" %]
142 [% INCLUDE 'acquisitions-menu.inc' %]
144 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
147 [% MACRO jsinclude BLOCK %]
148 [% Asset.js("js/acquisitions-menu.js") | $raw %]
149 [% INCLUDE 'calendar.inc' %]
150 [% INCLUDE 'datatables.inc' %]
151 [% INCLUDE 'columns_settings.inc' %]
152 [% Asset.js("js/autocomplete/patrons.js") | $raw %]
154 var MSG_REMOVE_PATRON = _("Remove");
155 $(document).ready(function() {
156 var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
157 KohaTable("histsearcht", {
158 "sPaginationType": "full"
159 }, columns_settings );
161 patron_autocomplete({
162 patron_container: $("#basket_creators"),
163 input_autocomplete: $("#find_patron"),
164 patron_input_name: 'created_by',
165 field_to_retrieve: 'borrowernumber'
171 [% BLOCK filter_form %]
172 <form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
173 [% IF ( context == "sidebar" ) %]
174 <fieldset class="brief">
175 <h4>Search orders</h4>
177 <fieldset class="rows">
178 <legend>Search orders</legend>
180 [% INCLUDE 'filter-orders.inc' %]
181 <input type="hidden" name="do_search" value="1" />
182 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
187 [% INCLUDE 'intranet-bottom.inc' %]