Bugzilla – Attachment 113570 Details for
Bug 27005
Adding a filter in the datatable of opac-readingrecord page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27005: Adding a filter in the datatable of opac-readingrecord page
Bug-27005-Adding-a-filter-in-the-datatable-of-opac.patch (text/plain), 1.93 KB, created by
Alexis Ripetti
on 2020-11-12 16:43:23 UTC
(
hide
)
Description:
Bug 27005: Adding a filter in the datatable of opac-readingrecord page
Filename:
MIME Type:
Creator:
Alexis Ripetti
Created:
2020-11-12 16:43:23 UTC
Size:
1.93 KB
patch
obsolete
>From f6b9ccf476f51816e2dce937f890352b25cf606b Mon Sep 17 00:00:00 2001 >From: Alexis Ripetti <alexis.ripetti@inLibro.com> >Date: Thu, 12 Nov 2020 11:37:33 -0500 >Subject: [PATCH] Bug 27005: Adding a filter in the datatable of > opac-readingrecord page > >Test plan: >1) apply patch >2) go to the opac-readingrecord page / your checkout history >3) See that the filter is here and works fine >--- > .../bootstrap/en/modules/opac-readingrecord.tt | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >index 3a226aa321..02920b191f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt >@@ -1,5 +1,6 @@ > [% USE raw %] > [% USE Koha %] >+[% USE TablesSettings %] > [% USE KohaDates %] > [% INCLUDE 'doc-head-open.inc' %] > <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your checkout history</title> >@@ -201,13 +202,21 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+[% INCLUDE 'columns_settings.inc' %] > <script> > $(document).ready(function(){ > [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] > $('#order').change(function() { > $('#sortform').submit(); > }); >- >+ >+ columns_settings = [% TablesSettings.GetColumns( 'opac', 'reading-record', 'readingrec', 'json' ) | $raw %]; >+ KohaTable("#readingrec", { >+ "dom": '<"top"f>rt<"clear">', >+ "sorting": [[ 1, "asc" ]], >+ "autoWidth": false, >+ }, columns_settings ); >+ > var table = $("#readingrec").dataTable($.extend(true, {}, dataTablesDefaults, { > "sPaginationType": "four_button", > "columnDefs": [ >-- >2.25.1
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 27005
:
113570
|
115683
|
115737
|
115877
|
115878
|
115928
|
115929
|
115930
|
116020
|
116199
|
116200
|
116201
|
116202