Bugzilla – Attachment 151963 Details for
Bug 32402
"Modification date" missing from OPAC lists table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32402: Add "Modification date" to OPAC Lists table
Bug-32402-Add-Modification-date-to-OPAC-Lists-tabl.patch (text/plain), 2.59 KB, created by
David Cook
on 2023-06-02 03:35:28 UTC
(
hide
)
Description:
Bug 32402: Add "Modification date" to OPAC Lists table
Filename:
MIME Type:
Creator:
David Cook
Created:
2023-06-02 03:35:28 UTC
Size:
2.59 KB
patch
obsolete
>From 2543ee3d46fefc8bb6ce865faedb3137afe6b42b Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Fri, 2 Jun 2023 03:33:20 +0000 >Subject: [PATCH] Bug 32402: Add "Modification date" to OPAC Lists table > >This change adds a "Modification date" column to the >OPAC Lists table, so that you can see when a list was last modified. > >Test plan: >1. Apply patch >2. Create a public list and a private list >3. Go to http://localhost:8080/cgi-bin/koha/opac-shelves.pl?op=list&public=1 >4. Note that "Modification date" appears in the relevant date format >on both the "Your lists" and "Public lists" tabs > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 5c8a8fe695..a3f21f1262 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -1,6 +1,7 @@ > [% USE raw %] > [% USE Asset %] > [% USE Koha %] >+[% USE KohaDates %] > [% USE AdditionalContents %] > [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] > [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] >@@ -742,6 +743,7 @@ > <th>List name</th> > <th>Contents</th> > <th>Type</th> >+ <th>Modification date</th> > <th> </th> > </tr> > </thead> >@@ -758,6 +760,7 @@ > <span>Public</span> > [% END %] > </td> >+ <td>[% s.lastmodified | $KohaDates %]</td> > <td> > [% IF s.can_be_managed( loggedinusernumber ) %] > <form action="/cgi-bin/koha/opac-shelves.pl" method="get" class="d-inline"> >-- >2.30.2
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 32402
:
144426
|
144459
|
144764
|
151963
|
151964