Dimensions badge on dspace 7

213 views
Skip to first unread message

Jose Blanco

unread,
Apr 18, 2024, 5:15:22 PM4/18/24
to DSpace Technical Support
I wonder if anyone has integrated Dimension Badges on an instance of
dspace 7 or higher. I'm finding it not straightforward.

Here is the website for Dimensions: https://badges.dimensions.ai/

Thank you!
-Jose

emilio lorenzo

unread,
Apr 19, 2024, 2:24:46 AM4/19/24
to dspac...@googlegroups.com

hi, José

yes, you can see in     https://hdl.handle.net/20.500.14352/103230   or other Dspace 7 repositories we built.

As you says,  it is not  straightforward. Ssee  https://github.com/DSpace/dspace-angular/issues/2400   for a almost complete description- There is a pull request related to it   https://github.com/DSpace/dspace-angular/pull/2496


Best luck

Emilio

Jose Blanco

unread,
Apr 19, 2024, 10:24:00 AM4/19/24
to emilio lorenzo, dspac...@googlegroups.com
Hi Emilio,

The PR is for an Altmetrics badge, but I see you have a dimensions
badge on your page. If I incorporate the PR, I will only get the
Altmetrics Badge, right? Here is what we have now with dspace 6.3

https://hdl.handle.net/20.500.14352/103230

We actually display both: the altmetrics and the dimension badge, so
that is my goal. What do you suggest?

Thank you!
José
> --
> All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> ---
> You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3652da81-8ad6-4332-8e16-aa8110bec045%40arvo.es.

Jose Blanco

unread,
Apr 26, 2024, 2:08:09 PM4/26/24
to emilio lorenzo, dspac...@googlegroups.com
Hi Emilio,

I tried to cp/pt the altemetrics logic to create the dimensions badge
and it seems to work well except when I leave the item page and return
to it. The Developer tool indicted that it is not able to do this:

https://github.com/DSpace/dspace-angular/pull/2496/files#diff-698dc854605d3d1b1bf0aa73931a413e84cc9315c6c23a566cbc44d268c5b33fR41

in the dimensions case, I used :

private reloadBadge(data: any[]) {
if (data.find((element) => this.isLoaded(element))) {
const initMethod = '_dimension_embed_init';
window[initMethod]();
}
}

it can't find the method: _dimensino_embed_init. I wonder what you
are using in the reloadBadge method for Dimensions?

Thank you!
-Jose
Reply all
Reply to author
Forward
0 new messages