[Archivesspace_Users_Group] Configuring barcode digits?
Alexander Duryee
alexanderduryee at nypl.org
Fri Mar 16 12:39:49 EDT 2018
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
)
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 | 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/519bc908/attachment.html>
More information about the Archivesspace_Users_Group
mailing list