talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

JK
James Keeline
Tue, Jun 21, 2016 9:16 PM

Thinking about this and recalling the data, I think that what can be occurring is that some authors are entered only as Chinese characters with no English equivalent.  As such, the first entry (English default because of my code) might be empty.  I'll find an example:
<imports>  <import seq="130" service="Persons" type="Person">      <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common">        <inAuthority>54c6d674-5fc2-416a-9cc6</inAuthority>        <shortIdentifier></shortIdentifier>        <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name()'蔡開松'</refName>        <personTermGroupList>          <personTermGroup>            <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType>            <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage>            <termDisplayName></termDisplayName>            <surName></surName>            <foreName></foreName>            <termSource>Cutter</termSource>            <termSourceID>CHN50</termSourceID>          </personTermGroup>          <personTermGroup>            <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType>            <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage>            <termDisplayName>蔡開松</termDisplayName>            <surName>蔡</surName>            <foreName>開松</foreName>            <termSource>Cutter</termSource>            <termSourceID>CHN50</termSourceID>          </personTermGroup>        </personTermGroupList>        <birthDateGroup>          <dateDisplayDate></dateDisplayDate>          <dateLatestYear></dateLatestYear>        </birthDateGroup>        <deathDateGroup>          <dateDisplayDate></dateDisplayDate>          <dateLatestYear></dateLatestYear>        </deathDateGroup>      </schema>  </import></import>
So, for this kind of entry, how should I handle it differently? James D. Keeline

  From: Richard Millet <richard.millet@lyrasis.org>

To: James Keeline james@keeline.com
Sent: Tuesday, June 21, 2016 1:35 PM
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

James,

It seems that some of the "termDisplayName" fields (a sub-element of "personTermGroup") are missing values.  Based on the error that you are reporting, it looks like the "termDisplayName" field requires a value.

Also the first "personTermGroup" element (there can be 1 or more of these) is the preferred term and therefore its "termDisplayName" should match the suffix of the "refName" that is between the single quote characters.

So, in short, I think your import XML needs to be updated/tweaked by adding "termDisplayName" values and verifying the "refName" values.

-Richard

p.s. Let's move this thread back onto the Talk list?


From: James Keeline james@keeline.com
Sent: Tuesday, June 21, 2016 12:46 PM
To: Richard Millet
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

I cleared the cache and cookies in Chrome as part of my process.  I did it again just now.  An empty search against Person >> Local Persons still generates the error:

We've encountered an error retrieving search results. Please try again:
Error parsing JSONNo displayNames found!

James D. Keeline


From: James Keeline <james@keeline.commailto:james@keeline.com>
Sent: Tuesday, June 21, 2016 12:10 PM
To: Richard Millet
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

Now I need to work out the issue related to making an empty value search against Persons >> Local Persons which is returning an error at the bottom of the browser that refers to JSON processing.


I have about 720 persons imported via import service.  Here is a sample of the XML:

<?xml version="1.0" encoding="utf-8" ?> <imports>   <import seq="3" service="Persons" type="Person">       <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common">         <inAuthority>26a93f56-f43f-4c1b-85ca</inAuthority>         <shortIdentifier>chiangkaishek</shortIdentifier>         <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name(chiangkaishek)'Chiang Kai-shek 蔣介石'</refName>         <personTermGroupList>           <personTermGroup>             <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType>             <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage>             <termDisplayName>Chiang Kai-shek</termDisplayName>             <surName>Chiang</surName>             <foreName>Kai-shek</foreName>             <termSource></termSource>             <termSourceID></termSourceID>           </personTermGroup>           <personTermGroup>             <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType>             <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage>             <termDisplayName>蔣介石</termDisplayName>             <surName>蔣</surName>             <foreName>介石</foreName>             <termSource></termSource>             <termSourceID></termSourceID>           </personTermGroup>         </personTermGroupList>         <birthDateGroup>           <dateDisplayDate></dateDisplayDate>           <dateLatestYear></dateLatestYear>         </birthDateGroup>         <deathDateGroup>           <dateDisplayDate></dateDisplayDate>           <dateLatestYear></dateLatestYear>         </deathDateGroup>       </schema>   </import> </imports>

It is possible that I am missing some required field.

James D. Keeline

