Exposing Metadata on Preprints

We've been working on exposing metadata for preprints hosted on OSF Preprints (here's an example: https://osf.io/5cv7u/

We've been successful at having the preprints indexed in Google Scholar, but so far can't get the Zotero extension to recognize the metatags. It wants to save as Web Page with Snapshot and doesn't pick up authors, etc - just the title of the webpage.

We've implemented primarily Dublin Core metatags for GS indexing (example:
< meta id="ember1016" content="Bidimensional Structure of the Orthorexia: Development and Initial Validation of a New Instrument" name="dc.title" class="ember-view">
< meta id="ember1017" content="Orthorexia nervosa (ON) could be conceptualized as extreme or excessive preoccupation ..." name="dc.abstract" class="ember-view">)

The metatags are included in the header.

Can anyone offer any advice?
Thanks in advance!

  • edited July 11, 2017
    Zotero is just being picky about when exactly the page loads the header in relation to when it runs the detectWeb function (which determines what it shows as saving options). Running the translator manually later actually works perfectly, so the metatags are just fine.

    I can look at writing something dedicated for OSF (which would then also allow things like importing from searches) but @zuphilip @adomasven -- any thoughts on what to tell people in a case like this?
  • You can actually trigger the Zotero picker to refresh by adding some lines of JavaScript, see https://www.zotero.org/support/dev/exposing_metadata#force_zotero_to_refresh_metadata . I hope that still works.
  • That's supposed to work in the connectors, but let us know if it doesn't. That part of the code is a bit.. rusty. Last time I looked I could not find a valid example where it is used.
  • Thank you!

    I have also been told that if your bot used the googlebot user-agent, then the pages would use the pre-rendered version and that would probably fix it. Would that be easier/more useful on your end than building something dedicated for OSF?
  • Zotero doesn't actually have a bot -- it just sees the same page the user is looking at, so that's unfortunately not an option. But if they'd be willing to implement the bit that zuphilipp links to above, that'd make things easier on our end.
  • Thanks for your help! I'll try to get this in the queue soon.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.