Bug 26777

Summary: Give the user the option to display their patron card barcode from the OPAC
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: barbara.johnson, black23, dcook, lisettepalouse+koha, magnus, sally.healey
Version: MainKeywords: Academy
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7915
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 26692, 27825    
Bug Blocks:    

Description Martin Renvoize 2020-10-22 08:26:10 UTC
In this modern age, people are moving away from carrying cards.. but they nearly always have their smart phone to hand.

It would be nice to be able to display your barcode for scanning at self service machines directly on your phone.
Comment 1 Magnus Enger 2020-10-22 09:11:12 UTC
+1
Comment 2 Barbara Johnson 2020-10-22 12:02:07 UTC
Our patrons would love this.
Comment 3 Lisette Scheer 2020-10-22 23:52:00 UTC
Agreed, this would be useful. 

I know some websites can tell if you are on mobile and display a link or button only if you are. That could be handy since there wouldn't be a real use case for using the barcode on a PC? 

Also if we could make it so it ups the screen brightness (not sure if possible just in mobile browser) but most people don't seem to keep their phones at high enough brightness to be read by a barcode scanner.
Comment 4 Owen Leonard 2021-02-26 19:56:18 UTC
Here's what I tried today: https://zivotdesign.com/p/view.php?p=16143692116112

Using https://github.com/lindell/JsBarcode

I think we'd have to create a system preference for defining what card type to use (CODE39, Codabar, UPC, etc). The selection could also be used to set the default in the patron card creator.
Comment 5 Owen Leonard 2021-03-01 16:41:13 UTC
Looks like this tool has more options, including all the options we offer in the patron card creator:

https://github.com/metafloor/bwip-js
Comment 6 Sally 2022-03-09 15:13:06 UTC
+1 - really interested in this development.
Comment 7 Martin Renvoize 2022-04-12 07:35:19 UTC
Is this something you're still experimenting with Owen?
Comment 8 Owen Leonard 2022-04-12 10:50:52 UTC
(In reply to Martin Renvoize from comment #7)
> Is this something you're still experimenting with Owen?

I started working on Bug 27825 - Add preference for choosing the default format for patron barcodes - and got stalled. I don't recall what the sticking point was or if I just got redirected.
Comment 9 David Cook 2022-08-19 00:14:37 UTC
Going to mark this one as a duplicate of bug 26692...

*** This bug has been marked as a duplicate of bug 26692 ***
Comment 10 David Cook 2022-08-19 00:17:07 UTC
Actually, I take that back, as that one is a bit too generic still, despite it listing the same use case...
Comment 11 Martin Renvoize 2023-05-16 15:00:59 UTC
https://codelabs.developers.google.com/add-to-wallet-android#0 is interesting too
Comment 12 David Cook 2023-05-17 00:15:31 UTC
(In reply to Martin Renvoize from comment #11)
> https://codelabs.developers.google.com/add-to-wallet-android#0 is
> interesting too

Ohhh very interesting. That would be a very cool feature. I think I'll raise a ticket for that.

It's not something most of our libraries would use, but as a library user I would love to have this...
Comment 13 David Cook 2023-05-17 00:23:36 UTC
See Bug 25332 for talk about adding a library card to a smart phone wallet