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


CAUTION: This e-mail originated outside the University of Southampton.
Hi John,

I already tried your suggestion, and it worked.

Thank you John,

Regards,
Agung PW

On Wed, 15 May 2024 at 15:54, John Salter <J.Salter@leeds.ac.uk> wrote:
CAUTION: 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 &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

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/