[Archivesspace_Users_Group] PUI inheritance configuration
Cory Nimer
cory_nimer at byu.edu
Wed Feb 19 09:37:19 EST 2020
James,
To my knowledge, a complete reindex was done following the changes (other changes in note inheritance did appear as anticipated). However, the subject inheritance did not seem to work. Are the inheritance statements below structured correctly, or are there other reasons that these elements would not be visible in the interface?
Best,
Cory
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of James Bullen
Sent: Tuesday, February 18, 2020 6:49 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] PUI inheritance configuration
Hi Cory,
Have you reindexed?
The PUI runs exclusively from the PUI index so these changes won’t take effect until the relevant records have been reindexed.
Cheers,
James
On Feb 19, 2020, at 2:26 AM, Cory Nimer <cory_nimer at byu.edu<mailto:cory_nimer at byu.edu>> wrote:
We are continuing to tweak our PUI configuration, and are interested in testing inclusion of subject terms. Based on the configuration template, our IT staff have attempted to add the code below but it does not appear to be working after a restart and reindex:
{
:property => 'subjects',
:inherit_if => proc {|json| json.select {|j| ! j['_resolved']['terms'].select { |t| t['term_type'] == 'genreform'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! j['_resolved']['terms'].select { |t| t['term_type'] == 'topical'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! j['_resolved']['terms'].select { |t| t['term_type'] == 'title'}.empty? } },
:inherit_directly => true
},
{
:property => 'subjects',
:skip_if => proc {|json| ['file', 'item'].include?(json['level']) },
:inherit_if => proc {|json| json.select {|j| ! j['_resolved']['terms'].select { |t| t['term_type'] == 'geogname'}.empty? } },
:inherit_directly => true
},
Has anyone else successfully included subject terms in their PUI inheritance configuration, or have suggestions for what might be wrong? We are currently running version 2.5.1.
Thanks,
Cory Nimer
University Archivist
Brigham Young University
801-422-6091
!DSPAM:5e4c053f111932459259872! _______________________________________________
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
!DSPAM:5e4c053f111932459259872!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200219/2d306f8c/attachment.html>
More information about the Archivesspace_Users_Group
mailing list