Thinking about this and recalling the data, I think that what can be occurring is that some authors are entered only as Chinese characters with no English equivalent.  As such, the first entry (English default because of my code) might be empty.  I'll find an example: <imports>  <import seq="130" service="Persons" type="Person">      <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common">        <inAuthority>54c6d674-5fc2-416a-9cc6</inAuthority>        <shortIdentifier></shortIdentifier>        <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name()'蔡開松'</refName>        <personTermGroupList>          <personTermGroup>            <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType>            <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage>            <termDisplayName></termDisplayName>            <surName></surName>            <foreName></foreName>            <termSource>Cutter</termSource>            <termSourceID>CHN50</termSourceID>          </personTermGroup>          <personTermGroup>            <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType>            <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage>            <termDisplayName>蔡開松</termDisplayName>            <surName>蔡</surName>            <foreName>開松</foreName>            <termSource>Cutter</termSource>            <termSourceID>CHN50</termSourceID>          </personTermGroup>        </personTermGroupList>        <birthDateGroup>          <dateDisplayDate></dateDisplayDate>          <dateLatestYear></dateLatestYear>        </birthDateGroup>        <deathDateGroup>          <dateDisplayDate></dateDisplayDate>          <dateLatestYear></dateLatestYear>        </deathDateGroup>      </schema>  </import></import> So, for this kind of entry, how should I handle it differently? James D. Keeline From: Richard Millet <richard.millet@lyrasis.org> To: James Keeline <james@keeline.com> Sent: Tuesday, June 21, 2016 1:35 PM Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field James, It seems that some of the "termDisplayName" fields (a sub-element of "personTermGroup") are missing values.  Based on the error that you are reporting, it looks like the "termDisplayName" field requires a value. Also the first "personTermGroup" element (there can be 1 or more of these) is the preferred term and therefore its "termDisplayName" should match the suffix of the "refName" that is between the single quote characters. So, in short, I think your import XML needs to be updated/tweaked by adding "termDisplayName" values and verifying the "refName" values. -Richard p.s. Let's move this thread back onto the Talk list? ________________________________________ From: James Keeline <james@keeline.com> Sent: Tuesday, June 21, 2016 12:46 PM To: Richard Millet Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field I cleared the cache and cookies in Chrome as part of my process.  I did it again just now.  An empty search against Person >> Local Persons still generates the error: We've encountered an error retrieving search results. Please try again: Error parsing JSONNo displayNames found! James D. Keeline ________________________________________ From: James Keeline <james@keeline.com<mailto:james@keeline.com>> Sent: Tuesday, June 21, 2016 12:10 PM To: Richard Millet Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field Now I need to work out the issue related to making an empty value search against Persons >> Local Persons which is returning an error at the bottom of the browser that refers to JSON processing. _____ I have about 720 persons imported via import service.  Here is a sample of the XML: <?xml version="1.0" encoding="utf-8" ?> <imports>   <import seq="3" service="Persons" type="Person">       <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common">         <inAuthority>26a93f56-f43f-4c1b-85ca</inAuthority>         <shortIdentifier>chiangkaishek</shortIdentifier>         <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name(chiangkaishek)'Chiang Kai-shek 蔣介石'</refName>         <personTermGroupList>           <personTermGroup>             <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType>             <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage>             <termDisplayName>Chiang Kai-shek</termDisplayName>             <surName>Chiang</surName>             <foreName>Kai-shek</foreName>             <termSource></termSource>             <termSourceID></termSourceID>           </personTermGroup>           <personTermGroup>             <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType>             <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage>             <termDisplayName>蔣介石</termDisplayName>             <surName>蔣</surName>             <foreName>介石</foreName>             <termSource></termSource>             <termSourceID></termSourceID>           </personTermGroup>         </personTermGroupList>         <birthDateGroup>           <dateDisplayDate></dateDisplayDate>           <dateLatestYear></dateLatestYear>         </birthDateGroup>         <deathDateGroup>           <dateDisplayDate></dateDisplayDate>           <dateLatestYear></dateLatestYear>         </deathDateGroup>       </schema>   </import> </imports> It is possible that I am missing some required field. James D. Keeline
RM
Richard Millet
Tue, Jun 21, 2016 10:25 PM

