[Archivesspace_Users_Group] Configuring barcode digits?
Alexander Duryee
alexanderduryee at nypl.org
Fri Mar 16 15:04:15 EDT 2018
Mark,
Thanks! I wasn't aware that these features were documented in the old
plugin repo.
I added documentation on container management options to config.rb (
https://github.com/archivesspace/archivesspace/commit/8ffeed29dd35649a2cf26bd908fb12794a803b22),
and the tech-docs repo will be updated with documentation as well. They'll
be less secret in future releases :)
Thanks again!
--Alex
On Fri, Mar 16, 2018 at 1:38 PM, Rachel Aileen Searcy <rachel.searcy at nyu.edu
> wrote:
> Thanks, everyone!
>
> On Fri, Mar 16, 2018 at 1:01 PM, Custer, Mark <mark.custer at yale.edu>
> wrote:
>
>> 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 lyr
>> alists.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> 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 <(212)%20998-2539> | rachel.searcy at nyu.edu
>>
>>
>> _______________________________________________
>> Archivesspace_Users_Group mailing list
>> 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 <(917)%20229-9590>
>>
>> alexanderduryee at nypl.org
>>
>> _______________________________________________
>> Archivesspace_Users_Group mailing list
>> Archivesspace_Users_Group at lyralists.lyrasis.org
>> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>>
>>
>
>
> --
> Rachel Searcy
> Accessioning Archivist, Archival Collections Management
> New York University Libraries
> 212.998.2539 | rachel.searcy at nyu.edu
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
>
>
--
Alexander Duryee
Metadata Archivist
New York Public Library
(917)-229-9590
alexanderduryee at nypl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180316/fd384911/attachment.html>
More information about the Archivesspace_Users_Group
mailing list