EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09706


< 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


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 &lt;https:/ /doi.org/10.11591/ijere.v4i3.4502&gt;"

 

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