-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authors and affiliation lookup examples added #9
Conversation
@Kris-LIBIS thanks! I haven't had a chance to dig into this but on a related note, do you think it's possible to search ROR to populate author affiliations? This was asked about here: https://groups.google.com/g/dataverse-community/c/498ElEzOBcg/m/Mn9-JC29DgAJ |
@pdurbin It sure would. Put a search button after the affiliation input instead of the name field. Perform a query on ror.org instead of the 'covoc' server/solr index. Then some changes (mostly simplifications) to the copy-and-paste function is all that is needed. It could be another and probably simpler example of this feature. |
@pdurbin I added the affiliation example to this PR as well. Should be pretty straightforward to implement and try out. |
@Kris-LIBIS thanks! I'm hosting the .js file locally with Python's built in web server so I changed the following line...
... before loading it into Maybe we can talk in https://chat.dataverse.org sometime to figure this out. Thanks for the example! |
@pdurbin It worked for me, but there may be something I missed in the configuration. If you do not see the search icon next to the affiliation input field, you may want to check out your browser developer mode (F12) and see which error messages are printed on the console when you reload the page and enter the metadata editor. |
@Kris-LIBIS thanks for all the help today! The version as of 376651d doesn't work for me but if I put the document.ready back in like before it seems to work. Please see affiliation.js.txt or the diff below:
|
I have undone that change. It did not help me with the CORS errors anyway. I realize now that jquery is not my issue. |
Note: if you want to apply the affiliation lookup also to the Contacts affiliation, in the javascript file just change the definition of authorSelector into: |
Recent changes fixes a problem I noticed in our own installation. The JavaScript code would prevent the Dataset Template drop-down not to open. This is fixed in the patch. |
Discussion in IQSS/dataverse#6640 (comment) - merged now since all of these are examples. |
As requested I have added files to illustrate how we implemented the authors lookup at KU Leuven. Currently a config file and JavaScript file are added along with some documentation in the examples directory.