Browse Source

Bug 21166: Add column settings to the acquisition table on bib detail

Sponsored-by: BULAC - http://www.bulac.fr/

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Jonathan Druart 5 years ago
committed by Nick Clemens
parent
commit
2c57361533
  1. 24
      admin/columns_settings.yml
  2. 8
      koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

24
admin/columns_settings.yml

@ -85,6 +85,30 @@ modules:
catalogue:
detail:
acquisitiondetails-table:
-
columnname: vendor
-
columnname: invoice
-
columnname: basketgroup
-
columnname: basket
-
columnname: ordernumber
-
columnname: creation_date
-
columnname: received_data
-
columnname: status
-
columnname: quantity
-
columnname: subscription
-
columnname: subscription_callnumber
checkoutshistory-table:
-
columnname: patron

8
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

@ -5,6 +5,7 @@
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE Biblio %]
[% USE ColumnsSettings %]
[% IF Koha.Preference('AmazonAssocTag') %]
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') | html %]
@ -1107,15 +1108,16 @@
}
[% IF Koha.Preference('AcquisitionDetails') %]
$("#orders").dataTable($.extend(true, {}, dataTablesDefaults, {
'sDom': 't',
var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'acquisitiondetails-table', 'json') %];
var acquisitiondetails_table = KohaTable("orders", {
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
'bPaginate': false,
'bAutoWidth': false,
"aaSorting": [[ 4, "desc" ]],
"aoColumnDefs": [
{ "aTargets": "title-string", "sType": "title-string" }
]
}));
}, columns_settings);
[% END %]
});
</script>

Loading…
Cancel
Save