Hi Garry and Shula, Thank you both! I will try to download the font and see if this works.
Jessica Serrenti Head of IT & Digital Services Scranton Public Library Lackawanna County Library System 500 Vine Street Scranton, PA 18509 Phone: (570) 795-4332 Cell: (570) 871-0187 [email protected]<mailto:[email protected]> From: Evergreen-general <[email protected]> On Behalf Of Garry Collum via Evergreen-general Sent: Tuesday, April 25, 2023 12:53 PM To: Evergreen Discussion Group <[email protected]> Cc: Garry Collum <[email protected]> Subject: Re: [Evergreen-general] Printing Barcodes for Library Cards in Evergreen Yep. What Shula just said. As a proof on concept I downloaded and installed the Libre Barcode 39 font from google fonts on my local machine. I added the following in the address template above the first <div> to point to the local font, and then I changed the font-family in your template from ‘Code-Codabar’ to ‘Libre Barcode39’. It worked. <style> @font-face { font-family: 'Libre Barcode39'; src: local('Libre Barcode 39 Regular'); } </style> For those following along. This is just a proof of concept. Jessica’s template has the barcode wrapped in a B and D prefix and suffix. I don’t recall off the top of my head if this is correct for code 39. I can experiment more once I am back in the office. From: Shula Link via Evergreen-general<mailto:[email protected]> Sent: Tuesday, April 25, 2023 12:30 PM To: Evergreen Discussion Group<mailto:[email protected]> Cc: Shula Link<mailto:[email protected]>; Jess Serrenti<mailto:[email protected]> Subject: Re: [Evergreen-general] Printing Barcodes for Library Cards in Evergreen Hi! It looks to me like the issue is there's no barcode font available directly in Evergreen. You'd need to have a font uploaded to call in the style parameter, like "font-family:url('fonts/barcode-font-example.ttf')". The guide you're using is out of date and was for the old software client version of Evergreen where it could call on fonts installed on the workstation. Hope that helps, Shula Link (she/her) Systems Services Librarian Greater Clarks Hill Regional Library [email protected]<mailto:[email protected]> | [email protected]<mailto:[email protected]> 706-447-6702 On Tue, Apr 25, 2023 at 11:43 AM Jess Serrenti via Evergreen-general <[email protected]<mailto:[email protected]>> wrote: Hello Everyone, Has anyone had success in scripting a receipt template so that a patron’s library card number will print as a scannable barcode? My library used to be able to do this for patrons who forgot to bring their physical card and needed to use a computer. However, the receipt only prints the full number anymore For privacy reasons, we don’t want to keep printing the card numbers. I currently use the Patron Address print template and format it to say the following below. The line highlighted in yellow is where we’d tell the code to print the barcode, but it unfortunately does not work anymore. I did try following this tutorial from the Evergreen Wikipage (https://wiki.evergreen-ils.org/doku.php?id=scratchpad:barcode_font&s[]=barcode<https://wiki.evergreen-ils.org/doku.php?id=scratchpad:barcode_font&s%5b%5d=barcode>), but had the same problem. <!-- Template for printing a patron address. Fields include: * first_given_name * second_given_name * family_name * address.street1 * address.street2 * address.city * address.state * address.post_code --> <div> <div> <center>Lackawanna County Library System<br> <b>Temporary Slip</b><br></center> <p> <br> {{patron.first_given_name}} {{patron.second_given_name}} {{patron.family_name}} <p> <br> Library Card Number: {{patron.card.barcode}} <br>Barcode: <div style= "font-family: 'Code-Codabar'; font-size: 50px" >B{{patron.card.barcode}}D</div> <p> <br> New:_______ Temporary: _______<br> New users can use the library computers and are allowed 1 item until they receive cards in the mail. <p> <br> <div>Today's Date: {{today | date:'M/d/yyyy'}}</div> Any help or insight would be greatly appreciated. Thank you, Jessica Serrenti Head of IT & Digital Services Scranton Public Library Lackawanna County Library System 500 Vine Street Scranton, PA 18509 Phone: (570) 795-4332 Cell: (570) 871-0187 [email protected]<mailto:[email protected]> _______________________________________________ Evergreen-general mailing list [email protected]<mailto:[email protected]> http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
_______________________________________________ Evergreen-general mailing list [email protected] http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general
