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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript">
11 dt_overwrite_html_sorting_localeCompare();
13 $(document).ready(function() {
15 var inactive = $(".b_inactive,.bu_active");
16 var active = $(".bu_inactive");
20 $('#showallbudgets').click(function() {
21 if ( $('#showallbudgets:checked').val() !== undefined) {
30 var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
38 { "sType": "num-html" },
39 { "sType": "num-html" },
52 <body id="acq_acqui-home" class="acq">
53 [% INCLUDE 'header.inc' %]
54 [% INCLUDE 'acquisitions-search.inc' %]
56 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
58 <div id="doc3" class="yui-t2">
64 [% INCLUDE 'acquisitions-toolbar.inc' %]
67 [% UNLESS ( loop_budget ) %]
68 [% IF ( CAN_user_acquisition_period_manage ) %]
69 <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
71 <div class="dialog alert">Your administrator must define a budget in Administration</div>
75 <div class="yui-u first">
76 <div id="acqui_acqui_home_order">
78 <legend>Manage orders</legend>
79 <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
80 <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
81 <input type="submit" value="Search" />
88 [% IF ( suggestion && suggestions_count ) %]
90 <div id="acqui_acqui_home_suggestions">
92 <legend>Pending suggestions</legend>
93 <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
101 [% IF ( loop_budget ) %]
103 <h3>All available funds[% IF ( branchname ) %] for [% branchname %] library[% END %]</h3>
105 <!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
106 <a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br> -->
110 <div id="BudgetsAndFunds">
111 <p><label for="showallbudgets">Show active and inactive:</label> <input type="checkbox" id="showallbudgets" /></p>
112 <table id="accounts">
117 <th class="b_inactive">Active</th>
126 <tfoot id="funds_total">
130 <th class="b_inactive"> </th>
133 <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
134 <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
135 <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
136 <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
140 [% FOREACH loop_budge IN loop_budget %]
141 [% IF ( loop_budge.budget_period_active ) %]
144 [% IF ( CAN_user_acquisition_budget_manage ) %]
145 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
147 [% loop_budge.budget_code %]
150 <td>[% loop_budge.budget_name %]</td>
151 <td class="b_inactive">Active</td>
152 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
153 <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>
158 <td>[% loop_budge.budget_branchname %]</td>
159 <td class="data">[% loop_budge.budget_amount %]</td>
160 <td class="data"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
161 <td class="data"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
162 <td class="data">[% loop_budge.budget_avail %]</td>
165 <tr class="b_inactive">
167 [% IF ( CAN_user_acquisition_budget_manage ) %]
168 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
170 [% loop_budge.budget_code %]
173 <td>[% loop_budge.budget_name %]</td>
174 <td class="b_inactive">Inactive</td>
175 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
176 <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>
181 <td>[% loop_budge.budget_branchname %]</td>
182 <td class="data">[% loop_budge.budget_amount %]</td>
183 <td class="data"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
184 <td class="data"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
185 <td class="data">[% loop_budge.budget_avail %]</td>
197 [% INCLUDE 'acquisitions-menu.inc' %]
200 [% INCLUDE 'intranet-bottom.inc' %]