4 [% USE ColumnsSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Acquisitions › [% IF ( order_loop ) %]Orders search › Search results[% ELSE %]Order search[% END %]</title>
8 [% Asset.css("css/datatables.css") | $raw %]
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="acq_histsearch" class="acq">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
16 <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>
18 <div class="main container-fluid">
20 <div class="col-sm-10 col-sm-push-2">
23 [% UNLESS ( order_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
24 <fieldset class="rows">
25 <legend>Search orders</legend>
26 [% INCLUDE 'filter-orders.inc' %]
28 <input type="hidden" name="do_search" value="1" />
29 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
31 [% IF ( order_loop ) %]<h1>Search results</h1>
32 <div id="acqui_histsearch">
33 <table id="histsearcht">
36 <th>Order line (parent)</th>
39 <th>Basket creator</th>
41 <th>Invoice number</th>
42 <th class="anti-the">Summary</th>
44 <th class="title-string">Placed on</th>
45 <th class="title-string">Received on</th>
46 <th>Quantity received</th>
47 <th>Pending order</th>
53 [% FOREACH order IN order_loop %]
56 [% order.ordernumber | html %]
57 [% IF order.ordernumber != order.parent_ordernumber %]([% order.parent_ordernumber | html %])[% END %]
60 [% SWITCH order.orderstatus %]
62 [% CASE 'ordered' %]Ordered
63 [% CASE 'partial' %]Partially received
64 [% CASE 'complete' %]Received
65 [% CASE 'cancelled' %]Cancelled
68 <td>[% order.basketname | html %] (<a href="basket.pl?basketno=[% order.basketno | uri %]">[% order.basketno | html %]</a>)</td>
69 <td>[% order.authorisedbyname | html %]</td>
71 [% IF ( order.basketgroupid ) %]
72 [% order.groupname | html %] (<a href="basketgroup.pl?op=add&booksellerid=[% order.id | uri %]&basketgroupid=[% order.basketgroupid | uri %]">[% order.basketgroupid | html %]</a>)
77 <td>[% IF ( order.invoicenumber ) %]
78 <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
84 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">[% order.title | html %]</a>
85 <br />[% order.author | html %] <br /> [% order.isbn | html %]
87 <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id | uri %]">[% order.name | html %]</a></td>
88 <td><span title="[% order.creationdate | html %]">[% order.creationdate | $KohaDates %]</span></td>
90 [% IF order.datereceived %]
91 <span title="[% order.datereceived | html %]">[% order.datereceived | $KohaDates %]</span>
93 <span title="0000-00-00"></span>
96 <td>[% order.quantityreceived | html %]</td>
97 <td>[% order.quantity | html %]</td>
98 <td>[% order.ecost | html %]</td>
99 <td>[% order.budget_name | html %]</td>
105 [% ELSIF search_done %]
106 There is no order for this search.
110 </div> <!-- /.col-sm-10.col-sm-push-2 -->
112 <div class="col-sm-2 col-sm-pull-10">
114 [% INCLUDE 'acquisitions-menu.inc' %]
116 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
119 [% MACRO jsinclude BLOCK %]
120 [% Asset.js("js/acquisitions-menu.js") | $raw %]
121 [% INCLUDE 'calendar.inc' %]
122 [% INCLUDE 'datatables.inc' %]
123 [% INCLUDE 'columns_settings.inc' %]
124 [% Asset.js("js/autocomplete/patrons.js") | $raw %]
126 var MSG_REMOVE_PATRON = _("Remove");
127 $(document).ready(function() {
128 var columns_settings = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %];
129 KohaTable("histsearcht", {
131 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
132 { "sType": "title-string", "aTargets" : [ "title-string" ] }
134 "sPaginationType": "four_button"
135 }, columns_settings );
137 [% UNLESS order_loop %]
138 patron_autocomplete({
139 patron_container: $("#basket_creators"),
140 input_autocomplete: $("#find_patron"),
141 patron_input_name: 'created_by',
142 field_to_retrieve: 'borrowernumber'
149 [% INCLUDE 'intranet-bottom.inc' %]