Bugzilla – Attachment 182670 Details for
Bug 39411
Add card number and patron expiration info to OPAC Virtual Card
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card
Bug-39411-Add-cardnumber-and-dateexpiry-to-OPAC-vi.patch (text/plain), 2.16 KB, created by
Paul Derscheid
on 2025-05-20 12:54:11 UTC
(
hide
)
Description:
Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2025-05-20 12:54:11 UTC
Size:
2.16 KB
patch
obsolete
>From 78fe1aeaafead33b47e97c970448f6944b523178 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 8 Apr 2025 18:22:02 +0000 >Subject: [PATCH] Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1. APPLY PATCH >2. Enable OPACVirtualCard >3. Login to the OPAC and visit the account page. >4. Click on 'My virtual card' >5. Notice that the cardnumber and expiratrion date are now listed. > >Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >--- > .../opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt >index a7542aeb366..ddd0b72b0a3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-virtual-card.tt >@@ -3,6 +3,7 @@ > [% USE Asset %] > [% USE Koha %] > [% USE Branches %] >+[% USE KohaDates %] > [% 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 ) %] > [% INCLUDE 'doc-head-open.inc' %] >@@ -43,6 +44,12 @@ > <div id="lib-container"> > <p id="patron-lib"><strong>Library:</strong> [% Branches.GetName( patron.branchcode ) | html %]</p> > </div> >+ <div id="cardnumber-container"> >+ <p id="patron-cardnumber"><strong>Card number:</strong> [% patron.cardnumber | html %]</p> >+ </div> >+ <div id="dateexpiry-container"> >+ <p id="patron-dateexpiry"><strong>Expiration date:</strong> [% patron.dateexpiry | $KohaDates %]</p> >+ </div> > </div> > </div> > <!-- / .col-10 --> >-- >2.39.5
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 39411
:
180730
|
180932
| 182670