From 78fe1aeaafead33b47e97c970448f6944b523178 Mon Sep 17 00:00:00 2001 From: Lucas Gass 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 Signed-off-by: Paul Derscheid --- .../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 @@

Library: [% Branches.GetName( patron.branchcode ) | html %]

+
+

Card number: [% patron.cardnumber | html %]

+
+
+

Expiration date: [% patron.dateexpiry | $KohaDates %]

+
-- 2.39.5