Bugzilla – Attachment 99469 Details for
Bug 24701
Add column configuration to course reserves items table in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24701: Add column config to course_items_table
Bug-24701-Add-column-config-to-courseitemstable.patch (text/plain), 3.18 KB, created by
Lucas Gass (lukeg)
on 2020-02-23 18:21:27 UTC
(
hide
)
Description:
Bug 24701: Add column config to course_items_table
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2020-02-23 18:21:27 UTC
Size:
3.18 KB
patch
obsolete
>From 134993a373c377965575ef3c0ba3f47617979f1c Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 21 Feb 2020 20:54:41 +0000 >Subject: [PATCH] Bug 24701: Add column config to course_items_table > >This patch adds course_items_table to the column config tool >TEST PLAN: >1. Have some course reserves >2. Add some items to that course reserve and browse to opac-course-details >2. See all the unconfigurable columns >3. Apply patch >4. Browse to column config > OPAC > opac-course-details >5. Try hiding each column and make sure the correct column is hidden on opac-course-details.pl >--- > admin/columns_settings.yml | 24 ++++++++++++++++++++++ > .../bootstrap/en/modules/opac-course-details.tt | 14 ++++++++----- > 2 files changed, 33 insertions(+), 5 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 2c45659d34..0efd109765 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1127,6 +1127,30 @@ modules: > - > columnname: serial_notes > >+ course-items-table: >+ - >+ columnname: title >+ - >+ columnname: author >+ - >+ columnname: itemtype >+ - >+ columnname: location >+ - >+ columnname: collection >+ - >+ columnname: callnumber >+ - >+ columnname: copynumber >+ - >+ columnname: status >+ - >+ columnname: datedue >+ - >+ columnname: notes >+ - >+ columnname: link >+ > serials: > subscription-detail: > orders: >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >index 6ab523fca8..4f9ba425ca 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >@@ -5,6 +5,7 @@ > [% USE AuthorisedValues %] > [% USE ItemTypes %] > [% USE Branches %] >+[% USE ColumnsSettings %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name | html %]</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -106,15 +107,18 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] > <script> > $(document).ready(function() { >- $("#course-items-table").dataTable($.extend(true, {}, dataTablesDefaults, { >- "dom": '<"top"flp>rt<"clear">', >- "columnDefs": [ >+ columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %]; >+ KohaTable("#course-items-table", { >+ "sorting": [[ 1, "asc" ]], >+ "autoWidth": false, >+ "asColumnDefs": [ > { "type": "anti-the", "targets" : [ "anti-the" ] }, >- { "type": "title-string", "targets" : [ "title-string" ] } >+ { "type": "title-string", "targets" : [ "title-string" ] }, > ] >- })); >+ }, columns_settings ); > }); > </script> > [% END %] >-- >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 24701
:
99445
|
99455
|
99469
|
99470
|
100677
|
100698