Perhaps putting a transliteration into the default English term?  But this would require getting that transliteration from the SDCHM staff. Another option would be to use the Chinese?  Finally, how about not supplying the English term at all?  In other words, don't supply a "personTermGroup" element for the English.

On Jun 21, 2016, at 2:19 PM, James Keeline <james@keeline.commailto:james@keeline.com> wrote:

Thinking about this and recalling the data, I think that what can be occurring is that some authors are entered only as Chinese characters with no English equivalent.  As such, the first entry (English default because of my code) might be empty.  I'll find an example:

<imports> <import seq="130" service="Persons" type="Person"> <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common"> <inAuthority>54c6d674-5fc2-416a-9cc6</inAuthority> <shortIdentifier></shortIdentifier> <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name()'蔡開松'</refName> <personTermGroupList> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage> <termDisplayName></termDisplayName> <surName></surName> <foreName></foreName> <termSource>Cutter</termSource> <termSourceID>CHN50</termSourceID> </personTermGroup> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage> <termDisplayName>蔡開松</termDisplayName> <surName>蔡</surName> <foreName>開松</foreName> <termSource>Cutter</termSource> <termSourceID>CHN50</termSourceID> </personTermGroup> </personTermGroupList> <birthDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </birthDateGroup> <deathDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </deathDateGroup> </schema> </import> </import>

So, for this kind of entry, how should I handle it differently?

James D. Keeline


From: Richard Millet <richard.millet@lyrasis.orgmailto:richard.millet@lyrasis.org>
To: James Keeline <james@keeline.commailto:james@keeline.com>
Sent: Tuesday, June 21, 2016 1:35 PM
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

James,

It seems that some of the "termDisplayName" fields (a sub-element of "personTermGroup") are missing values.  Based on the error that you are reporting, it looks like the "termDisplayName" field requires a value.

Also the first "personTermGroup" element (there can be 1 or more of these) is the preferred term and therefore its "termDisplayName" should match the suffix of the "refName" that is between the single quote characters.

So, in short, I think your import XML needs to be updated/tweaked by adding "termDisplayName" values and verifying the "refName" values.

-Richard

p.s. Let's move this thread back onto the Talk list?


From: James Keeline <james@keeline.commailto:james@keeline.com>
Sent: Tuesday, June 21, 2016 12:46 PM
To: Richard Millet
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

I cleared the cache and cookies in Chrome as part of my process.  I did it again just now.  An empty search against Person >> Local Persons still generates the error:

We've encountered an error retrieving search results. Please try again:

Error parsing JSONNo displayNames found!

James D. Keeline


From: James Keeline <james@keeline.commailto:james@keeline.com<mailto:james@keeline.commailto:james@keeline.com>>
Sent: Tuesday, June 21, 2016 12:10 PM
To: Richard Millet
Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field

Now I need to work out the issue related to making an empty value search against Persons >> Local Persons which is returning an error at the bottom of the browser that refers to JSON processing.


I have about 720 persons imported via import service.  Here is a sample of the XML:

<?xml version="1.0" encoding="utf-8" ?> <imports> <import seq="3" service="Persons" type="Person"> <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common"> <inAuthority>26a93f56-f43f-4c1b-85ca</inAuthority> <shortIdentifier>chiangkaishek</shortIdentifier> <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name(chiangkaishek)'Chiang Kai-shek ?介石'</refName> <personTermGroupList> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage> <termDisplayName>Chiang Kai-shek</termDisplayName> <surName>Chiang</surName> <foreName>Kai-shek</foreName> <termSource></termSource> <termSourceID></termSourceID> </personTermGroup> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage> <termDisplayName>?介石</termDisplayName> <surName>?</surName> <foreName>介石</foreName> <termSource></termSource> <termSourceID></termSourceID> </personTermGroup> </personTermGroupList> <birthDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </birthDateGroup> <deathDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </deathDateGroup> </schema> </import> </imports>

It is possible that I am missing some required field.

James D. Keeline

