1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
9 dt_overwrite_html_sorting_localeCompare();
11 $(document).ready(function() {
13 var inactive = $(".b_inactive,.bu_active");
14 var active = $(".bu_inactive");
18 $('#showallbudgets').click(function() {
19 if ( $('#showallbudgets:checked').val() !== undefined) {
28 var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
35 { "sType": "title-numeric" },
36 { "sType": "title-numeric" },
37 { "sType": "title-numeric" },
38 { "sType": "title-numeric" }
50 <body id="acq_acqui-home" class="acq">
51 [% INCLUDE 'header.inc' %]
52 [% INCLUDE 'acquisitions-search.inc' %]
54 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
56 <div id="doc3" class="yui-t2">
62 [% INCLUDE 'acquisitions-toolbar.inc' %]
65 [% UNLESS ( loop_budget ) %]
66 [% IF ( CAN_user_acquisition_period_manage ) %]
67 <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
69 <div class="dialog alert">Your administrator must define a budget in Administration</div>
73 <div class="yui-u first">
74 <div id="acqui_acqui_home_order">
76 <legend>Manage orders</legend>
77 <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
78 <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
79 <input type="submit" value="Search" />
86 [% IF ( suggestion && suggestions_count ) %]
88 <div id="acqui_acqui_home_suggestions">
90 <legend>Pending suggestions</legend>
91 <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
99 [% IF ( loop_budget ) %]
101 <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
103 <div id="BudgetsAndFunds">
104 <p><label for="showallbudgets">Show active and inactive:</label> <input type="checkbox" id="showallbudgets" /></p>
105 <table id="accounts">
110 <th class="b_inactive">Active</th>
119 <tfoot id="funds_total">
123 <th class="b_inactive"> </th>
126 <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
127 <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
128 <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
129 <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
133 [% FOREACH loop_budge IN loop_budget %]
134 [% IF ( loop_budge.budget_period_active ) %]
137 [% IF ( CAN_user_acquisition_budget_manage ) %]
138 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
140 [% loop_budge.budget_code %]
143 <td>[% loop_budge.budget_name %]</td>
144 <td class="b_inactive">Active</td>
145 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
146 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
151 <td>[% loop_budge.budget_branchname %]</td>
152 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.formatted_budget_amount %]</span></td>
153 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_ordered %]</a></span></td>
154 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_spent %]</span></a></td>
155 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.formatted_budget_avail %]</td>
158 <tr class="b_inactive">
160 [% IF ( CAN_user_acquisition_budget_manage ) %]
161 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
163 [% loop_budge.budget_code %]
166 <td>[% loop_budge.budget_name %]</td>
167 <td class="b_inactive">Inactive</td>
168 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
169 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
174 <td>[% loop_budge.budget_branchname %]</td>
175 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.formatted_budget_amount %]</span></td>
176 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_ordered %]</a></span></td>
177 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_spent %]</span></a></td>
178 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.formatted_budget_avail %]</td>
190 [% INCLUDE 'acquisitions-menu.inc' %]
193 [% INCLUDE 'intranet-bottom.inc' %]