Bugzilla – Attachment 99830 Details for
Bug 23547
Add column configuration to course reserves table in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23547: Add column configuration to course reserves table in the OPAC
Bug-23547-Add-column-configuration-to-course-reser.patch (text/plain), 3.06 KB, created by
Katrin Fischer
on 2020-02-29 20:52:29 UTC
(
hide
)
Description:
Bug 23547: Add column configuration to course reserves table in the OPAC
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-02-29 20:52:29 UTC
Size:
3.06 KB
patch
obsolete
>From 3677ce7a96316778c907cebdfb733e5c1bad7948 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 19 Feb 2020 18:25:48 +0000 >Subject: [PATCH] Bug 23547: Add column configuration to course reserves table > in the OPAC > >This patch adds opac-course-reserves to the column config tool >TEST PLAN: >1. Have some course reserves and go look at opac-course-reserves.pl >2. See all the unconfigurable columns >3. Apply patch >4. Browse to column config > OPAC > course_reserves_table >5. Try hiding each column and make sure the correct column is hidden on opac-course-reserves.pl > >Signed-off-by: Devinim <kohadevinim@devinim.com.tr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > admin/columns_settings.yml | 16 ++++++++++++++++ > .../bootstrap/en/modules/opac-course-reserves.tt | 17 +++++++++++++++-- > 2 files changed, 31 insertions(+), 2 deletions(-) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index 2c45659d34..ede1cdf367 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -1115,6 +1115,22 @@ modules: > - > columnname: item_coursereserves > >+ course_reserves_table: >+ - >+ columnname: coursename >+ - >+ columnname: department >+ - >+ columnname: course_number >+ - >+ columnname: section >+ - >+ columnname: term >+ - >+ columnname: instructor >+ - >+ columnname: notes >+ > subscriptionst: > - > columnname: serial_serialseq >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >index 9f3b430ce3..751e2ecc14 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt >@@ -2,6 +2,7 @@ > [% USE Asset %] > [% USE Koha %] > [% USE AuthorisedValues %] >+[% USE ColumnsSettings %] > > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Courses</title> >@@ -63,11 +64,23 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+ [% INCLUDE 'columns_settings.inc' %] > <script> >+ > $(document).ready(function() { >- $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, { >+ columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %] >+ >+ KohaTable("#course_reserves_table", { > "dom": '<"top"flp>rt<"clear">', >- })); >+ "sorting": [[ 1, "asc" ]], >+ "autoWidth": false, >+ "asColumnDefs": [ >+ { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] }, >+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] }, >+ { "aTargets": [ 1 ], "sType": "nsb-nse" }, >+ ] >+ }, 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 23547
:
99268
|
99339
|
99471
|
99705
| 99830 |
104401