Bug 37118 - Add new patron page “My virtual card” to OPAC
Summary: Add new patron page “My virtual card” to OPAC
Status: RESOLVED DUPLICATE of bug 26777
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low new feature
Assignee: Sam Lau
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 18:13 UTC by Sam Lau
Modified: 2024-06-18 23:38 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Koha plugin with OPAC barcode feature (11.46 KB, image/png)
2024-06-18 23:38 UTC, David Cook
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Lau 2024-06-18 18:13:12 UTC
Some libraries would like patrons to have a "virtual library card" page that would display their library name, photo, and barcode.
Comment 1 Owen Leonard 2024-06-18 18:52:41 UTC
I think this is more or less a duplicate of Bug 26777
Comment 2 Sam Lau 2024-06-18 20:33:48 UTC
(In reply to Owen Leonard from comment #1)
> I think this is more or less a duplicate of Bug 26777

Yes, definitely. I will mark it as a duplicate. Am I good to keep working on this though? I have made some progress.
Comment 3 David Cook 2024-06-18 23:38:08 UTC
(In reply to Sam Lau from comment #2)
> (In reply to Owen Leonard from comment #1)
> > I think this is more or less a duplicate of Bug 26777
> 
> Yes, definitely. I will mark it as a duplicate. Am I good to keep working on
> this though? I have made some progress.

Certainly. There are no patches attached to bug 26777 so I think you're good to go.

For what it's worth, I've already implemented something like this as a Koha plugin. I haven't shared it publicly yet, but I certainly could if you'd find it useful.

With the Koha plugin, all I'm doing is adding REST API endpoint to provide the user's barcode as an image. (Note: for security only authenticated users can use the endpoint, and authenticated users can only fetch their own barcode.)

In my favourite implementation, in the OpacUserJS, I detect if the user is logged in; if they are logged in, I show a little barcode image icon next to their "My Account" image in the top right corner of the screen. If they click that barcode image, a modal appears that shows their barcode. (I'll attach a screenshot to illustrate this.)

In the past, we had a "Barcode" tab on opac-user.pl, but the advantage of the barcode icon in the header is that they can access their barcode from any OPAC page. 

I don't think there's any 1 right solution here, so I'm curious to see yours! I think this is a very valuable feature to have in core.

I'm a public library user, and I'm grateful to my libraries that have a "my barcode" feature (typically in an app). I use it all the time.

*** This bug has been marked as a duplicate of bug 26777 ***
Comment 4 David Cook 2024-06-18 23:38:43 UTC
Created attachment 167879 [details]
Koha plugin with OPAC barcode feature