EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09707
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Installing altmetric, but doi identifier show with url
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Installing altmetric, but doi identifier show with url
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- Date: Thu, 16 May 2024 08:59:25 +0700
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_ListCAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Hi Agung,
Try this:<div id="altmetric_summary_page" data-altmetric-id-type="doi" data-altmetric-id="{id_number.as_string()}">
If the value in the id_number field looks like a DOI, EPrints will try and render it as a link.I think the above will stop that rendering from happening (although I haven’t tested it!).
Cheers,
John
From: eprints-tech-request@ecs.soton.ac.uk <eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Agung Prasetyo W.
Sent: Wednesday, May 15, 2024 8:53 AM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Installing altmetric, but doi identifier show with url
CAUTION: External Message. Use caution opening links and attachments.
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,
I just installed an altmetric badge. But when I fill in the doi for example: 10.11591/ijere.v4i3.4502, what appears in data-altmetric-id will be like the following: "https://doi.org/10.11591/ijere.v4i3.4502 <https:/ /doi.org/10.11591/ijere.v4i3.4502>"
Because when I insert only 10.11591/ijere.v4i3.4502, it can show up.
I added the following script : <div id="altmetric_summary_page" data-altmetric-id-type="doi" data-altmetric-id="{id_number}">. Maybe I wrong call field id?
How to display only doi id without https://doi.org/ ?
Thank you.
Regards,
Agung PW
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/
- References:
- [EP-tech] Installing altmetric, but doi identifier show with url
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- RE: [EP-tech] Installing altmetric, but doi identifier show with url
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Installing altmetric, but doi identifier show with url
- Prev by Date: RE: [EP-tech] Installing altmetric, but doi identifier show with url
- Next by Date: [EP-tech] Oracle Linux 9
- Previous by thread: RE: [EP-tech] Installing altmetric, but doi identifier show with url
- Next by thread: [EP-tech] Oracle Linux 9
- Index(es):