Perhaps putting a transliteration into the default English term? But this would require getting that transliteration from the SDCHM staff. Another option would be to use the Chinese? Finally, how about not supplying the English term at all? In other words, don't supply a "personTermGroup" element for the English. On Jun 21, 2016, at 2:19 PM, James Keeline <james@keeline.com<mailto:james@keeline.com>> wrote: Thinking about this and recalling the data, I think that what can be occurring is that some authors are entered only as Chinese characters with no English equivalent. As such, the first entry (English default because of my code) might be empty. I'll find an example: <imports> <import seq="130" service="Persons" type="Person"> <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common"> <inAuthority>54c6d674-5fc2-416a-9cc6</inAuthority> <shortIdentifier></shortIdentifier> <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name()'蔡開松'</refName> <personTermGroupList> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage> <termDisplayName></termDisplayName> <surName></surName> <foreName></foreName> <termSource>Cutter</termSource> <termSourceID>CHN50</termSourceID> </personTermGroup> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(Author1465968644285)'Author'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage> <termDisplayName>蔡開松</termDisplayName> <surName>蔡</surName> <foreName>開松</foreName> <termSource>Cutter</termSource> <termSourceID>CHN50</termSourceID> </personTermGroup> </personTermGroupList> <birthDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </birthDateGroup> <deathDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </deathDateGroup> </schema> </import> </import> So, for this kind of entry, how should I handle it differently? James D. Keeline ________________________________ From: Richard Millet <richard.millet@lyrasis.org<mailto:richard.millet@lyrasis.org>> To: James Keeline <james@keeline.com<mailto:james@keeline.com>> Sent: Tuesday, June 21, 2016 1:35 PM Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field James, It seems that some of the "termDisplayName" fields (a sub-element of "personTermGroup") are missing values. Based on the error that you are reporting, it looks like the "termDisplayName" field requires a value. Also the first "personTermGroup" element (there can be 1 or more of these) is the preferred term and therefore its "termDisplayName" should match the suffix of the "refName" that is between the single quote characters. So, in short, I think your import XML needs to be updated/tweaked by adding "termDisplayName" values and verifying the "refName" values. -Richard p.s. Let's move this thread back onto the Talk list? ________________________________________ From: James Keeline <james@keeline.com<mailto:james@keeline.com>> Sent: Tuesday, June 21, 2016 12:46 PM To: Richard Millet Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field I cleared the cache and cookies in Chrome as part of my process. I did it again just now. An empty search against Person >> Local Persons still generates the error: We've encountered an error retrieving search results. Please try again: Error parsing JSONNo displayNames found! James D. Keeline ________________________________________ From: James Keeline <james@keeline.com<mailto:james@keeline.com><mailto:james@keeline.com<mailto:james@keeline.com>>> Sent: Tuesday, June 21, 2016 12:10 PM To: Richard Millet Subject: Re: [Talk] Dynasties (associated concepts) and Local storage locations defined but not available on AJAX for field Now I need to work out the issue related to making an empty value search against Persons >> Local Persons which is returning an error at the bottom of the browser that refers to JSON processing. _____ I have about 720 persons imported via import service. Here is a sample of the XML: <?xml version="1.0" encoding="utf-8" ?> <imports> <import seq="3" service="Persons" type="Person"> <schema xmlns:persons_common="http://collectionspace.org/services/person" name="persons_common"> <inAuthority>26a93f56-f43f-4c1b-85ca</inAuthority> <shortIdentifier>chiangkaishek</shortIdentifier> <refName>urn:cspace:sdchm.bpoc.org:personauthorities:name(person):item:name(chiangkaishek)'Chiang Kai-shek ?介石'</refName> <personTermGroupList> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(eng)'English'</termLanguage> <termDisplayName>Chiang Kai-shek</termDisplayName> <surName>Chiang</surName> <foreName>Kai-shek</foreName> <termSource></termSource> <termSourceID></termSourceID> </personTermGroup> <personTermGroup> <termType>urn:cspace:sdchm.bpoc.org:vocabularies:name(persontermtype):item:name(artist)'Artist'</termType> <termLanguage>urn:cspace:sdchm.bpoc.org:vocabularies:name(languages):item:name(zho)'Chinese'</termLanguage> <termDisplayName>?介石</termDisplayName> <surName>?</surName> <foreName>介石</foreName> <termSource></termSource> <termSourceID></termSourceID> </personTermGroup> </personTermGroupList> <birthDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </birthDateGroup> <deathDateGroup> <dateDisplayDate></dateDisplayDate> <dateLatestYear></dateLatestYear> </deathDateGroup> </schema> </import> </imports> It is possible that I am missing some required field. James D. Keeline