[Archivesspace_Users_Group] Configuring barcode digits?

Custer, Mark mark.custer at yale.edu
Fri Mar 16 13:01:07 EDT 2018


Rachel, all:

It was documented in the plugin.  I still refer to that documentation here:

https://github.com/hudmol/container_management#configuring-it

But it should be added to the core documentation, of course!

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: Friday, 16 March, 2018 12:40 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Configuring barcode digits?

Rachel,
It's an undocumented feature in config/config.rb.  You'll need to add the following line, swapping our values for yours and expanding as needed:

AppConfig[:container_management_barcode_length] = {"MSS" => {:min => '14', :max => '14'}, "THE" => {:min => '14', :max => '14'}}
Note that this uses the repository code to match the validation to its repository.  If a container has no barcode, it automatically validates - for our case, barcodes must be exactly either 0 or 14 characters long.

(Code here - https://github.com/archivesspace/archivesspace/blob/master/common/barcode_check.rb<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_archivesspace_archivesspace_blob_master_common_barcode-5Fcheck.rb&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=Pnnmkh2-cdIM86hiV2KtNoFYhuE0Tpjadc-sitAkIeI&s=KARazaCqWnjXQCGHbS8--dmdJ3MoW1DqkrQtS5hfrJ4&e=>)
Hope this helps,
--Alex

On Fri, Mar 16, 2018 at 11:31 AM, Rachel Aileen Searcy <rachel.searcy at nyu.edu<mailto:rachel.searcy at nyu.edu>> wrote:
Hello everyone,

We're interested in configuring the barcode field of the top container record to enforce validation for the number of digits. It looks like this was included in the original development of the container management functionality<https://guides.library.yale.edu/archivesspace/ASpaceContainerManagement>, but after poking around a bit in the system and available documentation I don't see any further information. If anyone has done this locally, could you be so kind as to tell me how you made this happen?

Thanks very much (and in the spirit of the season, go raibh maith agat 🍀),

Rachel Searcy
Accessioning Archivist, Archival Collections Management
New York University Libraries
212.998.2539 | rachel.searcy at nyu.edu<mailto:rachel.searcy at nyu.edu>

_______________________________________________
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://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=DwMFaQ&c=cjytLXgP8ixuoHflwc-poQ&r=7Ez68qVcrmRD6nn1FqwoHBDEOxeRUCPm3xGvnFT0zjU&m=Pnnmkh2-cdIM86hiV2KtNoFYhuE0Tpjadc-sitAkIeI&s=xrIwQ0MnD7X5E5Ky-n6c4pWnAeKe4VP0GAybT_Tm6Bg&e=>



--
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/20180316/63348d66/attachment.html>


More information about the Archivesspace_Users_Group mailing list