2 [% USE ColumnsSettings %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Acquisitions › [% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %]</title>
6 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="acq_histsearch" class="acq">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'acquisitions-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> › [% IF ( order_loop ) %]<a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a> › Search results[% ELSE %]Order search[% END %]</div>
16 <div id="doc3" class="yui-t2">
22 [% UNLESS ( order_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
23 <fieldset class="rows">
24 <legend>Search orders</legend>
26 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
27 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
28 <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" /></li>
30 <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% ean %]" /></li>
32 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
33 <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
34 <li><label for="basket_creators">Basket created by: </label>
35 <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
37 <div id="basket_creators" style="float:left;"></div>
40 <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
42 <label for="basketgroupname">Basket group:</label>
43 <input type="text" name="basketgroupname" id="basketgroupname" value="[% basketgroupname %]" />
46 <label for="ordernumber">Order line:</label>
47 <input type="text" name="ordernumber" id="ordernumber" value="[% ordernumber %]" />
48 [% IF search_children_too %]
49 <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
51 <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
53 <label class="yesno" for="search_children_too">Display children too.</label>
57 <label for="orderstatus">Order status: </label>
58 <select name="orderstatus" id="orderstatus">
59 [% IF orderstatus == "" %]
60 <option value="">Any status except cancelled</option>
62 <option value="" selected="selected"></option>
64 [% IF orderstatus == "new" %]
65 <option value="new" selected="selected">New</option>
67 <option value="new">New</option>
69 [% IF orderstatus == "ordered" %]
70 <option value="ordered" selected="selected">Ordered</option>
72 <option value="ordered">Ordered</option>
74 [% IF orderstatus == "partial" %]
75 <option value="partial" selected="selected">Partially received</option>
77 <option value="partial">Partially received</option>
79 [% IF orderstatus == "complete" %]
80 <option value="complete" selected="selected">Received</option>
82 <option value="complete">Received</option>
84 [% IF orderstatus == "cancelled" %]
85 <option value="cancelled" selected="selected">Cancelled</option>
87 <option value="cancelled">Cancelled</option>
92 <label for="fund">Fund: </label>
93 <select name="budget" id="fund">
94 <option value="">All funds</option>
95 [% FOREACH bp_loo IN bp_loop %]
96 <optgroup label="[% bp_loo.budget_period_description %]">
97 [% FOREACH h_loo IN bp_loo.hierarchy %]
98 [% IF h_loo.budget_id == budget_id %]
99 <option type="text" value="[% h_loo.budget_id %]" branchcode="[% h_loo.budget_branchcode %]" selected="selected">
101 <option type="text" value="[% h_loo.budget_id %]" branchcode="[% h_loo.budget_branchcode %]">
103 [% h_loo.budget_display_name %]
111 <li><label for="from">From: </label>
112 <input type="text" size="10" id="from" name="from" value="[% from_placed_on | $KohaDates %]" class="datepickerfrom" />
113 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
115 <li><label for="to">To: </label>
116 <input type="text" size="10" id="to" name="to" value="[% to_placed_on | $KohaDates %]" class="datepickerto" />
117 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
121 <input type="hidden" name="do_search" value="1" />
122 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
124 [% IF ( order_loop ) %]<h1>Search results</h1>
125 <div id="acqui_histsearch">
126 <table id="histsearcht">
129 <th>Order line (parent)</th>
132 <th>Basket creator</th>
133 <th>Basket group</th>
134 <th>Invoice number</th>
135 <th class="anti-the">Summary</th>
137 <th class="title-string">Placed on</th>
138 <th class="title-string">Received on</th>
139 <th>Quantity received</th>
140 <th>Pending order</th>
146 [% FOREACH order IN order_loop %]
149 [% order.ordernumber %]
150 [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber %])[% END %]
153 [% SWITCH order.orderstatus %]
155 [% CASE 'ordered' %]Ordered
156 [% CASE 'partial' %]Partially received
157 [% CASE 'complete' %]Received
158 [% CASE 'cancelled' %]Cancelled
161 <td>[% order.basketname %] (<a href="basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
162 <td>[% order.authorisedbyname %]</td>
164 [% IF ( order.basketgroupid ) %]
165 [% order.groupname %] (<a href="basketgroup.pl?booksellerid=[% order.id %]">[% order.basketgroupid %]</a>)
170 <td>[% IF ( order.invoicenumber ) %]
171 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
177 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
178 <br />[% order.author %] <br /> [% order.isbn %]
180 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]">[% order.name %]</a></td>
181 <td><span title="[% order.creationdate %]">[% order.creationdate | $KohaDates %]</span></td>
183 [% IF order.datereceived %]
184 <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
186 <span title="0000-00-00"></span>
189 <td>[% order.quantityreceived %]</td>
190 <td>[% order.quantity %]</td>
191 <td>[% order.ecost %]</td>
192 <td>[% order.budget_name %]</td>
198 [% ELSIF search_done %]
199 There is no order for this search.
205 [% INCLUDE 'acquisitions-menu.inc' %]
209 [% MACRO jsinclude BLOCK %]
210 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acquisitions-menu_[% KOHA_VERSION %].js"></script>
211 [% INCLUDE 'calendar.inc' %]
212 [% INCLUDE 'datatables.inc' %]
213 [% INCLUDE 'columns_settings.inc' %]
214 <script type="text/javascript" src="[% interface %]/js/autocomplete/patrons_[% KOHA_VERSION %].js"></script>
215 <script type="text/javascript">
216 var MSG_REMOVE_PATRON = _("Remove");
217 $(document).ready(function() {
218 var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) %];
219 KohaTable("histsearcht", {
221 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
222 { "sType": "title-string", "aTargets" : [ "title-string" ] }
224 "sPaginationType": "four_button"
225 }, columns_settings );
227 [% UNLESS order_loop %]
228 patron_autocomplete({
229 patron_container: $("#basket_creators"),
230 input_autocomplete: $("#find_patron"),
231 patron_input_name: 'created_by',
232 field_to_retrieve: 'borrowernumber'
239 [% INCLUDE 'intranet-bottom.inc' %]