Bugzilla – Attachment 180730 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), 1.96 KB, created by
Lucas Gass (lukeg)
on 2025-04-08 18:24:29 UTC
(
hide
)
Description:
Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-04-08 18:24:29 UTC
Size:
1.96 KB
patch
obsolete
>From 1954d22d9afac01576d58d80d3f33690228b4f54 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 > >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. >--- > .../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