Jira issue: https://jira.duraspace.org/browse/DS-3611 and my tiny PR:
https://github.com/DSpace/DSpace/pull/1764

I've said thanks privately, but let me just say publicly that this lookup
is really cool, and exactly what our PI was asking for. Thank you so much,
Luigi Andrea, for sharing it with us. Please do consider contributing it
for DSpace 7.0.

--Hardy

On Fri, Jun 2, 2017 at 3:54 PM, Hardy Pottinger <[email protected]>
wrote:

> Oh, it's not handlebars, it's in the XSLT, here it is in Mirage2
>
> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-
> xmlui-mirage2/src/main/webapp/xsl/aspect/general/choice-
> authority-control.xsl#L74-L82
>
> That probably worked fine when our IDs were integers.
>
> On Fri, Jun 2, 2017 at 3:27 PM, Hardy Pottinger <[email protected]
> > wrote:
>
>> Here is the error:
>>
>> submit:305 Uncaught SyntaxError: Invalid or unexpected token
>>
>> line 305 is:
>>
>> <span 
>> id="aspect_submission_StepTransformer_field_dc_coverage_spatial_confidence_indicator"
>> class="ds-authority-confidence glyphicon btn-xs cf-blank "
>> title="untranslated">&nbsp;</span><input class="ds-authority-value
>> hidden " type="text" readonly name="dc_coverage_spatial_authority"
>> id="aspect_submission_StepTransformer_field_dc_coverage_spatial_authority"
>> value="" onChange="javascript: return DSpaceAuthorityOnChange(this,
>> 'aspect_submission_StepTransformer_field_dc_coverage_
>> spatial_confidence','');"><input type="hidden"
>> class="ds-authority-confidence-input" name="dc_coverage_spatial_confidence"
>> id="aspect_submission_StepTransformer_field_dc_coverage_spatial_confidence"
>> value="blank"><input class="pull-right ds-button-field btn btn-default
>> ds-add-button" name="lookup_dc_coverage_spatial" type="button"
>> value="Lookup" onClick="javascript:DSpaceChoi
>> ceLookup('/xmlui/admin/lookup', 'dc_coverage_spatial',
>> 'aspect_submission_StepTransformer_div_submit-describe',
>> 'dc_coverage_spatial', 'dc_coverage_spatial_authority',
>> 'aspect_submission_StepTransformer_field_dc_coverage_spatial_confidence_indicator',
>> 72af0269-cc2c-4b0b-ae19-4a47e5aa7c72, false, false);">
>>
>> And now that I've tried to parse through that line, I think I see it: the
>> UUID (72af0269....) is not quoted. I suspect this is from a Handlebars
>> template, I'll look and see.
>>
>> I'll just mention that DS-3387/DSPR#1573 addressed a similar problem
>> with the ORCID lookup. So... perhaps a template was missed in that fix?
>>
>> --Hardy
>>
>>
>> On Fri, Jun 2, 2017 at 1:47 PM, Hardy Pottinger <
>> [email protected]> wrote:
>>
>>> Another point of data: it looks like there is a Javascript error on this
>>> form, I'll investigate a bit more, and will copy/paste the error if I can't
>>> figure it out.
>>>
>>> On Thu, Jun 1, 2017 at 5:21 PM, Hardy Pottinger <
>>> [email protected]> wrote:
>>>
>>>> Hi, I ran into a problem after configuring this plugin. Here's what I
>>>> saw in the dspace.log file
>>>>
>>>> 2017-06-01 13:00:45,228 ERROR org.dspace.core.LegacyPluginServiceImpl
>>>> @ No named plugins found for interface=org.dspace.content.a
>>>> uthority.ChoiceAuthority
>>>> 2017-06-01 13:00:45,229 WARN  org.dspace.core.LegacyPluginServiceImpl
>>>> @ Cannot find named plugin for 
>>>> interface=org.dspace.content.authority.ChoiceAuthority,
>>>> name="TGNAuthority"
>>>> 2017-06-01 13:00:45,229 WARN  
>>>> org.dspace.content.authority.ChoiceAuthorityServiceImpl
>>>> @ Skipping invalid configuration for choices.plugin.dc.coverage.spatial
>>>> because named plugin not found: TGNAuthority
>>>>
>>>> I had forgotten a bit of configuration farther up in dspace.cfg, I set
>>>> this up:
>>>>
>>>> #####  Authority Control Settings  #####
>>>> plugin.named.org.dspace.content.authority.ChoiceAuthority = \
>>>> org.dspace.content.authority.TGNAuthority = TGNAuthority, \
>>>>
>>>> and now the form loads correctly. However, even though I have a lookup
>>>> button on the form, it does not appear to work, and there are no errors in
>>>> dspace.log. Any ideas?
>>>>
>>>> --Hardy
>>>>
>>>>
>>>> On Thu, Jun 1, 2017 at 9:12 AM, Hardy Pottinger <
>>>> [email protected]> wrote:
>>>>
>>>>> Thank you so much! I can confirm that this version of the TGN & Getty
>>>>> Authority plugin code compiles cleanly with our fork of DSpace 6x. I'm
>>>>> looking forward to configuring it and testing it out later this morning.
>>>>>
>>>>> If you don't mind my suggesting it, this would make an excellent
>>>>> addition to DSpace 7.0, please do consider submitting a pull request for 
>>>>> it.
>>>>>
>>>>> --Hardy
>>>>>
>>>>> On Thu, Jun 1, 2017 at 7:44 AM, Pascarelli Luigi Andrea <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Dear Hardy,
>>>>>>
>>>>>> I'm working to the migration of DSpace-CRIS 6 based on DSpace 6.x, it
>>>>>> is an unstable version and I kept private the branch.
>>>>>>
>>>>>> Maybe time has come to share with community...
>>>>>>
>>>>>> Here the link to the GettyAuthority on DSpace-CRIS 6.x:
>>>>>> https://github.com/4Science/DSpace/blob/dspace-6_x_x-cris/ds
>>>>>> pace-api/src/main/java/org/dspace/content/authority/GettyAut
>>>>>> hority.java
>>>>>> Thank you very much.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Luigi Andrea
>>>>>>
>>>>>>
>>>>>> Il 01/06/2017 02:17, Hardy Pottinger ha scritto:
>>>>>>
>>>>>> Thanks, Luigi Andrea! I have looked into porting this over to our
>>>>>> 6x-based repository, however I can see I need to make some modifications,
>>>>>> since the getMatches method has changed from 5x to 6x:
>>>>>>
>>>>>> https://github.com/4Science/DSpace/blob/dspace-5_x_x-cris/ds
>>>>>> pace-api/src/main/java/org/dspace/content/authority/GettyAut
>>>>>> hority.java#L126
>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgithub.com%2F4Science%2FDSpace%2Fblob%2Fdspace-5_x_x-cris%2Fdspace-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fdspace%2Fcontent%2Fauthority%2FGettyAuthority.java%23L126&e=8ef37f15&h=a807999f&f=n>
>>>>>>
>>>>>>
>>>>>> Since I'm a very lazy developer, I will ask before I start on the
>>>>>> migration process if you have already migrated this code to 6x?
>>>>>>
>>>>>>
>>>>>> --Hardy
>>>>>>
>>>>>> On Wed, May 31, 2017 at 6:12 AM, Pascarelli Luigi Andrea <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> For our GLAM application based on DSpace-CRIS (
>>>>>>> https://dspace-glam.4science.it/
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fdspace-glam.4science.it%2F&e=8ef37f15&h=f853c36b&f=n>)
>>>>>>> we have developed and released on github the Getty TGN integration using
>>>>>>> the authority framework, please see
>>>>>>>
>>>>>>> https://github.com/4Science/DSpace/blob/dspace-5_x_x-cris/ds
>>>>>>> pace-api/src/main/java/org/dspace/content/authority/GettyAut
>>>>>>> hority.java
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgithub.com%2F4Science%2FDSpace%2Fblob%2Fdspace-5_x_x-cris%2Fdspace-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fdspace%2Fcontent%2Fauthority%2FGettyAuthority.java&e=8ef37f15&h=e0e820c6&f=n>
>>>>>>>
>>>>>>> https://github.com/4Science/DSpace/blob/dspace-5_x_x-cris/ds
>>>>>>> pace-api/src/main/java/org/dspace/content/authority/TGNAutho
>>>>>>> rity.java
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgithub.com%2F4Science%2FDSpace%2Fblob%2Fdspace-5_x_x-cris%2Fdspace-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fdspace%2Fcontent%2Fauthority%2FTGNAuthority.java&e=8ef37f15&h=c8b0287a&f=n>
>>>>>>>
>>>>>>> Hope this helps.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Luigi Andrea
>>>>>>> Il 31/05/2017 03:43, Hardy Pottinger ha scritto:
>>>>>>>
>>>>>>> I'm working on a repository for which our PI would like us to use
>>>>>>> the Getty TGN (Getty Thesaurus of Geographic Names) [1] as part of the
>>>>>>> submission form, for dc.coverage.spatial. I will probably end up using a
>>>>>>> small subset of the TGN, because the XML for the complete set weighs in 
>>>>>>> at
>>>>>>> 160MB. However, that's a big job in an of itself... so... I'm wondering 
>>>>>>> if
>>>>>>> either anyone has done something similar, *or* have you written a 
>>>>>>> plugin to
>>>>>>> use the online version of the TGN? If you have, would you mind sharing 
>>>>>>> your
>>>>>>> work? We'd be ever so grateful. Thanks!
>>>>>>>
>>>>>>> On a related note, I bet we could fill out the example controlled
>>>>>>> vocabularies configuration for DSpace [2] with many more examples. That
>>>>>>> would be a great contribution to DSpace 7, and it's not dependent on a 
>>>>>>> UI,
>>>>>>> so it would be a great thing to contribute *right now*.
>>>>>>>
>>>>>>> --Hardy
>>>>>>>
>>>>>>> [1] https://www.getty.edu/research/tools/vocabularies/tgn/index.html
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.getty.edu%2Fresearch%2Ftools%2Fvocabularies%2Ftgn%2Findex.html&e=8ef37f15&h=82682352&f=n>
>>>>>>> [2] https://github.com/DSpace/DSpace/tree/master/dspace/conf
>>>>>>> ig/controlled-vocabularies
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgithub.com%2FDSpace%2FDSpace%2Ftree%2Fmaster%2Fdspace%2Fconfig%2Fcontrolled-vocabularies&e=8ef37f15&h=7a8e5d88&f=n>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "DSpace Technical Support" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to [email protected].
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> Visit this group at https://groups.google.com/group/dspace-tech
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fdspace-tech&e=8ef37f15&h=a88b793e&f=n>
>>>>>>> .
>>>>>>> For more options, visit https://groups.google.com/d/optout
>>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&e=8ef37f15&h=4ae73911&f=n>
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato
>>>>>>> non infetto.
>>>>>>> Clicca qui per segnalarlo come spam.
>>>>>>> <https://urlsand.esvalabs.com/?u=http%3A%2F%2Fesva1.business-e.it%2Fcgi-bin%2Flearn-msg.cgi%3Fid%3D26123400EC.A5D98&e=8ef37f15&h=989dda34&f=n>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Luigi Andrea Pascarelli
>>>>>>>
>>>>>>> DSpace and DSpace-CRIS Committer
>>>>>>>
>>>>>>> 4Science,  www.4science.it 
>>>>>>> <https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.4science.it&e=8ef37f15&h=e658e070&f=n>
>>>>>>>
>>>>>>> office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
>>>>>>> tel: +39 333 934 1782 <+39%20333%20934%201782>
>>>>>>> skype: l_a_p82
>>>>>>> linkedin: luigiandreapascarelli
>>>>>>>
>>>>>>> an Itway Group Company
>>>>>>> Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, 
>>>>>>> U.A.Emirates
>>>>>>>
>>>>>>> ====================================
>>>>>>> Save a tree. Don't print this e-mail unless it's really necessary.
>>>>>>>
>>>>>>> DISCLAIMER: The information contained in this message is confidential, 
>>>>>>> can be legally protected by local Laws,
>>>>>>> and must be exclusively used by the recipient. The publication, use, 
>>>>>>> distribution, printing or unauthorized copy
>>>>>>> of the content of this message is strictly forbidden and it can be 
>>>>>>> illegal. If you received this message by mistake,
>>>>>>> please destroy it and notify it to the sender.
>>>>>>>
>>>>>>> --  This message has been checked by Libra ESVA
>>>>>>> <http://www.libraesva.com/> and is believed to be clean.
>>>>>>>
>>>>>> -- You received this message because you are subscribed to the Google
>>>>>> Groups "DSpace Technical Support" group. To unsubscribe from this group 
>>>>>> and
>>>>>> stop receiving emails from it, send an email to
>>>>>> [email protected]. To post to this group,
>>>>>> send email to [email protected]. Visit this group at
>>>>>> https://groups.google.com/group/dspace-tech
>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fdspace-tech&e=8ef37f15&h=a88b793e&f=n>.
>>>>>> For more options, visit https://groups.google.com/d/optout
>>>>>> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&e=8ef37f15&h=4ae73911&f=n>.
>>>>>>
>>>>>>
>>>>>> -- Questo messaggio e' stato analizzato con Libra ESVA ed e'
>>>>>> risultato non infetto. Clicca qui per segnalarlo come spam.
>>>>>> <http://esva1.business-e.it/cgi-bin/learn-msg.cgi?id=485E9400FD.A4D8A>
>>>>>>
>>>>>> --
>>>>>> Luigi Andrea Pascarelli
>>>>>>
>>>>>> DSpace and DSpace-CRIS Committer
>>>>>>
>>>>>> 4Science,  www.4science.it
>>>>>>
>>>>>> office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
>>>>>> tel: +39 333 934 1782 <+39%20333%20934%201782>
>>>>>> skype: l_a_p82
>>>>>> linkedin: luigiandreapascarelli
>>>>>>
>>>>>> an Itway Group Company
>>>>>> Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, 
>>>>>> U.A.Emirates
>>>>>>
>>>>>> ====================================
>>>>>> Save a tree. Don't print this e-mail unless it's really necessary.
>>>>>>
>>>>>> DISCLAIMER: The information contained in this message is confidential, 
>>>>>> can be legally protected by local Laws,
>>>>>> and must be exclusively used by the recipient. The publication, use, 
>>>>>> distribution, printing or unauthorized copy
>>>>>> of the content of this message is strictly forbidden and it can be 
>>>>>> illegal. If you received this message by mistake,
>>>>>> please destroy it and notify it to the sender.
>>>>>>
>>>>>> --
>>>>>> This message has been checked by Libra ESVA
>>>>>> <http://www.libraesva.com/> and is believed to be clean.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to