Bugzilla – Attachment 70220 Details for
Bug 19902
Add column configuration to bibliographic record checkouts history table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19902: Add column settings to bibliographic record checkouts history table
Bug-19902-Add-column-settings-to-bibliographic-rec.patch (text/plain), 3.01 KB, created by
Josef Moravec
on 2018-01-02 07:46:44 UTC
(
hide
)
Description:
Bug 19902: Add column settings to bibliographic record checkouts history table
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-01-02 07:46:44 UTC
Size:
3.01 KB
patch
obsolete
>From b1b222f7cfe26686cd009a13b153343e8bf0e10f Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Tue, 2 Jan 2018 06:35:47 +0000 >Subject: [PATCH] Bug 19902: Add column settings to bibliographic record > checkouts history table > >Test plan: >0) Apply the patch >1) Go to administration -> Configure columns, note there is new >checkoutshistory-table in Catalogue section >2) Make some configuration in this table settings >3) Go to detail of any record -> Checkout history >4) The columns should be visible according to your configuration from >step 2 >5) Play with Column visibility, to ensure it does work as it should >--- > admin/columns_settings.yml | 22 ++++++++++++++++++++++ > .../prog/en/modules/catalogue/issuehistory.tt | 8 ++++++-- > 2 files changed, 28 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 61fa864..20770cf 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -83,6 +83,28 @@ modules: > - > columnname: actions > >+ catalogue: >+ detail: >+ checkoutshistory-table: >+ - >+ columnname: patron >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ - >+ columnname: barcode >+ cannot_be_toggled: 1 >+ cannot_be_modified: 1 >+ - >+ columnname: checked_out_from >+ - >+ columnname: renewed >+ - >+ columnname: checkout_on >+ - >+ columnname: due_date >+ - >+ columnname: checkin_on >+ > cataloguing: > additem: > itemst: >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >index 83c60cc..e93a57b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >@@ -1,6 +1,7 @@ > [% USE Koha %] > [% USE KohaDates %] > [% USE Branches %] >+[% USE ColumnsSettings %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Catalog › Checkout history for [% biblio.title |html %]</title> >@@ -96,15 +97,18 @@ > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] >+[% INCLUDE 'columns_settings.inc' %] > <script type="text/javascript" id="js"> > $(document).ready(function() { >- $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, { >+ var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %]; >+ var table = KohaTable("#table_issues", { > "aoColumnDefs": [ > { "sType": "title-string", "aTargets" : [ "title-string" ] } > ], >+ "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', > "aaSorting": [[ 4, "desc" ]], > "sPaginationType": "full_numbers" >- })); >+ }, columns_settings); > }); > </script> > [% END %] >-- >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 19902
:
70220
|
75642
|
76369
|
76420
|
76421