Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
ORCID
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Rendering with Bootstrap = [[File:orcid_bootstrap.png|thumb|left|alt=ORCIDs displaying in the Bootstrap theme|ORCID and Bootstrap]] In a recent redesign of [http://eprints.whiterose.ac.uk White Rose Research Online] the [https://github.com/eprintsug/bootstrap Bootstrap theme] was used. The ORCID links are now enhanced with a tooltip and the green icon. There may be examples on the [http://eprints.whiterose.ac.uk/cgi/latest_tool latest 20 additions] page. == Bootstrap tooltop == This block of code finds anything with a class of 'orcid', and adds the green logo to it, and a tooltip that reads 'ORCID: ''orcid-value''', as shown in the image. The example code below is based on the following rendering of a person who may have an ORCID: <source lang="html4strict"> <!-- NB line-breaks added here for readability are not normally output by EPrints! --> <span class="person"> <span class="person_name">Castillo Ortiz, P.J.</span> <a href="http://orcid.org/0000-0003-4540-1855" target="_blank" class="orcid"> <span>orcid.org/0000-0003-4540-1855</span> </a> </span> </source> == jQuery == <source lang="javascript"> // selector used here depends on your rendering. You may want to use something like a[href*='orcid.org/0000-'] jQuery('.orcid').tooltip({ 'placement': 'auto', 'title': function(){ return "ORCID: "+ jQuery(this).text()}, }).append('<img src="/images/orcid_16x16.png" alt="" />').find('span').hide(); </source> == CSS == The green colouring is added using the following css, which also makes the background of the tooltip opaque, not semi-transparent as it is by default. <source lang="css"> .person + .tooltip > .tooltip-inner, .orcid + .tooltip > .tooltip-inner { background-color: #A6CE39; border: 1px solid #000000; white-space: pre; max-width: none; } .person + .tooltip.in, .orcid + .tooltip.in { opacity: 1; filter: alpha(opacity=100); } /* This adds a green dashed line under an author's name when hovered. This helps in big author lists to tie initials and surname together */ .person:hover {border-bottom: 1px dashed #a6ce39;} .orcid a:hover { color: #a6ce39; } </source>
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)