<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rwf1v07%40soton.ac.uk</id>
	<title>EPrints Documentation - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rwf1v07%40soton.ac.uk"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/Special:Contributions/Rwf1v07@soton.ac.uk"/>
	<updated>2026-06-10T21:26:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=COAR_Notify_Overview&amp;diff=16240</id>
		<title>COAR Notify Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=COAR_Notify_Overview&amp;diff=16240"/>
		<updated>2024-05-16T11:49:50Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: Created page with &amp;quot;Initial work on COAR Notify integration for EPrints is taking place at:  https://github.com/eprints/eprints3.4/pull/387 (Signposting)  https://github.com/eprintsug/coar_notify...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Initial work on COAR Notify integration for EPrints is taking place at:&lt;br /&gt;
&lt;br /&gt;
https://github.com/eprints/eprints3.4/pull/387 (Signposting)&lt;br /&gt;
&lt;br /&gt;
https://github.com/eprintsug/coar_notify (COAR Notify plugin)&lt;br /&gt;
&lt;br /&gt;
https://github.com/eprintsug/notifications (Notifications UI)&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15361</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15361"/>
		<updated>2022-04-13T12:08:31Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* ORCID Support Advance */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==First orcid.org Connection==&lt;br /&gt;
When a user first connects their repository account to their ORCID account, and their ORCID is set in their user profile as a result, the repository does a search for all the eprints in the repository where that user's email is associated with one of ORCID contributor fields (i.e. creators or editors). These eprints are then recommitted, updating the ORCID contributor fields with the user's ORCID.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Items that have been exported to an orcid.org profile, may also be removed using this screen, via the ''Remove from orcid.org profile'' button.&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with an ORCID'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile, as well as the ORCID token expiry date.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_advance_user_report.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===ORCID Log Dataset (v1.9.4+)===&lt;br /&gt;
A new ORCID log dataset is added to the repository to store details of communications between the repository and orcid.org when users first connect their accounts. The main purpose of this dataset is twofold:&lt;br /&gt;
&lt;br /&gt;
* To store the state when making the OAuth connection, to ensure the response we get back has a matching state&lt;br /&gt;
* To store the repository permissions that are not explicitly shared with orcid.org, namely the permission to allow the repository to automatically update orcid.org every time a new item is published or a live item is updated.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15360</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15360"/>
		<updated>2022-04-13T11:58:45Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* For Developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Items that have been exported to an orcid.org profile, may also be removed using this screen, via the ''Remove from orcid.org profile'' button.&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with an ORCID'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile, as well as the ORCID token expiry date.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_advance_user_report.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===ORCID Log Dataset (v1.9.4+)===&lt;br /&gt;
A new ORCID log dataset is added to the repository to store details of communications between the repository and orcid.org when users first connect their accounts. The main purpose of this dataset is twofold:&lt;br /&gt;
&lt;br /&gt;
* To store the state when making the OAuth connection, to ensure the response we get back has a matching state&lt;br /&gt;
* To store the repository permissions that are not explicitly shared with orcid.org, namely the permission to allow the repository to automatically update orcid.org every time a new item is published or a live item is updated.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15359</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15359"/>
		<updated>2022-04-13T11:51:00Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Users with ORCIDs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Items that have been exported to an orcid.org profile, may also be removed using this screen, via the ''Remove from orcid.org profile'' button.&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with an ORCID'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile, as well as the ORCID token expiry date.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_advance_user_report.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Orcid_advance_user_report.jpg&amp;diff=15358</id>
		<title>File:Orcid advance user report.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Orcid_advance_user_report.jpg&amp;diff=15358"/>
		<updated>2022-04-13T11:50:48Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15357</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15357"/>
		<updated>2022-04-13T11:48:02Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Export to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Items that have been exported to an orcid.org profile, may also be removed using this screen, via the ''Remove from orcid.org profile'' button.&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15356</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15356"/>
		<updated>2022-04-13T11:46:53Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Export to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15355</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15355"/>
		<updated>2022-04-13T11:46:45Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Export to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in one of the contributor fields (e.g. creator, editor, etc.). Items may also be filtered based on when they were last modified.&lt;br /&gt;
