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, {
36 { "sType": "num-html" },
37 { "sType": "num-html" },
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 %] library[% END %]</h3>
103 <!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
104 <a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br> -->
108 <div id="BudgetsAndFunds">
109 <p><label for="showallbudgets">Show active and inactive:</label> <input type="checkbox" id="showallbudgets" /></p>
110 <table id="accounts">
115 <th class="b_inactive">Active</th>
124 <tfoot id="funds_total">
128 <th class="b_inactive"> </th>
131 <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
132 <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
133 <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
134 <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
138 [% FOREACH loop_budge IN loop_budget %]
139 [% IF ( loop_budge.budget_period_active ) %]
142 [% IF ( CAN_user_acquisition_budget_manage ) %]
143 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
145 [% loop_budge.budget_code %]
148 <td>[% loop_budge.budget_name %]</td>
149 <td class="b_inactive">Active</td>
150 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
151 <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>
156 <td>[% loop_budge.budget_branchname %]</td>
157 <td class="data">[% loop_budge.budget_amount %]</td>
158 <td class="data"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
159 <td class="data"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
160 <td class="data">[% loop_budge.budget_avail %]</td>
163 <tr class="b_inactive">
165 [% IF ( CAN_user_acquisition_budget_manage ) %]
166 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
168 [% loop_budge.budget_code %]
171 <td>[% loop_budge.budget_name %]</td>
172 <td class="b_inactive">Inactive</td>
173 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
174 <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>
179 <td>[% loop_budge.budget_branchname %]</td>
180 <td class="data">[% loop_budge.budget_amount %]</td>
181 <td class="data"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
182 <td class="data"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
183 <td class="data">[% loop_budge.budget_avail %]</td>
195 [% INCLUDE 'acquisitions-menu.inc' %]
198 [% INCLUDE 'intranet-bottom.inc' %]