Bugzilla – Attachment 100677 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.23 KB, created by
Devinim
on 2020-03-13 11:21:43 UTC
(
hide
)
Description:
Bug 24701: Add column config to course_items_table
Filename:
MIME Type:
Creator:
Devinim
Created:
2020-03-13 11:21:43 UTC
Size:
3.23 KB
patch
obsolete
>From 8764063c84665a0fafd2ddddadc6450039e8e124 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 > >Signed-off-by: Devinim <kohadevinim@devinim.com.tr> >--- > admin/columns_settings.yml | 24 ++++++++++++++++++++++ > .../bootstrap/en/modules/opac-course-details.tt | 13 ++++++++---- > 2 files changed, 33 insertions(+), 4 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index ede1cdf3673..282d929ff3a 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1143,6 +1143,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 6ab523fca8e..5db0b526d3f 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,19 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] > <script> > $(document).ready(function() { >- $("#course-items-table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %]; >+ KohaTable("#course-items-table", { > "dom": '<"top"flp>rt<"clear">', >- "columnDefs": [ >+ "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