&lt;br /&gt;
[[File:export_to_orcid.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Export_to_orcid.jpg&amp;diff=15354</id>
		<title>File:Export to orcid.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Export_to_orcid.jpg&amp;diff=15354"/>
		<updated>2022-04-13T11:44:56Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15353</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15353"/>
		<updated>2022-04-13T09:58:34Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Import from orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented. Users can also filter which records appear by publication date, to help ensure only ORCID works from the relevant period are shown.&lt;br /&gt;
&lt;br /&gt;
[[File:import_from_orcid.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Import_from_orcid.jpg&amp;diff=15352</id>
		<title>File:Import from orcid.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Import_from_orcid.jpg&amp;diff=15352"/>
		<updated>2022-04-13T09:57:34Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15351</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15351"/>
		<updated>2022-04-13T09:53:41Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Connecting to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.jpg|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:authorize_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Authorize_orcid.jpg&amp;diff=15350</id>
		<title>File:Authorize orcid.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Authorize_orcid.jpg&amp;diff=15350"/>
		<updated>2022-04-13T09:53:19Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15349</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15349"/>
		<updated>2022-04-13T09:51:31Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Connecting to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid_screen.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Connect_to_orcid_screen.jpg&amp;diff=15348</id>
		<title>File:Connect to orcid screen.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Connect_to_orcid_screen.jpg&amp;diff=15348"/>
		<updated>2022-04-13T09:50:40Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Connect_to_orcid.jpg&amp;diff=15347</id>
		<title>File:Connect to orcid.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Connect_to_orcid.jpg&amp;diff=15347"/>
		<updated>2022-04-13T09:48:31Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15346</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15346"/>
		<updated>2022-04-13T09:48:01Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Connecting to orcid.org */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Connect to ORCID®'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:connect_to_orcid.jpg|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15345</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15345"/>
		<updated>2022-04-12T13:51:00Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
*Accessibility fixes&lt;br /&gt;
&lt;br /&gt;
*Updated text for the static about page with clearer details about the permissions requests&lt;br /&gt;
&lt;br /&gt;
*New intro paragraphs for the import/export screens&lt;br /&gt;
&lt;br /&gt;
*Items exported to an orcid.org profile can now be removed from the orcid.org profile via the Export to ORCID screen&lt;br /&gt;
&lt;br /&gt;
*Bespoke mapping for ORCID work types to eprint types (rather than just reverse the eprint type to work type mapping)&lt;br /&gt;
&lt;br /&gt;
*Add token expiry to ORCID permissions report&lt;br /&gt;
&lt;br /&gt;
*Import screen checks the review queue for potential duplicate items, not just the live archive&lt;br /&gt;
&lt;br /&gt;
*Refactor fields ORCID changes are applied to, so they may be defined in a config array, rather than arbitrarily only applying ORCID related changes to creator/editor fields.&lt;br /&gt;
&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15343</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15343"/>
		<updated>2022-04-12T10:10:02Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v2.0'''&lt;br /&gt;
&lt;br /&gt;
Accessibility fixes through additional of alt text to images. &lt;br /&gt;
&lt;br /&gt;
Refactor application of ORCID field to a list of contributor fields, rather than arbitrarily hardcoding implementation for creators/editors.&lt;br /&gt;
&lt;br /&gt;
Additional Editors with ORCID report.&lt;br /&gt;
&lt;br /&gt;
Update logo to use svg version of image.&lt;br /&gt;
&lt;br /&gt;
Merge phrases into a single file.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
'''Currently only available via &amp;quot;auto-exports&amp;quot; branch at https://github.com/eprints/orcid_support_advance/tree/auto-exports'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15033</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15033"/>
		<updated>2022-03-14T16:31:57Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.9.4'''&lt;br /&gt;
&lt;br /&gt;
'''Currently only available via &amp;quot;auto-exports&amp;quot; branch at https://github.com/eprints/orcid_support_advance/tree/auto-exports'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15032</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15032"/>
		<updated>2022-03-14T15:48:09Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.9.2'''&lt;br /&gt;
&lt;br /&gt;
'''Currently only available via &amp;quot;auto-exports&amp;quot; branch at https://github.com/eprints/orcid_support_advance/tree/auto-exports'''&lt;br /&gt;
&lt;br /&gt;
*Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
*Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
*Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
*Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
*New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
*Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
*Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
*When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
*Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
*When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
*CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
*Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
*Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
*Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
*Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
*Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
*Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
*Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
*Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15031</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15031"/>
		<updated>2022-03-14T15:47:08Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.9.2'''&lt;br /&gt;
&lt;br /&gt;
'''Currently only available via &amp;quot;auto-exports&amp;quot; branch at https://github.com/eprints/orcid_support_advance/tree/auto-exports'''&lt;br /&gt;
&lt;br /&gt;
Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15030</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=15030"/>
		<updated>2022-03-14T15:46:44Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.9.2'''&lt;br /&gt;
&lt;br /&gt;
***Currently only available via &amp;quot;auto-exports&amp;quot; branch at https://github.com/eprints/orcid_support_advance/tree/auto-exports ***&lt;br /&gt;
&lt;br /&gt;
Configurable date field used when filtering results on the import screen (e.g. filter by publication date rather than last modified date)&lt;br /&gt;
&lt;br /&gt;
Allow name mismatches to be flagged to prevent them from re-appearing in the Name Mismatch report&lt;br /&gt;
&lt;br /&gt;
Default to using GRID as the institution identifier source as opposed to RINGGOLD&lt;br /&gt;
&lt;br /&gt;
Additional new auto-update permission subfield which when checked adds eprints to a user's connected ORCID profile when those eprints are published in the repository's live archive&lt;br /&gt;
&lt;br /&gt;
New revoke call to ensure any current ORCID permissions are removed before updating with new permissions&lt;br /&gt;
&lt;br /&gt;
Updated ORCID badge icon to better conform with ORCID brand guidelines&lt;br /&gt;
&lt;br /&gt;
Additional ORCID Log dataset to save state during the OAuth authentication process, and save repository based permissions.&lt;br /&gt;
&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13897</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13897"/>
		<updated>2021-11-08T14:38:44Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Document DOIs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
In order to enable this functionality your repository must meet the following requirements:&lt;br /&gt;
# Support document landing pages (see  for further details)&lt;br /&gt;
# Define a document field for storing newly minted DOIs and specify the name of this field in the DataCite DOI configuration&lt;br /&gt;
# Have the document_dois configuration flag enabled.&lt;br /&gt;
&lt;br /&gt;
The '''document_dois''' flag and field name can be configured in '''z_datacitedoi.pl'''.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# flag to indicate if this repository is able to coin dois for documents (off by default)&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{document_dois} = 1;&lt;br /&gt;
&lt;br /&gt;
# which fields to use for the doi&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{eprintdoifield} = &amp;quot;id_number&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{documentdoifield} = &amp;quot;id_number&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly an '''id_number''' field can be defined in '''document_fields.pl''' or elsewhere in the repository configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{fields}-&amp;gt;{document} = [&lt;br /&gt;
    {&lt;br /&gt;
        name =&amp;gt; &amp;quot;id_number&amp;quot;,&lt;br /&gt;
        type =&amp;gt; &amp;quot;text&amp;quot;,&lt;br /&gt;
        render_value =&amp;gt; 'EPrints::Extras::render_possible_doi',&lt;br /&gt;
    },&lt;br /&gt;
];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;br /&gt;
&lt;br /&gt;
=Document Landing Pages=&lt;br /&gt;
The DataCite DOI plugin supports minting DOIs for documents uploaded to eprint records, however all DOIs must resolve to a landing page however and so in order to enable this your repository needs to support document landing pages. The following code snippets illustrate how to implement document landing pages in EPrints.&lt;br /&gt;
&lt;br /&gt;
First we need a URL rewrite trigger to catch the URLs which should resolve to the landing page. The following needs to be added to the eprints or archives' configuration files, e.g. '''lib/cfg.d/doc_landing_pages.pl'''. We can also define a flag here for plugins to check to see if document landing pages are enabled on this repository.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# configuration flag used to check if document landing pages are enabled on this repository&lt;br /&gt;
$c-&amp;gt;{doc_landing_pages_enabled} = 1;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;add_trigger( EP_TRIGGER_URL_REWRITE, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my( $uri, $rc, $request ) = @args{ qw( uri return_code request ) };&lt;br /&gt;
&lt;br /&gt;
    # matches https://myrepo.ac.uk/document/&amp;lt;doc_id&amp;gt;&lt;br /&gt;
    if( defined $uri &amp;amp;&amp;amp; ($uri =~ m#^/document/(.*)$# ) )&lt;br /&gt;
    {&lt;br /&gt;
        $request-&amp;gt;handler('perl-script');&lt;br /&gt;
        $request-&amp;gt;set_handlers(PerlResponseHandler =&amp;gt; [ 'EPrints::Apache::Document' ] );&lt;br /&gt;
        ${$rc} = EPrints::Const::OK;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return EP_TRIGGER_OK;&lt;br /&gt;
&lt;br /&gt;
}, priority =&amp;gt; 100 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This trigger uses a Document handler we need to implement, e.g. '''perl_lib/EPrints/Apache/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
######################################################################&lt;br /&gt;
#&lt;br /&gt;
# EPrints::Apache::Document&lt;br /&gt;
#&lt;br /&gt;
######################################################################&lt;br /&gt;
&lt;br /&gt;
package EPrints::Apache::Document;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use EPrints;&lt;br /&gt;
use EPrints::Apache::AnApache;&lt;br /&gt;
&lt;br /&gt;
sub handler&lt;br /&gt;
{&lt;br /&gt;
    my( $r ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $uri = $r-&amp;gt;uri;&lt;br /&gt;
&lt;br /&gt;
    if( $uri =~ m#^/document/(.*)$# )&lt;br /&gt;
    {&lt;br /&gt;
        my $repository = $EPrints::HANDLE-&amp;gt;current_repository;&lt;br /&gt;
        return DECLINED if( !defined $repository );&lt;br /&gt;
&lt;br /&gt;
        # Document landing pages enabled for this repository?&lt;br /&gt;
        return DECLINED unless( $repository-&amp;gt;config( &amp;quot;doc_landing_pages_enabled&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
        my $doc_id = $1;&lt;br /&gt;
&lt;br /&gt;
        my $doc_ds = $repository-&amp;gt;dataset( &amp;quot;document&amp;quot; );&lt;br /&gt;
        my $doc = $doc_ds-&amp;gt;dataobj( $doc_id );&lt;br /&gt;
&lt;br /&gt;
        if( defined $doc )&lt;br /&gt;
        {&lt;br /&gt;
            EPrints::ScreenProcessor-&amp;gt;process(&lt;br /&gt;
                session =&amp;gt; $repository,&lt;br /&gt;
                screenid =&amp;gt; &amp;quot;Document&amp;quot;,&lt;br /&gt;
                document =&amp;gt; $doc,&lt;br /&gt;
            );&lt;br /&gt;
            return OK;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return DECLINED;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The handler calls on an EPrints screen to generate the content for the landing page, e.g. '''perl_lib/EPrints/Plugin/Screen/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=head1 NAME&lt;br /&gt;
&lt;br /&gt;
EPrints::Plugin::Screen::Document&lt;br /&gt;
&lt;br /&gt;
=cut#&lt;br /&gt;
&lt;br /&gt;
package EPrints::Plugin::Screen::Document;&lt;br /&gt;
&lt;br /&gt;
use EPrints::Plugin::Screen;&lt;br /&gt;
&lt;br /&gt;
@ISA = ( 'EPrints::Plugin::Screen' );&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
sub new&lt;br /&gt;
{&lt;br /&gt;
    my( $class, %params ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $self = $class-&amp;gt;SUPER::new(%params);&lt;br /&gt;
&lt;br /&gt;
    return $self;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub properties_from&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;{processor}-&amp;gt;{eprint} = $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;get_eprint;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;SUPER::properties_from;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render_title&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $session = $self-&amp;gt;{session};&lt;br /&gt;
&lt;br /&gt;
    my $f = $self-&amp;gt;{session}-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $eprint = $self-&amp;gt;{processor}-&amp;gt;{eprint};&lt;br /&gt;
    my $doc = $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{eprint}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{session}-&amp;gt;html_phrase( &amp;quot;document_join&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    return $f;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $repo = $self-&amp;gt;{repository};&lt;br /&gt;
    my $doc =  $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    my $page = $repo-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $div = $repo-&amp;gt;make_element( &amp;quot;div&amp;quot;, class =&amp;gt; &amp;quot;doc_citation&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
    $div-&amp;gt;appendChild( $doc-&amp;gt;render_citation( &amp;quot;landing_page&amp;quot;, eprint =&amp;gt; $self-&amp;gt;{processor}-&amp;gt;{eprint} ) );&lt;br /&gt;
&lt;br /&gt;
    return( $div );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally, the screen uses a citation file to display the document landing page content in an easily customisable fashion, e.g. '''lib/defaultcfg/citations/document/landing_page.xml'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
    Full &amp;quot;abstract page&amp;quot; (or splash page or summary page, depending on your jargon) for an eprint.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite:citation xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xmlns:epc=&amp;quot;http://eprints.org/ep3/control&amp;quot; xmlns:cite=&amp;quot;http://eprints.org/ep3/citation&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the parent eprint citation --&amp;gt;&lt;br /&gt;
    &amp;lt;epc:print expr=&amp;quot;$eprint.citation_link('default')&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the document details in a similar fashion to eprint summary pages --&amp;gt;&lt;br /&gt;
    &amp;lt;table&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;epc:print expr=&amp;quot;$item.icon( 'HoverPreview', 'noNewWindow' )&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;epc:print expr=&amp;quot;$item.citation('default')&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;{$item.url()}&amp;quot; class=&amp;quot;ep_document_link&amp;quot;&amp;gt;&amp;lt;epc:phrase ref=&amp;quot;summary_page:download&amp;quot;/&amp;gt; (&amp;lt;epc:print expr=&amp;quot;$item.doc_size().human_filesize()&amp;quot; /&amp;gt;)&amp;lt;/a&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cite:citation&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13896</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13896"/>
		<updated>2021-11-08T14:38:26Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Document DOIs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
In order to enable this functionality your repository must meet the following requirements:&lt;br /&gt;
# Support document landing pages (see  for further details)&lt;br /&gt;
# Define a document field for storing newly minted DOIs and specify the name of this field in the DataCite DOI configuration&lt;br /&gt;
# Have the document_dois configuration flag enabled.&lt;br /&gt;
&lt;br /&gt;
The document_dois flag and field name can be configured in '''z_datacitedoi.pl'''.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# flag to indicate if this repository is able to coin dois for documents (off by default)&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{document_dois} = 1;&lt;br /&gt;
&lt;br /&gt;
# which fields to use for the doi&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{eprintdoifield} = &amp;quot;id_number&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{datacitedoi}{documentdoifield} = &amp;quot;id_number&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly an id_number field can be defined in document_fields.pl or elsewhere in the repository configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{fields}-&amp;gt;{document} = [&lt;br /&gt;
    {&lt;br /&gt;
        name =&amp;gt; &amp;quot;id_number&amp;quot;,&lt;br /&gt;
        type =&amp;gt; &amp;quot;text&amp;quot;,&lt;br /&gt;
        render_value =&amp;gt; 'EPrints::Extras::render_possible_doi',&lt;br /&gt;
    },&lt;br /&gt;
];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;br /&gt;
&lt;br /&gt;
=Document Landing Pages=&lt;br /&gt;
The DataCite DOI plugin supports minting DOIs for documents uploaded to eprint records, however all DOIs must resolve to a landing page however and so in order to enable this your repository needs to support document landing pages. The following code snippets illustrate how to implement document landing pages in EPrints.&lt;br /&gt;
&lt;br /&gt;
First we need a URL rewrite trigger to catch the URLs which should resolve to the landing page. The following needs to be added to the eprints or archives' configuration files, e.g. '''lib/cfg.d/doc_landing_pages.pl'''. We can also define a flag here for plugins to check to see if document landing pages are enabled on this repository.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# configuration flag used to check if document landing pages are enabled on this repository&lt;br /&gt;
$c-&amp;gt;{doc_landing_pages_enabled} = 1;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;add_trigger( EP_TRIGGER_URL_REWRITE, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my( $uri, $rc, $request ) = @args{ qw( uri return_code request ) };&lt;br /&gt;
&lt;br /&gt;
    # matches https://myrepo.ac.uk/document/&amp;lt;doc_id&amp;gt;&lt;br /&gt;
    if( defined $uri &amp;amp;&amp;amp; ($uri =~ m#^/document/(.*)$# ) )&lt;br /&gt;
    {&lt;br /&gt;
        $request-&amp;gt;handler('perl-script');&lt;br /&gt;
        $request-&amp;gt;set_handlers(PerlResponseHandler =&amp;gt; [ 'EPrints::Apache::Document' ] );&lt;br /&gt;
        ${$rc} = EPrints::Const::OK;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return EP_TRIGGER_OK;&lt;br /&gt;
&lt;br /&gt;
}, priority =&amp;gt; 100 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This trigger uses a Document handler we need to implement, e.g. '''perl_lib/EPrints/Apache/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
######################################################################&lt;br /&gt;
#&lt;br /&gt;
# EPrints::Apache::Document&lt;br /&gt;
#&lt;br /&gt;
######################################################################&lt;br /&gt;
&lt;br /&gt;
package EPrints::Apache::Document;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use EPrints;&lt;br /&gt;
use EPrints::Apache::AnApache;&lt;br /&gt;
&lt;br /&gt;
sub handler&lt;br /&gt;
{&lt;br /&gt;
    my( $r ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $uri = $r-&amp;gt;uri;&lt;br /&gt;
&lt;br /&gt;
    if( $uri =~ m#^/document/(.*)$# )&lt;br /&gt;
    {&lt;br /&gt;
        my $repository = $EPrints::HANDLE-&amp;gt;current_repository;&lt;br /&gt;
        return DECLINED if( !defined $repository );&lt;br /&gt;
&lt;br /&gt;
        # Document landing pages enabled for this repository?&lt;br /&gt;
        return DECLINED unless( $repository-&amp;gt;config( &amp;quot;doc_landing_pages_enabled&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
        my $doc_id = $1;&lt;br /&gt;
&lt;br /&gt;
        my $doc_ds = $repository-&amp;gt;dataset( &amp;quot;document&amp;quot; );&lt;br /&gt;
        my $doc = $doc_ds-&amp;gt;dataobj( $doc_id );&lt;br /&gt;
&lt;br /&gt;
        if( defined $doc )&lt;br /&gt;
        {&lt;br /&gt;
            EPrints::ScreenProcessor-&amp;gt;process(&lt;br /&gt;
                session =&amp;gt; $repository,&lt;br /&gt;
                screenid =&amp;gt; &amp;quot;Document&amp;quot;,&lt;br /&gt;
                document =&amp;gt; $doc,&lt;br /&gt;
            );&lt;br /&gt;
            return OK;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return DECLINED;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The handler calls on an EPrints screen to generate the content for the landing page, e.g. '''perl_lib/EPrints/Plugin/Screen/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=head1 NAME&lt;br /&gt;
&lt;br /&gt;
EPrints::Plugin::Screen::Document&lt;br /&gt;
&lt;br /&gt;
=cut#&lt;br /&gt;
&lt;br /&gt;
package EPrints::Plugin::Screen::Document;&lt;br /&gt;
&lt;br /&gt;
use EPrints::Plugin::Screen;&lt;br /&gt;
&lt;br /&gt;
@ISA = ( 'EPrints::Plugin::Screen' );&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
sub new&lt;br /&gt;
{&lt;br /&gt;
    my( $class, %params ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $self = $class-&amp;gt;SUPER::new(%params);&lt;br /&gt;
&lt;br /&gt;
    return $self;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub properties_from&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;{processor}-&amp;gt;{eprint} = $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;get_eprint;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;SUPER::properties_from;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render_title&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $session = $self-&amp;gt;{session};&lt;br /&gt;
&lt;br /&gt;
    my $f = $self-&amp;gt;{session}-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $eprint = $self-&amp;gt;{processor}-&amp;gt;{eprint};&lt;br /&gt;
    my $doc = $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{eprint}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{session}-&amp;gt;html_phrase( &amp;quot;document_join&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    return $f;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $repo = $self-&amp;gt;{repository};&lt;br /&gt;
    my $doc =  $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    my $page = $repo-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $div = $repo-&amp;gt;make_element( &amp;quot;div&amp;quot;, class =&amp;gt; &amp;quot;doc_citation&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
    $div-&amp;gt;appendChild( $doc-&amp;gt;render_citation( &amp;quot;landing_page&amp;quot;, eprint =&amp;gt; $self-&amp;gt;{processor}-&amp;gt;{eprint} ) );&lt;br /&gt;
&lt;br /&gt;
    return( $div );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally, the screen uses a citation file to display the document landing page content in an easily customisable fashion, e.g. '''lib/defaultcfg/citations/document/landing_page.xml'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
    Full &amp;quot;abstract page&amp;quot; (or splash page or summary page, depending on your jargon) for an eprint.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite:citation xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xmlns:epc=&amp;quot;http://eprints.org/ep3/control&amp;quot; xmlns:cite=&amp;quot;http://eprints.org/ep3/citation&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the parent eprint citation --&amp;gt;&lt;br /&gt;
    &amp;lt;epc:print expr=&amp;quot;$eprint.citation_link('default')&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the document details in a similar fashion to eprint summary pages --&amp;gt;&lt;br /&gt;
    &amp;lt;table&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;epc:print expr=&amp;quot;$item.icon( 'HoverPreview', 'noNewWindow' )&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;epc:print expr=&amp;quot;$item.citation('default')&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;{$item.url()}&amp;quot; class=&amp;quot;ep_document_link&amp;quot;&amp;gt;&amp;lt;epc:phrase ref=&amp;quot;summary_page:download&amp;quot;/&amp;gt; (&amp;lt;epc:print expr=&amp;quot;$item.doc_size().human_filesize()&amp;quot; /&amp;gt;)&amp;lt;/a&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cite:citation&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13895</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13895"/>
		<updated>2021-11-08T14:32:43Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Document Landing Pages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;br /&gt;
&lt;br /&gt;
=Document Landing Pages=&lt;br /&gt;
The DataCite DOI plugin supports minting DOIs for documents uploaded to eprint records, however all DOIs must resolve to a landing page however and so in order to enable this your repository needs to support document landing pages. The following code snippets illustrate how to implement document landing pages in EPrints.&lt;br /&gt;
&lt;br /&gt;
First we need a URL rewrite trigger to catch the URLs which should resolve to the landing page. The following needs to be added to the eprints or archives' configuration files, e.g. '''lib/cfg.d/doc_landing_pages.pl'''. We can also define a flag here for plugins to check to see if document landing pages are enabled on this repository.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# configuration flag used to check if document landing pages are enabled on this repository&lt;br /&gt;
$c-&amp;gt;{doc_landing_pages_enabled} = 1;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;add_trigger( EP_TRIGGER_URL_REWRITE, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my( $uri, $rc, $request ) = @args{ qw( uri return_code request ) };&lt;br /&gt;
&lt;br /&gt;
    # matches https://myrepo.ac.uk/document/&amp;lt;doc_id&amp;gt;&lt;br /&gt;
    if( defined $uri &amp;amp;&amp;amp; ($uri =~ m#^/document/(.*)$# ) )&lt;br /&gt;
    {&lt;br /&gt;
        $request-&amp;gt;handler('perl-script');&lt;br /&gt;
        $request-&amp;gt;set_handlers(PerlResponseHandler =&amp;gt; [ 'EPrints::Apache::Document' ] );&lt;br /&gt;
        ${$rc} = EPrints::Const::OK;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return EP_TRIGGER_OK;&lt;br /&gt;
&lt;br /&gt;
}, priority =&amp;gt; 100 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This trigger uses a Document handler we need to implement, e.g. '''perl_lib/EPrints/Apache/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
######################################################################&lt;br /&gt;
#&lt;br /&gt;
# EPrints::Apache::Document&lt;br /&gt;
#&lt;br /&gt;
######################################################################&lt;br /&gt;
&lt;br /&gt;
package EPrints::Apache::Document;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use EPrints;&lt;br /&gt;
use EPrints::Apache::AnApache;&lt;br /&gt;
&lt;br /&gt;
sub handler&lt;br /&gt;
{&lt;br /&gt;
    my( $r ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $uri = $r-&amp;gt;uri;&lt;br /&gt;
&lt;br /&gt;
    if( $uri =~ m#^/document/(.*)$# )&lt;br /&gt;
    {&lt;br /&gt;
        my $repository = $EPrints::HANDLE-&amp;gt;current_repository;&lt;br /&gt;
        return DECLINED if( !defined $repository );&lt;br /&gt;
&lt;br /&gt;
        # Document landing pages enabled for this repository?&lt;br /&gt;
        return DECLINED unless( $repository-&amp;gt;config( &amp;quot;doc_landing_pages_enabled&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
        my $doc_id = $1;&lt;br /&gt;
&lt;br /&gt;
        my $doc_ds = $repository-&amp;gt;dataset( &amp;quot;document&amp;quot; );&lt;br /&gt;
        my $doc = $doc_ds-&amp;gt;dataobj( $doc_id );&lt;br /&gt;
&lt;br /&gt;
        if( defined $doc )&lt;br /&gt;
        {&lt;br /&gt;
            EPrints::ScreenProcessor-&amp;gt;process(&lt;br /&gt;
                session =&amp;gt; $repository,&lt;br /&gt;
                screenid =&amp;gt; &amp;quot;Document&amp;quot;,&lt;br /&gt;
                document =&amp;gt; $doc,&lt;br /&gt;
            );&lt;br /&gt;
            return OK;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return DECLINED;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The handler calls on an EPrints screen to generate the content for the landing page, e.g. '''perl_lib/EPrints/Plugin/Screen/Document.pm'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=head1 NAME&lt;br /&gt;
&lt;br /&gt;
EPrints::Plugin::Screen::Document&lt;br /&gt;
&lt;br /&gt;
=cut#&lt;br /&gt;
&lt;br /&gt;
package EPrints::Plugin::Screen::Document;&lt;br /&gt;
&lt;br /&gt;
use EPrints::Plugin::Screen;&lt;br /&gt;
&lt;br /&gt;
@ISA = ( 'EPrints::Plugin::Screen' );&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
sub new&lt;br /&gt;
{&lt;br /&gt;
    my( $class, %params ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $self = $class-&amp;gt;SUPER::new(%params);&lt;br /&gt;
&lt;br /&gt;
    return $self;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub properties_from&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;{processor}-&amp;gt;{eprint} = $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;get_eprint;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;SUPER::properties_from;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render_title&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $session = $self-&amp;gt;{session};&lt;br /&gt;
&lt;br /&gt;
    my $f = $self-&amp;gt;{session}-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $eprint = $self-&amp;gt;{processor}-&amp;gt;{eprint};&lt;br /&gt;
    my $doc = $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{eprint}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{session}-&amp;gt;html_phrase( &amp;quot;document_join&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    return $f;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $repo = $self-&amp;gt;{repository};&lt;br /&gt;
    my $doc =  $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    my $page = $repo-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $div = $repo-&amp;gt;make_element( &amp;quot;div&amp;quot;, class =&amp;gt; &amp;quot;doc_citation&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
    $div-&amp;gt;appendChild( $doc-&amp;gt;render_citation( &amp;quot;landing_page&amp;quot;, eprint =&amp;gt; $self-&amp;gt;{processor}-&amp;gt;{eprint} ) );&lt;br /&gt;
&lt;br /&gt;
    return( $div );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally, the screen uses a citation file to display the document landing page content in an easily customisable fashion, e.g. '''lib/defaultcfg/citations/document/landing_page.xml'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
    Full &amp;quot;abstract page&amp;quot; (or splash page or summary page, depending on your jargon) for an eprint.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite:citation xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xmlns:epc=&amp;quot;http://eprints.org/ep3/control&amp;quot; xmlns:cite=&amp;quot;http://eprints.org/ep3/citation&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the parent eprint citation --&amp;gt;&lt;br /&gt;
    &amp;lt;epc:print expr=&amp;quot;$eprint.citation_link('default')&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the document details in a similar fashion to eprint summary pages --&amp;gt;&lt;br /&gt;
    &amp;lt;table&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;epc:print expr=&amp;quot;$item.icon( 'HoverPreview', 'noNewWindow' )&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;epc:print expr=&amp;quot;$item.citation('default')&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;{$item.url()}&amp;quot; class=&amp;quot;ep_document_link&amp;quot;&amp;gt;&amp;lt;epc:phrase ref=&amp;quot;summary_page:download&amp;quot;/&amp;gt; (&amp;lt;epc:print expr=&amp;quot;$item.doc_size().human_filesize()&amp;quot; /&amp;gt;)&amp;lt;/a&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cite:citation&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13894</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13894"/>
		<updated>2021-11-08T14:32:09Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Document Landing Pages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;br /&gt;
&lt;br /&gt;
=Document Landing Pages=&lt;br /&gt;
The DataCite DOI plugin supports minting DOIs for documents uploaded to eprint records, however all DOIs must resolve to a landing page however and so in order to enable this your repository needs to support document landing pages. The following code snippets illustrate how to implement document landing pages in EPrints.&lt;br /&gt;
&lt;br /&gt;
First we need a URL rewrite trigger to catch the URLs which should resolve to the landing page. The following needs to be added to the eprints or archives' configuration files, e.g. lib/cfg.d/doc_landing_pages.pl. We can also define a flag here for plugins to check to see if document landing pages are enabled on this repository.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# configuration flag used to check if document landing pages are enabled on this repository&lt;br /&gt;
$c-&amp;gt;{doc_landing_pages_enabled} = 1;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;add_trigger( EP_TRIGGER_URL_REWRITE, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my( $uri, $rc, $request ) = @args{ qw( uri return_code request ) };&lt;br /&gt;
&lt;br /&gt;
    # matches https://myrepo.ac.uk/document/&amp;lt;doc_id&amp;gt;&lt;br /&gt;
    if( defined $uri &amp;amp;&amp;amp; ($uri =~ m#^/document/(.*)$# ) )&lt;br /&gt;
    {&lt;br /&gt;
        $request-&amp;gt;handler('perl-script');&lt;br /&gt;
        $request-&amp;gt;set_handlers(PerlResponseHandler =&amp;gt; [ 'EPrints::Apache::Document' ] );&lt;br /&gt;
        ${$rc} = EPrints::Const::OK;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return EP_TRIGGER_OK;&lt;br /&gt;
&lt;br /&gt;
}, priority =&amp;gt; 100 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This trigger uses a Document handler we need to implement, e.g. perl_lib/EPrints/Apache/Document.pm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
######################################################################&lt;br /&gt;
#&lt;br /&gt;
# EPrints::Apache::Document&lt;br /&gt;
#&lt;br /&gt;
######################################################################&lt;br /&gt;
&lt;br /&gt;
package EPrints::Apache::Document;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use EPrints;&lt;br /&gt;
use EPrints::Apache::AnApache;&lt;br /&gt;
&lt;br /&gt;
sub handler&lt;br /&gt;
{&lt;br /&gt;
    my( $r ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $uri = $r-&amp;gt;uri;&lt;br /&gt;
&lt;br /&gt;
    if( $uri =~ m#^/document/(.*)$# )&lt;br /&gt;
    {&lt;br /&gt;
        my $repository = $EPrints::HANDLE-&amp;gt;current_repository;&lt;br /&gt;
        return DECLINED if( !defined $repository );&lt;br /&gt;
&lt;br /&gt;
        # Document landing pages enabled for this repository?&lt;br /&gt;
        return DECLINED unless( $repository-&amp;gt;config( &amp;quot;doc_landing_pages_enabled&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
        my $doc_id = $1;&lt;br /&gt;
&lt;br /&gt;
        my $doc_ds = $repository-&amp;gt;dataset( &amp;quot;document&amp;quot; );&lt;br /&gt;
        my $doc = $doc_ds-&amp;gt;dataobj( $doc_id );&lt;br /&gt;
&lt;br /&gt;
        if( defined $doc )&lt;br /&gt;
        {&lt;br /&gt;
            EPrints::ScreenProcessor-&amp;gt;process(&lt;br /&gt;
                session =&amp;gt; $repository,&lt;br /&gt;
                screenid =&amp;gt; &amp;quot;Document&amp;quot;,&lt;br /&gt;
                document =&amp;gt; $doc,&lt;br /&gt;
            );&lt;br /&gt;
            return OK;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return DECLINED;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The handler calls on an EPrints screen to generate the content for the landing page, e.g. perl_lib/EPrints/Plugin/Screen/Document.pm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
=head1 NAME&lt;br /&gt;
&lt;br /&gt;
EPrints::Plugin::Screen::Document&lt;br /&gt;
&lt;br /&gt;
=cut#&lt;br /&gt;
&lt;br /&gt;
package EPrints::Plugin::Screen::Document;&lt;br /&gt;
&lt;br /&gt;
use EPrints::Plugin::Screen;&lt;br /&gt;
&lt;br /&gt;
@ISA = ( 'EPrints::Plugin::Screen' );&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
sub new&lt;br /&gt;
{&lt;br /&gt;
    my( $class, %params ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $self = $class-&amp;gt;SUPER::new(%params);&lt;br /&gt;
&lt;br /&gt;
    return $self;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub properties_from&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;{processor}-&amp;gt;{eprint} = $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;get_eprint;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;SUPER::properties_from;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render_title&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $session = $self-&amp;gt;{session};&lt;br /&gt;
&lt;br /&gt;
    my $f = $self-&amp;gt;{session}-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $eprint = $self-&amp;gt;{processor}-&amp;gt;{eprint};&lt;br /&gt;
    my $doc = $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{eprint}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{session}-&amp;gt;html_phrase( &amp;quot;document_join&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    return $f;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $repo = $self-&amp;gt;{repository};&lt;br /&gt;
    my $doc =  $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    my $page = $repo-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $div = $repo-&amp;gt;make_element( &amp;quot;div&amp;quot;, class =&amp;gt; &amp;quot;doc_citation&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
    $div-&amp;gt;appendChild( $doc-&amp;gt;render_citation( &amp;quot;landing_page&amp;quot;, eprint =&amp;gt; $self-&amp;gt;{processor}-&amp;gt;{eprint} ) );&lt;br /&gt;
&lt;br /&gt;
    return( $div );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally, the screen uses a citation file to display the document landing page content in an easily customisable fashion, e.g. lib/defaultcfg/citations/document/landing_page.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
    Full &amp;quot;abstract page&amp;quot; (or splash page or summary page, depending on your jargon) for an eprint.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite:citation xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xmlns:epc=&amp;quot;http://eprints.org/ep3/control&amp;quot; xmlns:cite=&amp;quot;http://eprints.org/ep3/citation&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the parent eprint citation --&amp;gt;&lt;br /&gt;
    &amp;lt;epc:print expr=&amp;quot;$eprint.citation_link('default')&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the document details in a similar fashion to eprint summary pages --&amp;gt;&lt;br /&gt;
    &amp;lt;table&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;epc:print expr=&amp;quot;$item.icon( 'HoverPreview', 'noNewWindow' )&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;epc:print expr=&amp;quot;$item.citation('default')&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;{$item.url()}&amp;quot; class=&amp;quot;ep_document_link&amp;quot;&amp;gt;&amp;lt;epc:phrase ref=&amp;quot;summary_page:download&amp;quot;/&amp;gt; (&amp;lt;epc:print expr=&amp;quot;$item.doc_size().human_filesize()&amp;quot; /&amp;gt;)&amp;lt;/a&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cite:citation&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13893</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13893"/>
		<updated>2021-11-08T14:31:24Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;br /&gt;
&lt;br /&gt;
=Document Landing Pages=&lt;br /&gt;
The DataCite DOI plugin supports minting DOIs for documents uploaded to eprint records, however all DOIs must resolve to a landing page however and so in order to enable this your repository needs to support document landing pages. The following code snippets illustrate how to implement document landing pages in EPrints.&lt;br /&gt;
&lt;br /&gt;
First we need a URL rewrite trigger to catch the URLs which should resolve to the landing page. The following needs to be added to the eprints or archives' configuration files, e.g. lib/cfg.d/doc_landing_pages.pl. We can also define a flag here for plugins to check to see if document landing pages are enabled on this repository.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# configuration flag used to check if document landing pages are enabled on this repository&lt;br /&gt;
$c-&amp;gt;{doc_landing_pages_enabled} = 1;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;add_trigger( EP_TRIGGER_URL_REWRITE, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my( $uri, $rc, $request ) = @args{ qw( uri return_code request ) };&lt;br /&gt;
&lt;br /&gt;
    # matches https://myrepo.ac.uk/document/&amp;lt;doc_id&amp;gt;&lt;br /&gt;
    if( defined $uri &amp;amp;&amp;amp; ($uri =~ m#^/document/(.*)$# ) )&lt;br /&gt;
    {&lt;br /&gt;
        $request-&amp;gt;handler('perl-script');&lt;br /&gt;
        $request-&amp;gt;set_handlers(PerlResponseHandler =&amp;gt; [ 'EPrints::Apache::Document' ] );&lt;br /&gt;
        ${$rc} = EPrints::Const::OK;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return EP_TRIGGER_OK;&lt;br /&gt;
&lt;br /&gt;
}, priority =&amp;gt; 100 );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This trigger uses a Document handler we need to implement, e.g. perl_lib/EPrints/Apache/Document.pm&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
######################################################################&lt;br /&gt;
#&lt;br /&gt;
# EPrints::Apache::Document&lt;br /&gt;
#&lt;br /&gt;
######################################################################&lt;br /&gt;
&lt;br /&gt;
package EPrints::Apache::Document;&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
use EPrints;&lt;br /&gt;
use EPrints::Apache::AnApache;&lt;br /&gt;
&lt;br /&gt;
sub handler&lt;br /&gt;
{&lt;br /&gt;
    my( $r ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $uri = $r-&amp;gt;uri;&lt;br /&gt;
&lt;br /&gt;
    if( $uri =~ m#^/document/(.*)$# )&lt;br /&gt;
    {&lt;br /&gt;
        my $repository = $EPrints::HANDLE-&amp;gt;current_repository;&lt;br /&gt;
        return DECLINED if( !defined $repository );&lt;br /&gt;
&lt;br /&gt;
        # Document landing pages enabled for this repository?&lt;br /&gt;
        return DECLINED unless( $repository-&amp;gt;config( &amp;quot;doc_landing_pages_enabled&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
        my $doc_id = $1;&lt;br /&gt;
&lt;br /&gt;
        my $doc_ds = $repository-&amp;gt;dataset( &amp;quot;document&amp;quot; );&lt;br /&gt;
        my $doc = $doc_ds-&amp;gt;dataobj( $doc_id );&lt;br /&gt;
&lt;br /&gt;
        if( defined $doc )&lt;br /&gt;
        {&lt;br /&gt;
            EPrints::ScreenProcessor-&amp;gt;process(&lt;br /&gt;
                session =&amp;gt; $repository,&lt;br /&gt;
                screenid =&amp;gt; &amp;quot;Document&amp;quot;,&lt;br /&gt;
                document =&amp;gt; $doc,&lt;br /&gt;
            );&lt;br /&gt;
            return OK;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    return DECLINED;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The handler calls on an EPrints screen to generate the content for the landing page, e.g. perl_lib/EPrints/Plugin/Screen/Document.pm&lt;br /&gt;
&lt;br /&gt;
=head1 NAME&lt;br /&gt;
&lt;br /&gt;
EPrints::Plugin::Screen::Document&lt;br /&gt;
&lt;br /&gt;
=cut&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
package EPrints::Plugin::Screen::Document;&lt;br /&gt;
&lt;br /&gt;
use EPrints::Plugin::Screen;&lt;br /&gt;
&lt;br /&gt;
@ISA = ( 'EPrints::Plugin::Screen' );&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
sub new&lt;br /&gt;
{&lt;br /&gt;
    my( $class, %params ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $self = $class-&amp;gt;SUPER::new(%params);&lt;br /&gt;
&lt;br /&gt;
    return $self;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub properties_from&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;{processor}-&amp;gt;{eprint} = $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;get_eprint;&lt;br /&gt;
&lt;br /&gt;
    $self-&amp;gt;SUPER::properties_from;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render_title&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $session = $self-&amp;gt;{session};&lt;br /&gt;
&lt;br /&gt;
    my $f = $self-&amp;gt;{session}-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $eprint = $self-&amp;gt;{processor}-&amp;gt;{eprint};&lt;br /&gt;
    my $doc = $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{eprint}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{session}-&amp;gt;html_phrase( &amp;quot;document_join&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    $f-&amp;gt;appendChild( $self-&amp;gt;{processor}-&amp;gt;{document}-&amp;gt;render_citation( &amp;quot;screen&amp;quot; ) );&lt;br /&gt;
&lt;br /&gt;
    return $f;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub render&lt;br /&gt;
{&lt;br /&gt;
    my( $self ) = @_;&lt;br /&gt;
&lt;br /&gt;
    my $repo = $self-&amp;gt;{repository};&lt;br /&gt;
    my $doc =  $self-&amp;gt;{processor}-&amp;gt;{document};&lt;br /&gt;
&lt;br /&gt;
    my $page = $repo-&amp;gt;make_doc_fragment;&lt;br /&gt;
&lt;br /&gt;
    my $div = $repo-&amp;gt;make_element( &amp;quot;div&amp;quot;, class =&amp;gt; &amp;quot;doc_citation&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
    $div-&amp;gt;appendChild( $doc-&amp;gt;render_citation( &amp;quot;landing_page&amp;quot;, eprint =&amp;gt; $self-&amp;gt;{processor}-&amp;gt;{eprint} ) );&lt;br /&gt;
&lt;br /&gt;
    return( $div );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally, the screen uses a citation file to display the document landing page content in an easily customisable fashion, e.g. lib/defaultcfg/citations/document/landing_page.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
    Full &amp;quot;abstract page&amp;quot; (or splash page or summary page, depending on your jargon) for an eprint.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite:citation xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xmlns:epc=&amp;quot;http://eprints.org/ep3/control&amp;quot; xmlns:cite=&amp;quot;http://eprints.org/ep3/citation&amp;quot; &amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the parent eprint citation --&amp;gt;&lt;br /&gt;
    &amp;lt;epc:print expr=&amp;quot;$eprint.citation_link('default')&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Display the document details in a similar fashion to eprint summary pages --&amp;gt;&lt;br /&gt;
    &amp;lt;table&amp;gt;&lt;br /&gt;
        &amp;lt;tr&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot; align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;epc:print expr=&amp;quot;$item.icon( 'HoverPreview', 'noNewWindow' )&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
            &amp;lt;td valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;epc:print expr=&amp;quot;$item.citation('default')&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;{$item.url()}&amp;quot; class=&amp;quot;ep_document_link&amp;quot;&amp;gt;&amp;lt;epc:phrase ref=&amp;quot;summary_page:download&amp;quot;/&amp;gt; (&amp;lt;epc:print expr=&amp;quot;$item.doc_size().human_filesize()&amp;quot; /&amp;gt;)&amp;lt;/a&amp;gt;&lt;br /&gt;
            &amp;lt;/td&amp;gt;&lt;br /&gt;
          &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cite:citation&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13888</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13888"/>
		<updated>2021-10-29T11:21:01Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;br /&gt;
&lt;br /&gt;
[[File:Mint doi.jpg|600px|thumb|center|An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.]]&lt;br /&gt;
&lt;br /&gt;
Once a DOI has successfully been minted for an eprint, the option to '''Update Metadata''' becomes available, which will resend the eprint metadata for this DOI. &lt;br /&gt;
&lt;br /&gt;
'''This should only be used for minor updates, e.g. correcting errors or adding additional files.'''&lt;br /&gt;
&lt;br /&gt;
==Tombstone Pages==&lt;br /&gt;
If an item which has previously had a DOI minted for it is either retired or removed from the repository, the DataCite record is updated to point to a tombstone page for the record. This consists of the basic citation metadata that was last registered with DataCite, i.e. the data available when either of the '''Mint DOI''' or '''Update Metadata''' buttons was last used.&lt;br /&gt;
&lt;br /&gt;
[[File:Eprint tombstone.jpg|600px|thumb|center|A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.]]&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
When creating a new version of an eprint via the '''New version''' button in the '''Actions''' tab, any existing DOI value will be copied across to the new version of the eprint.&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will highlight when a Current DOI redirects to an earlier version of an eprint, and will present two options when the later version is in the live archive (i.e. has a page a DOI can successfully redirect to).&lt;br /&gt;
&lt;br /&gt;
# '''Update Metadata &amp;amp; URL''' – this will update the current DataCite record to redirect to the new version of this eprint&lt;br /&gt;
# '''Reserve DOI''' and '''Mint DOI''' – the regular options available when the Available DOI for a record has not yet been reserved or registered on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Update metadata and url.jpg|600px|thumb|center|This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.]]&lt;br /&gt;
&lt;br /&gt;
DOIs registered for eprints which are earlier or later versions of other eprints, will use DataCite’s “HasVersion” and “IsVersionOf” properties to link forwards and backwards as appropriate.&lt;br /&gt;
&lt;br /&gt;
==External DOIs==&lt;br /&gt;
If an eprint already has a DOI associated with it, e.g. one that has previously been provided by a journal publication, then this will be listed as the '''Current DOI'''. The DataCite DOI Manager screen will indicate where this DOI redirects to, and will still present options for an '''Available DOI''' if the DOI for this record can still be minted on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:External doi.jpg|600px|thumb|center|An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' will also run a search of the eprint’s title against DataCites findable records, to see if a DOI has been coined previously. If one of the records matches the eprint, the '''Claim DOI''' button will set the eprint’s DOI metadata field to the DOI already on DataCite.&lt;br /&gt;
&lt;br /&gt;
[[File:Claim doi.jpg|600px|thumb|center|Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.]]&lt;br /&gt;
&lt;br /&gt;
==Document DOIs==&lt;br /&gt;
All of the above features are also available for documents uploaded to a repository. DOIs must resolve to a landing page about the record they identify, and as such these features are only available for repositories with document landing pages enabled.&lt;br /&gt;
&lt;br /&gt;
[[File:Document actions.jpg|600px|thumb|center| The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.]]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Document_actions.jpg&amp;diff=13887</id>
		<title>File:Document actions.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Document_actions.jpg&amp;diff=13887"/>
		<updated>2021-10-29T11:20:23Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The document &amp;quot;test.pdf&amp;quot; attached to this eprint can also have a DOI reserved or coined.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Claim_doi.jpg&amp;diff=13886</id>
		<title>File:Claim doi.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Claim_doi.jpg&amp;diff=13886"/>
		<updated>2021-10-29T11:19:24Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Items with similar titles are already present on DataCite. If one matches the eprint, click &amp;quot;Claim DOI&amp;quot; to use the existing DOI rather than coining a new one.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:External_doi.jpg&amp;diff=13885</id>
		<title>File:External doi.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:External_doi.jpg&amp;diff=13885"/>
		<updated>2021-10-29T11:18:39Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An eprint with an external DOI set. This can be replaced with an available DOI via DataCite.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Update_metadata_and_url.jpg&amp;diff=13884</id>
		<title>File:Update metadata and url.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Update_metadata_and_url.jpg&amp;diff=13884"/>
		<updated>2021-10-29T11:17:41Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This eprint is a later version of an existing eprint and has inherited a DOI. The metadata and URL associated with this DOI can be updated to redirect to the newer record.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Eprint_tombstone.jpg&amp;diff=13883</id>
		<title>File:Eprint tombstone.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Eprint_tombstone.jpg&amp;diff=13883"/>
		<updated>2021-10-29T11:16:00Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A tombstone page for a retired eprint, which the DOI will now redirect to, providing basic citation information.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Mint_doi.jpg&amp;diff=13882</id>
		<title>File:Mint doi.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Mint_doi.jpg&amp;diff=13882"/>
		<updated>2021-10-29T11:14:34Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An item in the live archive with a DOI available to mint. The option to update the previously reserved DOI is still available too.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13881</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13881"/>
		<updated>2021-10-29T10:35:22Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|center|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;br /&gt;
&lt;br /&gt;
If this DOI has not yet been registered on DataCite, it will be listed as an '''Available DOI''', and is available either to reserve or mint:&lt;br /&gt;
&lt;br /&gt;
* '''Reserve:''' The DOI is created in DataCite as a Draft DOI. The DOI is not listed in the global handle system and is not publicly findable.&lt;br /&gt;
* '''Mint:''' The DOI is registered with the global handle system and listed as Findable in DataCite.&lt;br /&gt;
&lt;br /&gt;
==Reserving DOIS==&lt;br /&gt;
Items in the repository’s review queue may only have DOIs reserved. Not all of the mandatory metadata is required when reserving a DOI.&lt;br /&gt;
&lt;br /&gt;
[[File:Reserve doi.jpg|600px|thumb|center|An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the '''Reserve DOI''' button will create a draft DOI in DataCite. This process happens instantly and the '''DataCite DOI Manager''' screen will update to show when the DOI was reserved as well as adding the DOI to the item’s DOI metadata field. Draft DOIs are not registered against the global handle system, i.e. they won’t redirect to the eprint. Once a reserved DOI has been created it can be updated with the item’s current metadata.&lt;br /&gt;
&lt;br /&gt;
[[File:Update reserve.jpg|600px|thumb|center|A reserved DOI, with the option to update the metadata associated with this DOI.]]&lt;br /&gt;
&lt;br /&gt;
==Minting DOIs==&lt;br /&gt;
Minting a DOI adds it as a findable DOI in DataCite. There are two main approaches to minting a DOI:&lt;br /&gt;
&lt;br /&gt;
# Using the '''Mint DOI''' button for an item in the live archive, which has all of the required metadata.&lt;br /&gt;
# Transferring an item with a reserved DOI and all of the required metadata, to the live archive, from the review queue. &lt;br /&gt;
&lt;br /&gt;
The '''Mint DOI''' button will register the DOI with the global handle system, and the DOI will be registered as “Findable” in DataCite. This process may take a few minutes and is handled by the repository’s indexer. Upon successful completion the new DOI will be added to the eprint’s DOI metadata field.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Update_reserve.jpg&amp;diff=13880</id>
		<title>File:Update reserve.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Update_reserve.jpg&amp;diff=13880"/>
		<updated>2021-10-29T10:34:12Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A reserved DOI, with the option to update the metadata associated with this DOI.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Reserve_doi.jpg&amp;diff=13879</id>
		<title>File:Reserve doi.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Reserve_doi.jpg&amp;diff=13879"/>
		<updated>2021-10-29T10:33:09Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An item in the review queue. A DOI may be reserved adding it as a draft DOI in DataCite.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13878</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13878"/>
		<updated>2021-10-29T10:28:48Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|600px|thumb|left|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|600px|thumb|left|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13877</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13877"/>
		<updated>2021-10-29T10:28:10Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|800px|thumb|Actions tab with the DataCite DOI Manager option.]]&lt;br /&gt;
&lt;br /&gt;
The '''DataCite DOI Manager''' is only available for items in the review queue or the live archive, and only to those users with editor or administrator permissions.&lt;br /&gt;
&lt;br /&gt;
Each eprint record has its own DOI that can be registered with DataCite, derived from the repository’s DataCite prefix (e.g. 10.xxx), the repository’s name, and the eprint’s ID.&lt;br /&gt;
&lt;br /&gt;
[[File:Available doi.jpg|800px|thumb|center|An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.]]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Available_doi.jpg&amp;diff=13876</id>
		<title>File:Available doi.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Available_doi.jpg&amp;diff=13876"/>
		<updated>2021-10-29T10:27:46Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;An eprint in the live archive with an available DOI. Options are available to either reserve or mint the DOI.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13875</id>
		<title>DataCite DOI</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=DataCite_DOI&amp;diff=13875"/>
		<updated>2021-10-29T10:25:05Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: Created page with &amp;quot;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''  ==Da...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''This documentation relates to release candidate version of the DataCite DOI plugin, available at [https://github.com/eprintsug/DataCiteDoi/tree/datacite-documents]'''&lt;br /&gt;
&lt;br /&gt;
==DataCite DOI Manager Screen==&lt;br /&gt;
The process for registering and minting DOIs is now managed via the '''DataCite DOI Manager''' screen, available via an eprint item’s '''Actions''' tab. &lt;br /&gt;
&lt;br /&gt;
[[File:Actions tab highlighted.png|thumb|Actions tab with the DataCite DOI Manager option.]]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=File:Actions_tab_highlighted.png&amp;diff=13874</id>
		<title>File:Actions tab highlighted.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=File:Actions_tab_highlighted.png&amp;diff=13874"/>
		<updated>2021-10-29T10:24:51Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Actions tab with the DataCite DOI Manager option.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=13866</id>
		<title>ORCID Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=ORCID_Support&amp;diff=13866"/>
		<updated>2021-09-16T10:31:25Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Updating Creators Automatically */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: ORCID]]&lt;br /&gt;
[[Category: Plugins]]&lt;br /&gt;
[[Category: Bazaar Package]]&lt;br /&gt;
=Introduction=&lt;br /&gt;
The [[ORCID_Support#ORCID_Support | ORCID Support]] and [[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] plugins have been developed to group together various ORCID developments from across a range of repositories &lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support | ORCID Support]] provides basic ORCID functionality for the repository including the addition of a new ORCID metafield, ORCID rendering and validation, and basic reporting with the [[Generic Reporting Framework]].&lt;br /&gt;
&lt;br /&gt;
[[ORCID_Support#ORCID_Support_Advance | ORCID Support Advance]] builds upon the functionality of [[ORCID_Support#ORCID_Support | ORCID Support]], and allows users to connect their repository profiles with their accounts on orcid.org. Once an account has been connected, the user may manage their orcid.org permissions, controlling how the repository reads and writes from orcid.org. If read permissions have been granted, works from orcid.org may be imported to the user's work area. If write permissions have been granted, records where the user's ORCID is present may be exported to their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support=&lt;br /&gt;
==ORCID Field==&lt;br /&gt;
ORCID Support adds a new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field to both the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; field, as well as the adding a new stage to the edit user workflow where an ORCID may be stored. All of these fields are of type &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt;, a special type of text field that validates the ORCID is of the [https://support.orcid.org/hc/en-us/articles/360006897674-Structure-of-the-ORCID-Identifier correct format] (16 digits broken into 4 groups of 4 separated by a dash, e.g. 0000-0003-1495-7122). The field also checks that the final digit of the ORCID, the checksum, is valid and a warning is displayed if the ORCID is invalid in any way.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_profile.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_warning.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The lookup script for the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields has also been updated to include the ORCID where this can be retrieved from other records where the ORCID has already been stored.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; fields will also be automatically be populated from user profiles if the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; ID subfields can be used to lookup a corresponding user profile.&lt;br /&gt;
&lt;br /&gt;
==Display ORCIDS==&lt;br /&gt;
ORCIDs are always displayed next to a small, green ORCID badge, and in form of a link to the corresponding orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_rendering.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Where space on the screen is more restricted, such as in citations, the ORCID itself is removed and only the green ORCID badge is displayed. The badge still links to the orcid.org profile and when hovered over, the ORCID is displayed in a green tooltip.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_tooltip.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==Reports==&lt;br /&gt;
Where the [[Generic Reporting Framework]] plugin has been installed, new reports will become available, under the heading ''ORCID Dashboard''.&lt;br /&gt;
&lt;br /&gt;
The ''All users with and without ORCIDs'' report will show all the users in the repository, showing users without an ORCID as non-compliant and users with an ORCID as compliant.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_all_users_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Users with ORCIDs'' report, is similar to the ''All users'' report, but instead only shows the users who have ORCIDs in their user profile.&lt;br /&gt;
&lt;br /&gt;
Finally, the ''Creators with ORCIDs'' report will highlight all EPrint records that have &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; values with ORCIDs assigned to them.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_creators_report.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==RIOXX==&lt;br /&gt;
Where the [http://bazaar.eprints.org/390/ RIOXX] plugin has been installed, ORCIDs will be added as the 'id' attribute for &amp;lt;rioxxterms:author&amp;gt; elements.&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
===Existing ORCID Fields===&lt;br /&gt;
The ORCID Support plugin will add an ORCID field in the the following three places:&lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow. &lt;br /&gt;
# As a sub-field of &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt; for an EPrint.  Check the &amp;lt;tt&amp;gt;Details&amp;lt;/tt&amp;gt; stage of your EPrint workflow when the EPrint id of type &amp;lt;tt&amp;gt;Book&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;Book Section&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# As a field for a &amp;lt;tt&amp;gt;user&amp;lt;/tt&amp;gt;. Check the &amp;lt;tt&amp;gt;Profile&amp;lt;/tt&amp;gt; stage in your user workflow.  &lt;br /&gt;
If you already have an &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field in any of these three locations, the ORCID Support will skip creating its own.  However, it will not update the existing field to the new &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; type.  Therefore if one or more of the fields exist you will need to edit them manually to change their type from &amp;lt;tt&amp;gt;text&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; after the ORCID Support plugin has been installed:&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'text',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
becomes&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   'sub_name' =&amp;gt; 'orcid',&lt;br /&gt;
   'type' =&amp;gt; 'orcid',&lt;br /&gt;
   'input_cols' =&amp;gt; 20,&lt;br /&gt;
   'allow_null' =&amp;gt; 1,&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
If you have pre-configured the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt;' or &amp;lt;tt&amp;gt;editors&amp;lt;/tt&amp;gt;' &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; sub-field, this will likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/eprint_fields.pl&amp;lt;/tt&amp;gt;.  The user's &amp;lt;tt&amp;gt;orcid&amp;lt;/tt&amp;gt; field will most likely be in your archive's &amp;lt;tt&amp;gt;cfg/cfg.d/user_fields.pl&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Updating Citations===&lt;br /&gt;
ORCID Support provides a function for rendering green ORCID badges which show the user's ORCID in a tooltip when hovered over. To add these in a citation, simply include the following when displaying creator or editor fields.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;!-- For Creators --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(creators)&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Editors --&amp;gt;&lt;br /&gt;
&amp;lt;print expr=&amp;quot;people_with_orcids(editors)&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
Update reports to show custom content in headers, i.e. change ''outputs'' to ''users'' and hide compliance information when not relevant.&lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID rendering to display in format starting with https://orcid.org/&lt;br /&gt;
&lt;br /&gt;
'''v1.5'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and add missing ORCID search form phrases.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=ORCID Support Advance=&lt;br /&gt;
'''The [http://bazaar.eprints.org/581/ ORCID Support Bazaar Plugin] and [https://orcid.org/about/membership ORCID membership] is required for [http://bazaar.eprints.org/1102/ ORCID Support Advance].'''&lt;br /&gt;
&lt;br /&gt;
==Connecting to orcid.org==&lt;br /&gt;
Before users can import or export from orcid.org, they first need to connect their repository user profiles with their orcid.org user profiles. This can be done via the ''Create or Connect your ORCID iD'' link that appears in the menu area when the logged in user does not have an ORCID associated with their account.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_create_or_connect.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
When clicked, the user will be taken to a new screen where they may specify which permissions they grant the repository when connecting to their orcid.org profile. By default all permissions are granted unless specified otherwise, which includes allowing the repository to connect with the orcid.org profile, read restricted works from the profile, and update activities on the profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_manage_permissions.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Once the user has specified which permissions they would like to grant the repository, clicking the ''Create or Connect your ORCID iD'' button, will take the user to the ORCID site where they may sign in to connect their existing ORCID, or may create a new ORCID if they do not already have one.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_sign_in.png|800px|thumb|none]] &lt;br /&gt;
&lt;br /&gt;
Upon completion of this process, the user will be redirected to the ''Manage ORCID Permissions'' screen.&lt;br /&gt;
&lt;br /&gt;
Each time the permissions are updated by clicking the ''Connect to ORCID'' button, the user will once again be asked to sign in to ORCID, as per the initial connection, so that orcid.org is aware of the permissions the user has granted to the repository. &lt;br /&gt;
&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' check box is selected, the repository will try to update the user's orcid.org profile with details about their institution. By default, the institution will be added to the ORCID profile's ''Employment'' section. However the plugin's configuration may specify that certain user types should have their ''Education'' section updated instead.&lt;br /&gt;
&lt;br /&gt;
==Import from orcid.org==&lt;br /&gt;
With the ''Retrieve restricted details from your ORCID profile'' option selected in the ''Manage ORCID Permissions'' screen, a ''Import from orcid.org'' button should appear on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
This screen will display all of the records from the user's orcid.org profile which the user has given permission to be read. Users can select which records they would like to appear by selecting the check boxes (all checkboxes are selected by default). If the record has been imported previously, the option to select the record for importing again will not be presented.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_import.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Import from orcid.org'' will also appear on user profile screens, allowing admin users to import records from orcid.org on behalf of the repository's users.&lt;br /&gt;
&lt;br /&gt;
==Export to orcid.org==&lt;br /&gt;
When the ''Create and update publication details on your ORCID record'' option is selected in the ''Manage ORCID Permissions'' screen, the ''Export to orcid.org'' button appears on the ''Manage deposits'' screen:&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export_button.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
The ''Export to orcid.org'' will also appear on user profile screens, allowing admin users to export records from the repository to the user's orcid.org profile, on behalf of the repository's users. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_export.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
Like the import screen, here the user may select which records they wish to export to their orcid.org profile using the checkboxes. The records presented are any of those where the user's ORCID is listed in the &amp;lt;tt&amp;gt;creators&amp;lt;/tt&amp;gt; field. &lt;br /&gt;
&lt;br /&gt;
==New Reports==&lt;br /&gt;
===Users with ORCIDs===&lt;br /&gt;
With ORCID Support Advance installed, the ''Users with ORCIDs'' reports has been updated to include the permissions the user has granted for the repository to interact with their orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
[[File:orcid_user_perms.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===orcid.org Name Mismatch===&lt;br /&gt;
This report highlights where a user's name in their repository user profile differs from their name in their orcid.org profile. &lt;br /&gt;
&lt;br /&gt;
[[File:orcid_mismatch.png|800px|thumb|none]]&lt;br /&gt;
&lt;br /&gt;
==For Developers==&lt;br /&gt;
Configuration for the ORCID Support Advance plugin is stored in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level. &lt;br /&gt;
&lt;br /&gt;
To use the plugin, a &amp;lt;tt&amp;gt;client_id&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;client_secret&amp;lt;/tt&amp;gt; will need to be provided. ORCID members may acquired these credentials by registering the repository as a client application at https://orcid.org/content/register-client-application-production-trusted-party. &lt;br /&gt;
&lt;br /&gt;
'''When registering the redirect URI should be your repository's address followed by &amp;lt;tt&amp;gt;cgi/orcid/authenticate&amp;lt;/tt&amp;gt;;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
e.g. https://test-eprints.org/cgi/orcid/authenticate/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For non-members, a sandbox API is also provided which only gives access to ORCID details stored in the ORCID Sandbox. The [https://sandbox.orcid.org Sandbox] is a test website, which only sends emails to @mailinator email addresses and does not contain the records found in the Production Registry (for more info please see the [https://support.orcid.org/hc/en-us/articles/360006897474-Is-the-Sandbox-different-from-the-Production-Registry- Sandbox FAQ]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
###General ORCID Support Advance config###&lt;br /&gt;
$c-&amp;gt;{ORCID_contact_email} = $c-&amp;gt;{adminemail};&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_id} = &amp;quot;XXXX&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{client_secret} = &amp;quot;YYYY&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_apiv2} = &amp;quot;https://api.sandbox.orcid.org/v2.0/&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_auth_uri} = &amp;quot;https://sandbox.orcid.org/oauth/authorize&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{orcid_org_exch_uri} = &amp;quot;https://api.sandbox.orcid.org/oauth/token&amp;quot;;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{redirect_uri} = $c-&amp;gt;{&amp;quot;perl_url&amp;quot;} . &amp;quot;/orcid/authenticate&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Updating Creators Automatically===&lt;br /&gt;
With the ORCID Support Advance plugin installed, the only way ORCIDs can be added to the creators table is via an automatic lookup  of the user's repository profile, where their authenticated ORCID should be stored following a successful connection to orcid.org.&lt;br /&gt;
&lt;br /&gt;
The trigger that carries out this lookup is found in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt; at the local archive level:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
#automatic update of eprint creator field - orcid should be set to user's orcid value&lt;br /&gt;
$c-&amp;gt;add_dataset_trigger( 'eprint', EPrints::Const::EP_TRIGGER_BEFORE_COMMIT, sub&lt;br /&gt;
{&lt;br /&gt;
    my( %args ) = @_;&lt;br /&gt;
    my( $repo, $eprint, $changed ) = @args{qw( repository dataobj changed )};&lt;br /&gt;
    # ...&lt;br /&gt;
    # ...&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The lookup assumes that user emails are stored in the &amp;lt;tt&amp;gt;creators_id&amp;lt;/tt&amp;gt; field and looks for a corresponding user profile based on this field's value:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $email = $c-&amp;gt;{id};&lt;br /&gt;
$email = lc($email) if defined $email;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_email($eprint-&amp;gt;repository, $email);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
# ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If your repository is configured differently however then you may need to adjust this lookup, e.g. if your repository stores usernames in 'creators_id':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# In: z_orcid_support_advance.pl&lt;br /&gt;
# ...&lt;br /&gt;
my $username = $c-&amp;gt;{id};&lt;br /&gt;
$username= lc($username) if defined $username;&lt;br /&gt;
my $user = EPrints::DataObj::User::user_with_username($eprint-&amp;gt;repository, $username);&lt;br /&gt;
if( $user )&lt;br /&gt;
{&lt;br /&gt;
   if( EPrints::Utils::is_set( $user-&amp;gt;value( 'orcid' ) ) ) #user has an orcid&lt;br /&gt;
   {&lt;br /&gt;
      #set the orcid&lt;br /&gt;
      $new_c-&amp;gt;{orcid} = $user-&amp;gt;value( 'orcid' );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly, when a user first connects their user profile to orcid.org and the ORCID is added to their repository user account, a user commit trigger is called which will attempt to find all of the eprint records where that user is listed as a creator, and then commit those eprints so the new ORCID is pulled through. This trigger is also found in z_orcid_support_advance.pl and will need updating to ensure the lookup for a user's eprints, based on creators_id, is using the correct field.&lt;br /&gt;
&lt;br /&gt;
===Employment/Education Affiliation===&lt;br /&gt;
ORCID identifies institutions using a [https://support.orcid.org/hc/en-us/articles/360006973513-How-are-organizations-identified-in-ORCID- RINGGOLD identifier].&lt;br /&gt;
&lt;br /&gt;
The RINGGOLD identifier for the repository's institution may be defined in &amp;lt;tt&amp;gt;z_orcid_support_advance.pl&amp;lt;/tt&amp;gt;, as used by ORCID Support Advance when trying to update the user's orcid.org profile: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#Details of the organization for affiliation inclusion - the easiest way to obtain the RINGGOLD id is to add it to your ORCID user record manually, then pull the orcid-profile via the API and the identifier will be on the record returned.&lt;br /&gt;
$c-&amp;gt;{&amp;quot;plugins&amp;quot;}-&amp;gt;{&amp;quot;Event::OrcidSync&amp;quot;}-&amp;gt;{&amp;quot;params&amp;quot;}-&amp;gt;{&amp;quot;affiliation&amp;quot;} = {&lt;br /&gt;
                                                &amp;quot;organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                        &amp;quot;name&amp;quot; =&amp;gt; &amp;quot;My University Name&amp;quot;, #name of organization - REQUIRED&lt;br /&gt;
                                                        &amp;quot;address&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;city&amp;quot; =&amp;gt; &amp;quot;My Town&amp;quot;,  # name of the town / city for the organization - REQUIRED if address included&lt;br /&gt;
                                                        #       &amp;quot;region&amp;quot; =&amp;gt; &amp;quot;Countyshire&amp;quot;,  # region e.g. county / state / province - OPTIONAL&lt;br /&gt;
                                                                &amp;quot;country&amp;quot; =&amp;gt; &amp;quot;GB&amp;quot;,  # 2 letter country code - AU, GB, IE, NZ, US, etc. - REQUIRED if address included&lt;br /&gt;
                                                        },&lt;br /&gt;
                                                        &amp;quot;disambiguated-organization&amp;quot; =&amp;gt; {&lt;br /&gt;
                                                                &amp;quot;disambiguated-organization-identifier&amp;quot; =&amp;gt; &amp;quot;ZZZZ&amp;quot;,  # replace ZZZZ with Institutional identifier from the recognised source&lt;br /&gt;
                                                                &amp;quot;disambiguation-source&amp;quot; =&amp;gt; &amp;quot;RINGGOLD&amp;quot;, # Source for institutional identifier should be RINGGOLD or ISNI&lt;br /&gt;
                                                        }&lt;br /&gt;
                                                }&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To specify which user types should have their ''Education'' section updated on their orcid.org profile, instead of the ''Employment'' section, add the user types to the following array.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$c-&amp;gt;{orcid_support_advance}-&amp;gt;{education_user_types} = [];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Change Log==&lt;br /&gt;
'''v1.7'''&lt;br /&gt;
&lt;br /&gt;
When disconnecting repository account from orcid.org user account, include a revoke call which removes the repository from the list of trusted organizations. &lt;br /&gt;
&lt;br /&gt;
'''v1.6'''&lt;br /&gt;
&lt;br /&gt;
Update ORCID Support Advance report exports to work with the up-to-date version of the Generic Reporting Framework (v3.0+)&lt;br /&gt;
&lt;br /&gt;
'''v1.5.2'''&lt;br /&gt;
&lt;br /&gt;
When a user connects/disconnects their user account with their orcid.org account, eprints where they are listed as a creator are now updated via a post-commit trigger on the user, rather than via an indexer event.&lt;br /&gt;
&lt;br /&gt;
CheckOrcidName and OrcidSync Event plugins now return messages gracefully, rather than simply die on failed or successful outcomes/&lt;br /&gt;
&lt;br /&gt;
'''v1.5.1'''&lt;br /&gt;
&lt;br /&gt;
Add BibTeX citation import functionality to retrieve more metadata when importing from orcid.org.&lt;br /&gt;
&lt;br /&gt;
Hide Creator and Editor Put Code fields from the deposit workflow using Javascript.&lt;br /&gt;
&lt;br /&gt;
Stop Put Code fields from being cloned when existing EPrint is used as a template for a new record.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.2'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with CheckOrcidName event which would cause event to keep retriggering if there was any leading/trailing white space in the name returned from orcid.org.&lt;br /&gt;
&lt;br /&gt;
'''v1.4.1'''&lt;br /&gt;
&lt;br /&gt;
Minor bug fixes to stop the CheckName event from triggering when it is guaranteed to failed due to missing access_token, and fix that allows UpdateCreatorOrcid event to be carried out even if user hasn't given an access_token (as the event doesn't need one).&lt;br /&gt;
&lt;br /&gt;
'''v1.4'''&lt;br /&gt;
&lt;br /&gt;
Add German phrases and static pages&lt;br /&gt;
&lt;br /&gt;
Fix [https://github.com/eprints/orcid_support_advance/issues/5 issue] where new institutions weren't being added to a user's orcid.org profile.&lt;br /&gt;
&lt;br /&gt;
'''v1.3.2'''&lt;br /&gt;
&lt;br /&gt;
Fix indexer error message when trying to concatenate an undefined string: &amp;lt;tt&amp;gt;cfg/cfg.d/z_orcid_support_advance_rdf_triples.pl&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''v1.3.1'''&lt;br /&gt;
&lt;br /&gt;
Fix bug with error message appearing after CheckName event, even if event was carried out successfully: &amp;lt;tt&amp;gt;lib/plugins/EPrints/Plugin/Event/CheckOrcidName.pm&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Additional Resources =&lt;br /&gt;
* [[:File:ORCID_Support_Plugins_Presentation.pdf|ORCID Support plugins presentation]] - A minimally technical presentation of the features of the ORCID Support and ORCID Support Advance plugins.&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13601</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13601"/>
		<updated>2021-03-19T15:47:07Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.6===&lt;br /&gt;
* Update Outputs report to not return firstPage for items other than D and E, and articleNumbe for items other than type D.&lt;br /&gt;
&lt;br /&gt;
===v2.5===&lt;br /&gt;
* Return earliest published/published online date when exporting Year and Month in Outputs report. Get the earliest of either the published or published online date, unless that's too early (i.e. before 01/01/2014), in which case opt for the other.&lt;br /&gt;
&lt;br /&gt;
===v2.4===&lt;br /&gt;
* Update Outputs report to not return field values for types where the field is not required.&lt;br /&gt;
** Only return &amp;quot;place&amp;quot; for types L P I M S&lt;br /&gt;
** Only return &amp;quot;publisher&amp;quot; for types A B C G N O T U&lt;br /&gt;
** Only return &amp;quot;volume&amp;quot; and &amp;quot;issue&amp;quot; for types D and E&lt;br /&gt;
** Only return &amp;quot;isbn&amp;quot; for types A B C R&lt;br /&gt;
** Only return &amp;quot;issn&amp;quot; for types D and E&lt;br /&gt;
** Never return &amp;quot;is_physical_output&amp;quot; for type D&lt;br /&gt;
** Only return &amp;quot;open_access_status&amp;quot; for types D or E when the &amp;quot;issn&amp;quot; value is set&lt;br /&gt;
&lt;br /&gt;
===v2.3===&lt;br /&gt;
* Exclude URL from Outputs report when isPhysicalOutput is selected&lt;br /&gt;
* Add new field REF Support Selection, &amp;quot;other_desc&amp;quot;, to provide brief description of type for &amp;quot;T - Other&amp;quot; items. This is then exported via the &amp;quot;publisher&amp;quot; column in the Outputs report, as described at https://ref.ac.uk/media/1701/output-information-requirements.xlsx&lt;br /&gt;
&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add &amp;quot;mediaOfOutput&amp;quot; field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement&amp;quot; in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13595</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13595"/>
		<updated>2021-03-12T17:58:48Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.5===&lt;br /&gt;
* Return earliest published/published online date when exporting Year and Month in Outputs report. Get the earliest of either the published or published online date, unless that's too early (i.e. before 01/01/2014), in which case opt for the other.&lt;br /&gt;
&lt;br /&gt;
===v2.4===&lt;br /&gt;
* Update Outputs report to not return field values for types where the field is not required.&lt;br /&gt;
** Only return &amp;quot;place&amp;quot; for types L P I M S&lt;br /&gt;
** Only return &amp;quot;publisher&amp;quot; for types A B C G N O T U&lt;br /&gt;
** Only return &amp;quot;volume&amp;quot; and &amp;quot;issue&amp;quot; for types D and E&lt;br /&gt;
** Only return &amp;quot;isbn&amp;quot; for types A B C R&lt;br /&gt;
** Only return &amp;quot;issn&amp;quot; for types D and E&lt;br /&gt;
** Never return &amp;quot;is_physical_output&amp;quot; for type D&lt;br /&gt;
** Only return &amp;quot;open_access_status&amp;quot; for types D or E when the &amp;quot;issn&amp;quot; value is set&lt;br /&gt;
&lt;br /&gt;
===v2.3===&lt;br /&gt;
* Exclude URL from Outputs report when isPhysicalOutput is selected&lt;br /&gt;
* Add new field REF Support Selection, &amp;quot;other_desc&amp;quot;, to provide brief description of type for &amp;quot;T - Other&amp;quot; items. This is then exported via the &amp;quot;publisher&amp;quot; column in the Outputs report, as described at https://ref.ac.uk/media/1701/output-information-requirements.xlsx&lt;br /&gt;
&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add &amp;quot;mediaOfOutput&amp;quot; field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement&amp;quot; in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13594</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13594"/>
		<updated>2021-03-09T10:45:20Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.4===&lt;br /&gt;
* Update Outputs report to not return field values for types where the field is not required.&lt;br /&gt;
** Only return &amp;quot;place&amp;quot; for types L P I M S&lt;br /&gt;
** Only return &amp;quot;publisher&amp;quot; for types A B C G N O T U&lt;br /&gt;
** Only return &amp;quot;volume&amp;quot; and &amp;quot;issue&amp;quot; for types D and E&lt;br /&gt;
** Only return &amp;quot;isbn&amp;quot; for types A B C R&lt;br /&gt;
** Only return &amp;quot;issn&amp;quot; for types D and E&lt;br /&gt;
** Never return &amp;quot;is_physical_output&amp;quot; for type D&lt;br /&gt;
** Only return &amp;quot;open_access_status&amp;quot; for types D or E when the &amp;quot;issn&amp;quot; value is set&lt;br /&gt;
&lt;br /&gt;
===v2.3===&lt;br /&gt;
* Exclude URL from Outputs report when isPhysicalOutput is selected&lt;br /&gt;
* Add new field REF Support Selection, &amp;quot;other_desc&amp;quot;, to provide brief description of type for &amp;quot;T - Other&amp;quot; items. This is then exported via the &amp;quot;publisher&amp;quot; column in the Outputs report, as described at https://ref.ac.uk/media/1701/output-information-requirements.xlsx&lt;br /&gt;
&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add &amp;quot;mediaOfOutput&amp;quot; field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement&amp;quot; in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13590</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13590"/>
		<updated>2021-03-02T12:17:12Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.3===&lt;br /&gt;
* Exclude URL from Outputs report when isPhysicalOutput is selected&lt;br /&gt;
* Add new field REF Support Selection, &amp;quot;other_desc&amp;quot;, to provide brief description of type for &amp;quot;T - Other&amp;quot; items. This is then exported via the &amp;quot;publisher&amp;quot; column in the Outputs report, as described at https://ref.ac.uk/media/1701/output-information-requirements.xlsx&lt;br /&gt;
&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add &amp;quot;mediaOfOutput&amp;quot; field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement&amp;quot; in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13589</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13589"/>
		<updated>2021-03-01T14:48:31Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add &amp;quot;mediaOfOutput&amp;quot; field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement&amp;quot; in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13588</id>
		<title>REF Support</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=REF_Support&amp;diff=13588"/>
		<updated>2021-03-01T14:48:18Z</updated>

		<summary type="html">&lt;p&gt;Rwf1v07@soton.ac.uk: /* Version History */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Version History==&lt;br /&gt;
===v2.2===&lt;br /&gt;
* Add mediaOfOutput field to REF Selections and Research Outputs report export&lt;br /&gt;
* Update &amp;quot;reasonsForNoConnectionStatement in Current Staff and Former Staff Contract report exorts to return array values as a single string (rather than an ARRAY ref)&lt;br /&gt;
&lt;br /&gt;
===v2.1===&lt;br /&gt;
* Research groups 'Name' maximum length from 64 to 128&lt;br /&gt;
* Current staff report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Current staff report&lt;br /&gt;
* &amp;quot;reason_no_connections&amp;quot; user field options updated from: 'CaringResponsibilities', 'PersonalCircumstances', 'ReducedHours', 'NormalDisciplinePractice' to: 'CaringResponsibilities', 'PersonalCircumstances', 'ApproachingRetirement', 'DisciplinePractice'&lt;br /&gt;
* Former staff contract report column renamed from &amp;quot;contractFTE&amp;quot; to &amp;quot;contractedFTE&amp;quot;&lt;br /&gt;
* &amp;quot;reasonsForNoConnectionStatement&amp;quot; column added to Former staff contract report&lt;br /&gt;
* Research Outputs report in &amp;quot;webOfScienceIdentifier&amp;quot; column maximum length changed from 15 to 20 characters&lt;br /&gt;
* &amp;quot;isPendingPublication&amp;quot; and &amp;quot;pendingPublicationReserve&amp;quot; removed from Research Outputs report. Fields labelled as &amp;quot;DEPRECATED&amp;quot; in Add Info workflow for REF Selections.&lt;br /&gt;
* New &amp;quot;isDelayedByCovid19&amp;quot; and &amp;quot;covid19Statement&amp;quot; fields, included in Research Outputs report&lt;br /&gt;
* Minor accessibility updates&lt;br /&gt;
====v2.1.1====&lt;br /&gt;
* Export DOIs in Research Outputs report using the 10.xxx format (removing any data preceding the 10.)&lt;br /&gt;
* EPrints reported as Gold OA via the REF CC (hefce_oa) problem have their openAccessStatus value set to 'Compliant'&lt;br /&gt;
====v2.1.2====&lt;br /&gt;
* Don't set an open_access_status value for items not of type D or E&lt;br /&gt;
====v2.1.3====&lt;br /&gt;
* Fix a bug where current staff and former staff were reporting all users assigned to a UoA for benchmarks other than the current benchmark. Former benchmarks will now report current and former staff in the same manner as the current benchmark, i.e. current staff = all users assigned to a UoA where their End Date has either not been set or is after 31/07/2020, former staff = all users assigned to a UoA with an End Date prior to 31/07/2020.&lt;br /&gt;
====v2.1.4====&lt;br /&gt;
* Apply bug fix from 2.1.3 to the Former Staff Contracts report too...&lt;br /&gt;
====v2.1.5====&lt;br /&gt;
* Which tabs appear in the complete submission Excel export (and which sections appear in the XML export) can now be configured in the local archive (useful for removing unused REF 4 tabs).&lt;br /&gt;
* Tabs are now exported in the correct order for the complete submission Excel export (ResearchGroup, CurrentStaff, FormerStaff, FormerStaffContract, Output, StaffOutputLink, ResearchDoctoralsAwarded, ResearchIncome, ResearchIncomeInKind&lt;br /&gt;
* CurrentStaff and StaffOutputLink will now export either HESA ID or Staff Identifier, but not both (with preference for HESA ID)&lt;br /&gt;
* contracts column removed from the FormerStaff Excel export&lt;br /&gt;
* HESA ID exported to FormerStaff and FormerStaffContract staffIdentifier column where available, or Staff ID where HESA is not available.&lt;br /&gt;
* Add EPrint post-commit trigger to recommit any REF Selections this eprint has been selected for when the EPrint's REF CC compliance value has been updated&lt;br /&gt;
====v2.1.6====&lt;br /&gt;
* Fix bug with complete submission XML exports, ensuring it uses only reports specified in zz_ref_support_reports_2021.pl config.&lt;br /&gt;
====v2.1.7====&lt;br /&gt;
* Update authorContributionStatement and researchConnection to long text fields to reflect number of characters allowed by the submission system.&lt;br /&gt;
&lt;br /&gt;
====v2.1.8====&lt;br /&gt;
* Update researchConnection to long text field for former staff contracts.&lt;br /&gt;
* Fix accessibility DOM creation issue with Manage Former Staff Contracts screen.&lt;br /&gt;
&lt;br /&gt;
===v1.6===&lt;br /&gt;
* Add assessor rating, plus configuration to display it as an optional field&lt;br /&gt;
* Fix issue where a UoA Champion can see selections belonging to a UoA they are not a champion of.&lt;br /&gt;
&lt;br /&gt;
===v1.5===&lt;br /&gt;
* Show REF CC compliance dot for items that have been selected&lt;br /&gt;
* Dots only show next to items that REF CC OA compliance criteria apply to&lt;br /&gt;
====v1.5.1====&lt;br /&gt;
* Fix warning message bug&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
The REF Support plugin, derived from the REF2014 plugin, has been designed to support REF2021 submissions.&lt;br /&gt;
&lt;br /&gt;
This plugin provides the following key features:&lt;br /&gt;
*New Units of Assessment for REF2021.&lt;br /&gt;
*Benchmarks – ability to conduct one or more trial runs of your submission as well as the final run.&lt;br /&gt;
*Assign UoA Champions – assign champions to oversee allocated units so they can check and verify submissions as well as submit on behalf of others.&lt;br /&gt;
*REF1 Profile Information – create an enhanced profile to generate the REF1 report.&lt;br /&gt;
*Identify REF2 Outputs – individual staff taking part in the REF submission may select their outputs for submission, providing additional key information for the panel to consider.&lt;br /&gt;
*REF CC integration – the compliance indicator from the REF Compliance Checker is shown when selecting outputs.&lt;br /&gt;
*Record REF4 Data – store data about degrees awarded and research income for each unit of assessment.&lt;br /&gt;
*Installs alongside existing REF2014 plugin functionality.&lt;br /&gt;
&lt;br /&gt;
==Further Information==&lt;br /&gt;
EPrints Services offers a support package for assistance with installing and using this plugin. For more information about the REF Support Package, please contact [mailto:info@services.eprints.org?subject=REF%20Support info@services.eprints.org]&lt;/div&gt;</summary>
		<author><name>Rwf1v07@soton.ac.uk</name></author>
		
	</entry>
</feed>