Bug 22403

Summary: Temporary Card
Product: Koha Reporter: Christopher Brannon <cbrannon>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: In Discussion --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: blawlor, ddaghita, gmcharlt, josef.moravec, kyle.m.hall, lisettepalouse+koha
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 22403: Add sample patron custom slip to print temporary card

Description Christopher Brannon 2019-02-22 23:23:48 UTC
We are CONSTANTLY having to write out patron card numbers on post-its for patrons that forgot their library cards.

It would be great if there were an option under the print options on the patron page to print a temporary card.  It could print the barcode and number, and maybe have an optional customizable message.

Even better, since patrons are prone to leave these lying around, maybe it prints a temporary number that ISN'T their card number, but it is a temporary secondary number linked to their account that expires in X amount of hours.  We could hand that out to them, providing of course they provide a photo id to prove who they are.
Comment 1 Owen Leonard 2019-02-25 13:04:08 UTC
(In reply to Christopher Brannon from comment #0)
> We are CONSTANTLY having to write out patron card numbers on post-its for
> patrons that forgot their library cards.

I'm curious about the use case in your library. What do they need their number for?
Comment 2 Lisette Scheer 2019-02-26 19:45:15 UTC
For us it would be logging into pc reservation for in the library. 
Really any of our databases that use SIP connection could also have the same issue, though we don't write it out for them in that case, only in the case of needing to log onto the computer today. 
Lisette
Comment 3 Christopher Brannon 2024-03-13 20:50:17 UTC
(In reply to Owen Leonard from comment #1)
> (In reply to Christopher Brannon from comment #0)
> > We are CONSTANTLY having to write out patron card numbers on post-its for
> > patrons that forgot their library cards.
> 
> I'm curious about the use case in your library. What do they need their
> number for?

Primarily for what Lisette mentioned, but sometimes patrons want it so they can do the self check rather than hold up a staff member, or they want to login on a catalog to place holds.
Comment 4 Brendan Lawlor 2024-12-17 20:42:05 UTC
Since bug 32986 this can be accomplished with Patron custom slips.

Add a new notice for Patrons (custom slip), message transport type Print, HTML message with the Message subject 'Print a temporary library card'

Add something like the following to the Message body:

<h1>Quick library card</h1>
<h2>[% borrower.firstname %] [% borrower.surname %]</h2>
<p>
  <img src='/cgi-bin/koha/svc/barcode?barcode=*[% borrower.cardnumber %]*&type=Code39'></img>
</p>

We could add an example like this to sample_notices.yml so that it would come with Koha by default.
Comment 5 Brendan Lawlor 2024-12-17 20:53:57 UTC
Created attachment 175636 [details] [review]
Bug 22403: Add sample patron custom slip to print temporary card

Test plan:
1. Apply patch, reset_all
2. From a patron record click print in the menu bar
3. Notice the new option to Print a temporary card
4. Confirm it works to print the patron's barcode
Comment 6 Christopher Brannon 2024-12-17 22:55:04 UTC
Unfortunately, this just creates a duplicate of their barcode.  Yes, we can do that.  The key here is that when I say temporary, I mean a barcode that is temporarily linked to their account that is not permanent.  We don't want paper copies of their permanent library card number floating around.

Unfortunately this really doesn't address the ask in this bug.
Comment 7 Brendan Lawlor 2024-12-18 14:17:58 UTC
Thanks for the clarification Christopher.

Maybe there could be a button that could click to generate a barcode alias that could be used for logging in.

It would probably need to also record a timestamp for when the alias was created so there could be a script that would clear out that alias field based on the timestamp.