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 On Fri, Apr 19, 2024 at 10:23 AM Jose Blanco <[email protected]> wrote: > > 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é > > On Fri, Apr 19, 2024 at 2:24 AM emilio lorenzo <[email protected]> wrote: > > > > 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 > > > > > > > > On 18/04/2024 23:15, Jose Blanco wrote: > > > > 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 > > > > -- > > 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 [email protected]. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/dspace-tech/3652da81-8ad6-4332-8e16-aa8110bec045%40arvo.es. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-vOpicMOptsVq6CghVxWqtqbdUR8-2p5FfVCLkbkmomqQ%40mail.gmail.com.
