2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7 <link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" />
8 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script>
10 <script type="text/javascript">
13 dt_overwrite_html_sorting_localeCompare();
15 $(document).ready(function() {
17 var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
18 "fnDrawCallback": function ( oSettings ) {
19 if ( oSettings.aiDisplay.length == 0 )
24 var nTrs = $('#accounts tbody tr');
25 var iColspan = nTrs[0].getElementsByTagName('td').length;
27 for ( var i=0 ; i<nTrs.length ; i++ )
29 var iDisplayIndex = oSettings._iDisplayStart + i;
30 var sGroup = oSettings.aoData[ oSettings.aiDisplay[iDisplayIndex] ]._aData[1];
31 if ( sGroup != sLastGroup )
33 var nGroup = document.createElement( 'tr' );
34 var nCell = document.createElement( 'td' );
35 nCell.colSpan = iColspan;
36 nCell.className = "group";
37 nCell.innerHTML = sGroup;
38 nGroup.appendChild( nCell );
39 nTrs[i].parentNode.insertBefore( nGroup, nTrs[i] );
44 "footerCallback": function ( row, data, start, end, display ) {
45 var api = this.api(), data;
46 footer_column_sum( api, [ 6, 7, 8, 9 ] );
49 { "bVisible": false, "aTargets": [ 0, 1 ] },
50 { "bSortable": false, "aTargets": ["_all"] }
53 'aaSortingFixed': [[ 1, 'asc' ]],
61 $(oTable).treetable('expandAll');
62 $("#expand_all").click(function(e){
64 $(oTable).treetable('expandAll');
66 $("#collapse_all").click(function(e){
68 $(oTable).treetable('collapseAll');
71 $("#hide_inactive").click(function(e){
73 oTable.fnFilter( 1, 0 ); // Show only active=1
75 $("#show_inactive").click(function(e){
77 oTable.fnFilter( '', 0 );
79 $("#hide_inactive").click();
86 <body id="acq_acqui-home" class="acq">
87 [% INCLUDE 'header.inc' %]
88 [% INCLUDE 'acquisitions-search.inc' %]
90 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
92 <div id="doc3" class="yui-t2">
98 [% INCLUDE 'acquisitions-toolbar.inc' %]
100 <h1>Acquisitions</h1>
101 [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
102 [% UNLESS ( loop_budget ) %]
103 [% IF ( CAN_user_acquisition_period_manage ) %]
104 <div class="dialog alert"><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">You must define a budget in Administration</a></div>
106 <div class="dialog alert">Your administrator must define a budget in Administration</div>
110 <div class="yui-u first">
111 <div id="acqui_acqui_home_order">
113 <legend>Manage orders</legend>
114 <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
115 <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
116 <input type="submit" value="Search" />
123 [% IF ( suggestion && suggestions_count ) %]
125 <div id="acqui_acqui_home_suggestions">
127 <legend>Pending suggestions</legend>
128 <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Manage suggestions</a>.</p>
136 [% IF ( loop_budget ) %]
138 <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
140 <div id="BudgetsAndFunds">
141 <table id="accounts">
143 <span class="actions"><a href="#" id="expand_all">Expand all</a>
144 | <a href="#" id="collapse_all">Collapse all</a>
145 | <a href="#" id="hide_inactive">Hide inactive budgets</a>
146 | <a href="#" id="show_inactive">Show inactive budgets</a></span>
152 <th>Budget period description</th>
160 <th>Total available</th>
163 <tfoot id="funds_total">
167 <th colspan="4">Total</th>
168 <th class="data"></th>
169 <th class="data"></th>
170 <th class="data"></th>
171 <th class="data"></th>
175 [% FOREACH loop_budge IN loop_budget %]
176 [% IF loop_budge.budget_parent_id %]
177 <tr data-tt-id="[% loop_budge.budget_id %]" data-tt-parent-id="[% loop_budge.budget_parent_id %]">
179 <tr data-tt-id="[% loop_budge.budget_id %]">
182 <td>[% loop_budge.budget_period_active %]</td>
183 <td>Budget [% loop_budge.budget_period_description %] [id=[% loop_budge.budget_period_id %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %]</td>
185 [% IF ( CAN_user_acquisition_budget_manage ) %]
186 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
188 [% loop_budge.budget_code %]
191 <td>[% loop_budge.budget_name %]</td>
192 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
193 <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>
198 <td>[% loop_budge.budget_branchname %]</td>
200 [% IF loop_budge.budget_parent_id %]
201 [% loop_budge.budget_amount | $Price %]
203 <span class="total_amount">[% loop_budge.budget_amount | $Price %]</span>
207 <a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">
208 [% IF loop_budge.budget_parent_id %]
209 [% loop_budge.budget_ordered | $Price %]
211 <span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span>
216 <a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">
217 [% IF loop_budge.budget_parent_id %]
218 [% loop_budge.budget_spent | $Price %]
220 <span class="total_amount">[% loop_budge.budget_spent | $Price %]</span>
225 [% IF loop_budge.budget_parent_id %]
226 [% loop_budge.budget_avail | $Price %]
228 <span class="total_amount">[% loop_budge.budget_avail | $Price %]</span>
241 [% INCLUDE 'acquisitions-menu.inc' %]
244 [% INCLUDE 'intranet-bottom.inc' %]