Bugzilla – Attachment 79352 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.91 KB, created by
Katrin Fischer
on 2018-09-24 21:10:51 UTC
(
hide
)
Description:
Bug 21166: Add column settings to the acquisition table on bib detail
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-09-24 21:10:51 UTC
Size:
2.91 KB
patch
obsolete
>From fc6167ef8232c9aee04a5bd88acb5e40ae62c6b9 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > 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 3e2a672..a76acc0 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 ce02cb6..ce1c863 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.1.4
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