2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › [% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'calendar.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
10 [% IF (dateformat == 'metric') %]
11 dt_add_type_uk_date();
13 $(document).ready(function() {
14 var histsearcht = $("#histsearcht").dataTable($.extend(true, {}, dataTablesDefaults, {
15 "sPaginationType": "four_button"
21 <body id="acq_histsearch" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'acquisitions-search.inc' %]
25 <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>
27 <div id="doc3" class="yui-t2">
33 [% UNLESS ( order_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
34 <fieldset class="rows">
35 <legend>Search Orders</legend>
37 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
38 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
39 <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" /></li>
41 <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% ean %]" /></li>
43 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
44 <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
45 <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
47 <label for="basketgroupname">Basket group:</label>
48 <input type="text" name="basketgroupname" id="basketgroupname" value="[% basketgroupname %]" />
52 <label for="orderstatus">Order Status: </label>
53 <select name="orderstatus" id="orderstatus">
54 <option value=""></option>
55 <option value="0">New</option>
56 <option value="1">Ordered</option>
57 <option value="2">Partial</option>
58 <option value="3">Complete</option>
59 <option value="4">Deleted</option>
64 <label for="fund">Fund: </label>
65 <select name="budget" id="fund">
66 <option value="">All funds</option>
67 [% FOREACH bp_loo IN bp_loop %]
68 <optgroup label="[% bp_loo.budget_period_description %]">
69 [% FOREACH h_loo IN bp_loo.hierarchy %]
70 <option type="text" value="[% h_loo.budget_id %]" branchcode="[% h_loo.budget_branchcode %]">
71 [% h_loo.budget_display_name %]
79 <li><label for="from">From: </label>
80 <input type="text" size="10" id="from" name="from" value="[% from_placed_on %]" class="datepickerfrom" />
81 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
83 <li><label for="to">To: </label>
84 <input type="text" size="10" id="to" name="to" value="[% to_placed_on %]" class="datepickerto" />
85 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
89 <input type="hidden" name="do_search" value="1" />
90 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
92 [% IF ( order_loop ) %]<h1>Search results</h1>
93 <div id="acqui_histsearch">
94 <table id="histsearcht">
97 <th>Order line (parent)</th>
100 <th>Invoice number</th>
106 <th>Quantity received</th>
107 <th>Pending order</th>
113 [% FOREACH order IN order_loop %]
116 [% order.ordernumber %]
117 [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber %])[% END %]
119 <td>[% order.basketname %] (<a href="basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
121 [% IF ( order.basketgroupid ) %]
122 [% order.groupname %] (<a href="basketgroup.pl?booksellerid=[% order.id %]">[% order.basketgroupid %]</a>)
127 <td>[% IF ( order.invoicenumber ) %]
128 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
134 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
135 <br />[% order.author %] <br /> [% order.isbn %]
137 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]">[% order.name %]</a></td>
138 <td>[% order.creationdate | $KohaDates %]</td>
140 [% IF order.datereceived %]
141 [% order.datereceived | $KohaDates %]
145 [% SWITCH order.orderstatus %]
147 [% CASE '1' %]Ordered
148 [% CASE '2' %]Partial
149 [% CASE '3' %]Complete
150 [% CASE '4' %]Deleted
153 <td>[% order.quantityreceived %]</td>
154 <td>[% order.quantity %]</td>
155 <td>[% order.ecost %]</td>
156 <td>[% order.budget_name %]</td>
161 </div>[% ELSE %][% END %]
166 [% INCLUDE 'acquisitions-menu.inc' %]
169 [% INCLUDE 'intranet-bottom.inc' %]