[Archivesspace_Users_Group] Auto-populate rights subrecord or text note fields?

Joshua D. Shaw Joshua.D.Shaw at dartmouth.edu
Thu Sep 24 08:21:34 EDT 2015


Thanks, Brad! Didn't realize that was available. This will be helpful in some of our implementations as well.

Joshua

From: Brad Westbrook
Reply-To: Archivesspace Users Group
Date: Wednesday, September 23, 2015 at 4:59 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Auto-populate rights subrecord or text note fields?

Hi.

With release of v.1.3.0 at the end of June, it became possible to set default values pretty much throughout the ArchivesSpace application.  See https://archivesspace.atlassian.net/browse/AR-1038.  The story includes brief instructions for how to do so.

Below are more expanded instructions from the workshop manual for how to set default values.  These instructions will appear in the user manual.

Setting default values for the rights sub-record is limited, as you will be able to set them for only one type of rights asserting, e.g., intellectual property.  That may not be problem re: Permissions and Restrictions in the current design.

Brad W.

Default values

Users can set default values throughout the application.  Default values are typically set when the value of a field is very frequently the same across records.  For instance, a segment of the identifier in an accession and / or resource record might indicate the custodial repository. If the repository identifier is set as a default value for a segment of the accession and / or resource identifier, then that segment will be populated with that identifier whenever a new accession or resource record is created.  In short, setting default values for repetitive data values is a good way for repositories to streamline data input.

Default values can be edited in a record that they have been applied to.  Also default values can be reset at any time.  Doing so will have no impact on applications of the prior default value; they will be retained in the records in which they were applied.  Default values are not applied in spawning an accession or resource record from a source accession record.

How to set default values:

To set default values you need to log in to ArchivesSpace as either an administrator or repository manager.


1.    Click on the option for My Repository Preferences

[cid:image002.jpg at 01D0F621.B05BBC20]



2.    Activate the option to pre-populate records.

[cid:image004.jpg at 01D0F621.B05BBC20]


3.    Click on Save to save your new preferences.


4.    Open the browse list for the record type you want to set default values for and click on the option to Edit Default Values at the top of the list.

[cid:image006.jpg at 01D0F621.B05BBC20]

In the case of Resources and Digital Objects, you will need to select between setting default values for the parent record or the component record:

[cid:image008.jpg at 01D0F621.B05BBC20]


5.    Next, open up a blank record of the type you set default values for, and enter the value defaults into the appropriate fields:

[cid:image010.jpg at 01D0F621.B05BBC20]


6.    Click on Save to save the default values to the template.

When creating a new record, the default values should populate the fields to which they are assigned:

[cid:image012.jpg at 01D0F621.B05BBC20]


At any time that you want to not apply the default values, simply deactivate the option to pre-populate records.  This will result in an empty template when you start a new record.

Remember, setting default values is most effective for values that are the same across many records.




From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Joshua D. Shaw
Sent: Wednesday, September 23, 2015 4:28 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Auto-populate rights subrecord or text note fields?

Hi Angela-

You'll need to use a plugin - either roll your own or add to the local plugin. It's gonna be a bit trickier since the rights sub record will need to be created and then populated via scripting.

Take a look at this plugin which we had developed for us (https://github.com/hudmol/user_defined_in_basic). It's adding some user defined fields to the Basic section, but the same methodology could be used for what you are interested in accomplishing.

Joshua

From: Angela Kroeger
Reply-To: Archivesspace Users Group
Date: Wednesday, September 23, 2015 at 4:10 PM
To: "archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>"
Subject: [Archivesspace_Users_Group] Auto-populate rights subrecord or text note fields?

I have looked through the manual, and I have seen how to set default values for controlled vocabularies. What I would like is to set a default value for a non-controlled free-text field. Specifically, I would like our boilerplate text to auto-populate the permissions and restrictions fields of the rights statement subrecord whenever we create a new accession or resource record. Similarly, I’d like to auto-populate the conditions governing access and conditions governing use note fields. I have not found a way to assign default text to any free-text field.

Is there a way to do this? Am I overlooking something? Could something like this be accomplished with a plugin or script?

If not, it’s not a major issue. We’ll keep copying and pasting the text from our local documentation. I just wanted to streamline our process if it was possible.

Thank you for any help.

Angela Kroeger
akroeger at unomaha.edu<mailto:akroeger at unomaha.edu>
Archives and Special Collections Associate
Dr. C.C. and Mabel L. Criss Library
University of Nebraska at Omaha
(402) 554-4159

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 8103 bytes
Desc: image002.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 15501 bytes
Desc: image004.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 8081 bytes
Desc: image006.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 8393 bytes
Desc: image008.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.jpg
Type: image/jpeg
Size: 29579 bytes
Desc: image010.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.jpg
Type: image/jpeg
Size: 29942 bytes
Desc: image012.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150924/a40b20ac/attachment-0005.jpg>


More information about the Archivesspace_Users_Group mailing list