Bug 39411

Summary: Add card number and patron expiration info to OPAC Virtual Card
Product: Koha Reporter: Heather Rommens <heather>
Component: OPACAssignee: Lucas Gass (lukeg) <lucas>
Status: Pushed to main --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: chughesman, e.betemps, lucas, paul.derscheid
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 38792    
Attachments: Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card
Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card
Bug 39411: Add cardnumber and dateexpiry to OPAC virtual card

Description Heather Rommens 2025-03-21 15:44:01 UTC
Libraries are loving the new OPAC virtual card feature, but some locations lack the specific equipment needed to scan reflective surfaces. It would be lovely if the patron's card number and their expiration date were also added to the virtual card display to provide staff with additional information at a glance.
Comment 1 Carolyn Hughesman 2025-03-21 15:51:45 UTC
+1

This would be very useful to us.  Some of our smaller libraries cannot afford to upgrade their barcode scanners at this time. Having the card number display in the OPAC virtual card feature would be helpful.
Comment 2 Lucas Gass (lukeg) 2025-04-08 18:24:29 UTC
Created attachment 180730 [details] [review]
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.
Comment 3 Emmanuel Bétemps 2025-04-14 19:38:11 UTC
Created attachment 180932 [details] [review]
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.

Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Comment 4 Emmanuel Bétemps 2025-04-14 19:44:51 UTC
Hi,

I tested with every type of barcode which was available in the syspref
-> what you were looking for is displayed


Note that if every format let cardnumber and expiration date displaying, some of them can't display the barcode : ean-13, ean-8, ITF-14, UPC-A and UPC-B were 'Unable to generate barcode'.


Manu.
Comment 5 Paul Derscheid 2025-05-20 12:53:19 UTC
A quick search lead my to the conclusion that the barcodes that can't be generated need to be valid in the context of their specification.

For example, this is a valid UPC-A: 012345678905

For the other standards, there are valid samples available as well.
Comment 6 Paul Derscheid 2025-05-20 12:54:11 UTC
Created attachment 182670 [details] [review]
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.

Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Comment 7 Lucas Gass (lukeg) 2025-06-24 21:52:54 UTC
Nice work everyone!

Pushed to main for 25.11