Re: [Archivesspace_Users_Group] PUI inheritance configuration

2020-02-23 Thread Cory Nimer
Mark,

Thanks for your help with this--I will pass it along to our IT staff for 
update. Other than the examples in the configuration file, is there any public 
documentation of the full range of elements that can be included in the 
inheritance file?

Thanks again,

Cory

From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 On Behalf Of Custer, 
Mark
Sent: Friday, February 21, 2020 2:13 PM
To: James Bullen ; Archivesspace Users Group 

Subject: Re: [Archivesspace_Users_Group] PUI inheritance configuration

Cory,

I just tested this out with a new build of ASpace, since I knew this worked 
before!  At first I didn't get it to work either, but that was because I just 
copied over one of your examples as is.  When I looked at the ASpace JSON 
records, though, I realized that your genreform example just needed to be 
changed slightly so that the type match was looking for "genre_form" instead, 
i.e.:

{
  :property => "subjects",
  :inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'genre_form'}.empty? } },
  :inherit_directly => true
}

I didn't test any of the other mappings (or the "skip_if" parameters), so I 
can't say if all of those term types are accurate or not, but I definitely got 
this one to inherit once I added the underscore to the term type.

I hope that helps,

Mark





From: 
archivesspace_users_group-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 on behalf of James Bullen mailto:ja...@hudmol.com>>
Sent: Wednesday, February 19, 2020 10:14 PM
To: Archivesspace Users Group 
mailto:archivesspace_users_group@lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] PUI inheritance configuration


Hi Cory,

It's been some years since this was in my head, but it looks good.

The :inherit_if on the first rule should be selecting all subjects that have at 
least one term with a 'genreform' type.


Cheers,
James



On Feb 20, 2020, at 1:37 AM, Cory Nimer 
mailto:cory_ni...@byu.edu>> wrote:

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-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of James Bullen
Sent: Tuesday, February 18, 2020 6:49 PM
To: Archivesspace Users Group 
mailto:archivesspace_users_group@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 
mailto:cory_ni...@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

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<

Re: [Archivesspace_Users_Group] PUI inheritance configuration

2020-02-21 Thread Custer, Mark
Cory,

I just tested this out with a new build of ASpace, since I knew this worked 
before!  At first I didn't get it to work either, but that was because I just 
copied over one of your examples as is.  When I looked at the ASpace JSON 
records, though, I realized that your genreform example just needed to be 
changed slightly so that the type match was looking for "genre_form" instead, 
i.e.:

{
  :property => "subjects",
  :inherit_if => proc {|json| json.select {|j| ! 
j['_resolved']['terms'].select { |t| t['term_type'] == 'genre_form'}.empty? } },
  :inherit_directly => true
}

I didn't test any of the other mappings (or the "skip_if" parameters), so I 
can't say if all of those term types are accurate or not, but I definitely got 
this one to inherit once I added the underscore to the term type.

I hope that helps,

Mark





From: archivesspace_users_group-boun...@lyralists.lyrasis.org 
 on behalf of James 
Bullen 
Sent: Wednesday, February 19, 2020 10:14 PM
To: Archivesspace Users Group 
Subject: Re: [Archivesspace_Users_Group] PUI inheritance configuration


Hi Cory,

It’s been some years since this was in my head, but it looks good.

The :inherit_if on the first rule should be selecting all subjects that have at 
least one term with a ‘genreform’ type.


Cheers,
James


On Feb 20, 2020, at 1:37 AM, Cory Nimer 
mailto:cory_ni...@byu.edu>> wrote:

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-boun...@lyralists.lyrasis.org<mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>
 
mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>>
 On Behalf Of James Bullen
Sent: Tuesday, February 18, 2020 6:49 PM
To: Archivesspace Users Group 
mailto:archivesspace_users_group@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 
mailto:cory_ni...@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

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Flyralists.lyrasis.org%2Fmailman%2Flistinfo%2Farchivesspace_users_group=02%7C01%7Cmark.custer%40yale.edu%7C86f6c1dbfef9474042ed08d7b5b30258%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637177652762750696=XSXTugZ21T4%2FdwuIv5KWuG9TmB4rwSRJ%2BwQT9QNWd5s%3D=0>


!DSPAM:5e4c053f111932459259872!

!DSPAM:5e4d482a179227770718730! ___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/a

Re: [Archivesspace_Users_Group] PUI inheritance configuration

2020-02-19 Thread James Bullen

Hi Cory,

It’s been some years since this was in my head, but it looks good.

The :inherit_if on the first rule should be selecting all subjects that have at 
least one term with a ‘genreform’ type.


Cheers,
James


> On Feb 20, 2020, at 1:37 AM, Cory Nimer  wrote:
> 
> 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-boun...@lyralists.lyrasis.org 
> <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org> 
>  <mailto:archivesspace_users_group-boun...@lyralists.lyrasis.org>> On Behalf 
> Of James Bullen
> Sent: Tuesday, February 18, 2020 6:49 PM
> To: Archivesspace Users Group 
>  <mailto:archivesspace_users_group@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  <mailto:cory_ni...@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
>  
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
> 
> 
> !DSPAM:5e4c053f111932459259872!
>  
> !DSPAM:5e4d482a179227770718730! 
> ___
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group@lyralists.lyrasis.org 
> <mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
> 
> 
> !DSPAM:5e4d482a179227770718730!

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] PUI inheritance configuration

2020-02-19 Thread Cory Nimer
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-boun...@lyralists.lyrasis.org 
 On Behalf Of James 
Bullen
Sent: Tuesday, February 18, 2020 6:49 PM
To: Archivesspace Users Group 
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 
mailto:cory_ni...@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@lyralists.lyrasis.org<mailto:Archivesspace_Users_Group@lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


!DSPAM:5e4c053f111932459259872!

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group


Re: [Archivesspace_Users_Group] PUI inheritance configuration

2020-02-18 Thread James Bullen

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  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@lyralists.lyrasis.org 
> 
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group 
> 
> 
> 
> !DSPAM:5e4c053f111932459259872!

___
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group@lyralists.lyrasis.org
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group