-
Notifications
You must be signed in to change notification settings - Fork 16
Improvements to ORCID and ROR support #22
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
Merged
Merged
Changes from 32 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
365d8bb
fix sorting, quiet logging
qqmyers 2fd7fd0
Multiple changes to support parent/managed fields, fixes/improvements
qqmyers 675f68f
fix popup on display element
qqmyers f385081
avoid changing other entries, handle 0 length input
qqmyers 17e0682
Fix author non-ORCID case
qqmyers eca6545
Cleanup logging
qqmyers 490fe60
Add logo, remove email popup
qqmyers 816d221
Add logo, link
qqmyers b25241c
accidentally dropped hide
qqmyers f96669b
add class for styling
qqmyers da1a286
remove spaces - use styling
qqmyers 47fb0f6
fix url add target/nofollow
qqmyers 82afc2d
blank target on input side
qqmyers c7c1f6e
Add regex test before calling ORCID, reformat
qqmyers 368a971
fix plain text handling
qqmyers 6880162
handle id field as cvv select
qqmyers 670bdf6
make only the ORCID logo a link
qqmyers b85d7eb
make only ROR logo a link
qqmyers 01dba68
Update README.md
qqmyers 964b0f3
Merge pull request #1 from QualitativeDataRepository/qqmyers-patch-1
qqmyers c2d3d9a
doc updates
qqmyers aa714a4
fix links
qqmyers 38af6c2
use h3
qqmyers 7aaebc1
a11y fixes
qqmyers e9cd78e
missed tabindex change
qqmyers 8e7fb7c
fit logo inside input display line
qqmyers 5784965
a11y fixes for people inputs, minor cleanup
qqmyers aae79e4
add link to 6.4 PR and ORCID/ROR and LC scripts
qqmyers 505b488
Merge branch 'main' into QDRMain
qqmyers b5390e7
document a11y changes
qqmyers 214cdea
ally changes for local_contexts
qqmyers de011d2
add missing json examples, move older ones to ./demo, fix typos
qqmyers 0aaa0a0
swapped names
qqmyers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| ## Dataverse Author Field Example | ||
|
|
||
| This example manages the author field (the name, idType, Identifier, and affiliation child fields), providing (ORCID)[https://orcid/org] and (ROR)[https://ror.org] lookup while also allowing free text entries (for entities that don't have these identifiers) and manual entry of alternate identifiers for authors. | ||
|
|
||
| This example requires the changes being added to Dataverse in (PR #10712)[https://github.com/IQSS/dataverse/pull/10712] expected in v6.4. | ||
|
|
||
| This example requires several files: | ||
|
|
||
| - examples/config/authorsOrcidAndRor.json : the configuration file that needs to be uploaded in the :CVocConf setting | ||
|
|
||
| - scripts/people.js : the Javascript file that provides ORCID support, | ||
| - scripts/ror.js : the Javascript file that provides ROR support, | ||
| - scripts/cvocutil.js : a Javascript file with common methods used by both scripts, | ||
|
|
||
| (These scripts also use jquery and select2 which are already included in Dataverse). | ||
|
|
||
| ### How to install: | ||
|
|
||
| Minimal: | ||
|
|
||
| - load the authorsOrcidAndRor.json file in the :CVocConf setting using the [Dataverse API](https://guides.dataverse.org/en/latest/installation/config.html?highlight=cvocconf). e.g. using curl: `curl -X PUT --upload-file authorsOrcidAndRor.json http://localhost:8080/api/admin/settings/:CVocConf`. | ||
|
|
||
| - Alternately, add the two JSON Objects in the top level JSON Array in authorsOrcidAndRor.json to you existing :CVocConf setting file (for installations that are deploying other CVoc scripts already) | ||
|
|
||
| - refresh your browser page. That's it. You should see displays like those shown in this repo's README file. | ||
|
|
||
| Production: | ||
| - Also copy the three script files to a local website and adjust the URLs in authorsOrcidAndRor.json that invoke them to use your local copies. This assures that changes in this repository will not automatically be used on your site. | ||
| - Adapt your CSS styling to improve how well the interfaces created by the script match your custom style. | ||
|
|
||
| ### Interesting Features | ||
| - Searches can be done by person/organization name, but can also use other metadata, e.g. a person's email address or an originization in their employment or education history in their ORCID profile, or the acronym of an organization (entry must be at least 3 letters) | ||
| - Once an ORCID or ROR has been used in a given browser, that entry will appear at the top of the list as soon as it is one of the results returned from the service. This makes it easier to find a commonly used entry when there are similar ones. | ||
| - The people.js script understands that Dataverse has separate idType and Identifier fields for authors. When a free text entry is added as a name (i.e. there is no associated ORCID), the script will restore the idType and Identifier subfields so that an Identifier of some other type that Dataverse supports can be entered. | ||
| - Both ORCID and ROR icons are displayed with entries. They link to the person's/organization's page at ORCID/ROR. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.