[Archivesspace_Users_Group] barcode validation for ASpace

Custer, Mark mark.custer at yale.edu
Mon Jun 24 11:43:31 EDT 2019


Benn,

Alex is exactly right.

At Yale, we use the length configuration to help ensure a basic level of validity (one of our repositories has 9 character barcodes, and the rest have 14 character barcodes).  I can also add that during the development of the top container module, I was hopeful that we might be able to include the ability to validate check digits for a few different barcoding systems as additional configuration options.  It was decided not to pursue that option at the time, but I imagine that such a thing could definitely be handled in a plugin. I’m not entirely sure how it would be handled throughout the application, but I expect that it could be baked into the JSON and database schemas.

I wrote a process in XSLT to verify barcode check digits according to the Luhn algorithm (https://en.wikipedia.org/wiki/Luhn_algorithm), if that would be of interest.  What types of barcodes do you use?  I had been meaning to add the barcode-digit check to our EAD validation process at some point anyway, so this is a good reminder to do that 😊.  So far, I have just been using that check during a project to reconcile item records in our ILS with top container records in ArchivesSpace.  In each case, I’ve stumbled across a handful of barcodes with invalid check digits, so you’re right that those errors definitely will creep in when left unchecked.

Mark



From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Alexander Duryee
Sent: Monday, 24 June, 2019 10:22 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] barcode validation for ASpace

Benn,

It's possible to validate barcodes for length via ASpace by modifying config.rb (ref. https://github.com/archivesspace/archivesspace/blob/master/docs/user/configuring-archivesspace.md<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fblob%2Fmaster%2Fdocs%2Fuser%2Fconfiguring-archivesspace.md&data=02%7C01%7Cmark.custer%40yale.edu%7C3c207da319d44f12d2e608d6f8af5bbc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636969829396148931&sdata=7a4EoOyA3sfChlyeoaqLZbYgMyPDzXF9k7hQKrnIaQA%3D&reserved=0>).  If the min and max values are set to the same length, then barcodes will only validate if they're either 0 or that exact length.  You won't need to do anything elaborate to implement this - just add the correct values to config.rb and restart ASpace, and it'll immediately go into effect.

I'm not aware of anything in ASpace that will do more elaborate validation (e.g. verifying that a barcode's check digits are correct); this would likely require either a plugin or feature request.

Thanks,
--Alex

On Fri, Jun 21, 2019 at 1:39 PM Benn Joseph <benn.joseph at northwestern.edu<mailto:benn.joseph at northwestern.edu>> wrote:
Good afternoon,
Over the past few years, our standard procedure when processing a new collection has been to barcode the finished boxes and assign those barcodes to their Top Containers in ASpace.

ArchivesSpace does a great job of keeping a user from assigning a barcode that has already been assigned elsewhere--which we recently discovered after mistakenly being given a sheet of piggyback barcodes that had already been assigned to various other collections. The system reports an error: “Barcode – A barcode must be unique within a repository”. Great!

One thing it doesn’t do is check for valid barcodes against a schema. For instance, we try to be very careful about only using barcode scanners to enter barcodes into ArchivesSpace, but every now and then one will get entered by hand, or there will be an accidental keystroke after scanning. In those cases, it would be ideal if ASpace were able to validate this number to ensure that it’s correct (I understand that Alma does this using a Codabar 13 validation routine, though there are other validation options that would also look for a check digit). Would this be a plugin? A feature request? Would it even be possible?

The reason it’s important for us to ensure barcode accuracy is that a large volume of our collections get sent offsite to a facility that uses GFA as their inventory system. So, if we enter the barcode for a box that is incorrect in ASpace and GFA records it differently, it ends up being very difficult to recall that box if a researcher requests it.

Thanks!
--Benn

Benn Joseph
Head of Archival Processing
Northwestern University Libraries
Northwestern University
www.library.northwestern.edu<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.library.northwestern.edu&data=02%7C01%7Cmark.custer%40yale.edu%7C3c207da319d44f12d2e608d6f8af5bbc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636969829396158926&sdata=C9sj3YAaZjki5ritzmUdBTYMN1ncT7rvMA7B7LRotYI%3D&reserved=0>
benn.joseph at northwestern.edu<mailto:benn.joseph at northwestern.edu%0d>
847.467.6581
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group&data=02%7C01%7Cmark.custer%40yale.edu%7C3c207da319d44f12d2e608d6f8af5bbc%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636969829396158926&sdata=kUMdoCxPj3F3zc3QIfInjShvGGAW%2BZA%2Fe438NVHZJLw%3D&reserved=0>


--
Alexander Duryee
Metadata Archivist
New York Public Library
(917)-229-9590
alexanderduryee at nypl.org<mailto:alexanderduryee at nypl.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20190624/3315ed25/attachment.html>


More information about the Archivesspace_Users_Group mailing list