Bugzilla – Attachment 79023 Details for
Bug 21166
Add columns settings to the acquisition details table (record detail view)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21166: Add column settings to the acquisition table on bib detail
Bug-21166-Add-column-settings-to-the-acquisition-t.patch (text/plain), 2.72 KB, created by
Jonathan Druart
on 2018-09-16 22:27:11 UTC
(
hide
)
Description:
Bug 21166: Add column settings to the acquisition table on bib detail
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-09-16 22:27:11 UTC
Size:
2.72 KB
patch
obsolete
>From 138797a118ceeedeca644998612cf442216fc67f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 28 Jul 2018 12:42:31 -0300 >Subject: [PATCH] Bug 21166: Add column settings to the acquisition table on > bib detail > >Sponsored-by: BULAC - http://www.bulac.fr/ >--- > admin/columns_settings.yml | 24 ++++++++++++++++++++++ > .../prog/en/modules/catalogue/detail.tt | 8 +++++--- > 2 files changed, 29 insertions(+), 3 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 3e2a6723e5..a76acc0112 100644 >--- a/admin/columns_settings.yml >+++ b/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 >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index ce02cb63fe..ce1c8634e2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/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> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21166
:
77512
|
79023
|
79025
|
79352