Zotero button for web pages

Some journals have import button for reference managers directly on their pages. Mendeley provides a mechanism for importing of articles based on some basic information: an article URL or DOI. With this mechanism it is possible to embed an "Add to Mendeley" button on the journal website (https://www.mendeley.com/import/information-for-publishers). I see this buttons also for different reference managers.
Is anything similar available for Zotero?
  • No, and purposefully not. While it is a bit of a branding disadvantage, Zotero users should always use the Save to Zotero button provided by Zotero. Using a button on a website will produce worse results, so we shouldn't encourage it.
  • I am a little bit surprise because I mean the same. I mean transfer bookmarklet to the html tag for implementation to the web pages and add short information for publishers on Zotero page. Add button on journal web page is indirect support for Zotero from the publisher.

    html tag can be this:
    <a title="Add this article to your Zotero library" href="javascript:var d=document,s=d.createElement('script');s.src='https://www.zotero.org/bookmarklet/loader.js';(d.body?d.body:d.documentElement).appendChild(s);void(0);"><img src="https://www.zotero.org/static/images/theme/zotero_icons/zotero-z-16px.png"></a>

    I use available Zotero picture for this example. For final version can be prepared new icon.

    And information for the publisher can be like something this: "Please note that import button will only work if your website is supported by the Zotero bookmarklet."
  • Could a button use JavaScript to invoke the Zotero translator or, in absence of an installed client, invoke the bookmarklet? Basically just activate the Zotero button proper?
  • The bookmarklet yes (that's what LiborA suggests above) but I don't think the Save to Zotero icon (i.e. what used to be the "URL bar icon" but isn't in the URL bar anywhere anymore), i.e. the translators via the extension, at least not easily.
  • How I wrote above, the button is a free advertisement of Zotero. Not every publisher add button on their web page, but if there is a button for Mendeley or another reference manager then there can be a button for Zotero too. Save to Zotero button is the similar advertisement channel as Zotero button on the web (https://www.zotero.org/getinvolved/ section Spread the Word). And save to Zotero button is a small feature which makes citation easier - that can be more interesting for publishers than add Zotero brand only. I think, Save to Zotero button can be available in the section Spread the Word.
  • I understand that, but if people click that button and get worse import than they'd get using Zotero normally (and they will: the bookmarklet is not as good as the connectors), I don't think that's a good idea and that's been the rationale behind not pushing for something like this in the past.
  • OK if the bookmarklet is not so good as the translators, and javascript is not an easy way then I have a (maybe stupid) question: How Zotero selects the correct translator?
  • The bookmarklet would typically find the correct translator, that's actually not the problem (the biggest problem would probably restrictions on what the browser lets the bookmarklet do for security reasons, e.g. with respect to setting cookies, cross-domain requests etc.).
    But for your question: Zotero identifies the translator by first matching on URL (some translators are completely generic, some for a very specific URL range, some in between) and then running code to detect whether the page contains the right data to import and what type of resource it contains (multiple, book, article, et.c).
  • edited March 8, 2016
    I agree that it's a little sad that we don't get this sort of free advertising. In theory we could probably provide a bit of JS that showed a button that would trigger saving via the client if the person had Zotero installed and otherwise show an error. (I don't think we'd want it to do a bookmarklet-style save directly to the server in the absence of a client/connector, because, as adamsmith says, that would really sell Zotero's capabilities short, which would sort of defeat the purpose of the free advertising.) It'd be a pretty weird thing on a technical level, and would likely confuse people even further about what exactly Zotero is (website, extension, connector, etc.). It'd also be a little ironic given that we're currently trying to improve support for embedded metadata, which, from a site's perspective, is basically the direct opposite of targeting specific clients.

    This is tricky, because if sites aren't targeting specific clients, we don't want to encourage them to do so by providing a Zotero button. But for the ones who are (and I'm not sure how widespread that actually is), it's a shame to miss out on that publicity.
  • I do not fully agree with the idea that improving support for embedded metadata, is basically the direct opposite of targeting specific clients from a site's perspective. Search engines are very important tools for a lot of students and scientists. And each web page needs visitors. I can imagine a script that checks the existence of a translator for a particular website and "light up" traffic light: green - website allows full data import to Zotero through the translator, yellow - page provides metadata and can be used bookmarklet; red - page do not allow import data into the Zotero. But this is the completely different idea and I think this tool is interesting for users and less for publishers.
  • edited March 8, 2016
    I was thinking along similar lines to LiborA's last post above, but as a user-oriented widget within the page itself - and I agree with Dan that a download button would be kind of pointless. Button is maybe not a good name for it (although it would be clickable).

    Users who have Zotero installed will not need a button, so the target audience of the clickable part of it would be people who have not yet installed Zotero.

    The setup and presentation would be similar to another product's download button: a snippet of code configured (optionally) with an end-point for citation data. The code would crawl the current page and the endpoint, and if it turns up something that Z can work with, the "badge" goes smiley. If the end-point fails but there is data in the page (COinS, or useful-looking embedded metadata), it goes puzzled. If nothing is found, it looks terribly unhappy.

    If Zotero is not installed, clicking on the badge would jump to this site; otherwise, click would be disabled, and the badge would just offer its opinion of the likelihood of finding data.

    If the badge had a stable ID across all installs of a given version, it could provide a hook to the end-point (RIS, BibTeX or whatever) that could be picked up by a generic translator. Sites that want to support Zotero, but aren't keen on implementing their own translator, could just deploy the badge on their pages.
  • I do not fully agree with the idea that improving support for embedded metadata, is basically the direct opposite of targeting specific clients from a site's perspective. Search engines are very important tools for a lot of students and scientists. And each web page needs visitors.
    I mean in terms of our recommendations for publishers. We'd like to get to a point where we don't need site translators for many sites, because they embed high-quality metadata. Saying "embed this metadata that can be used by any tool and we'll take it from there" is pretty different from saying "add this button that privileges Zotero over other tools". We care much more about the former. That said, if a site wants to do both, I suppose we could give them a way to do so...
    I can imagine a script that checks the existence of a translator for a particular website and "light up" traffic light: green - website allows full data import to Zotero through the translator, yellow - page provides metadata and can be used bookmarklet; red - page do not allow import data into the Zotero.
    But that's...the Zotero save button. Why would we offer a script that showed when Zotero didn't support a site?

    Do you mean for the benefit of people using the bookmarklet? To be clear, the bookmarklet is the choice of last resort, and it's not really something we want people using — anyone doing real work with Zotero should be using one of the browser extensions, which already provide this indicator. The bookmarklet can be useful on mobile, where we don't currently have native apps, but I don't see us starting to ask sites to embed indicators in their UIs just to make up for the inherent limitations of bookmarklets. The bookmarklet should also just fall back to webpage saving if there's no metadata (not sure if it does now).

    A button like this would actually be more confusing for people using the bookmarklet for legitimate reasons, because, assuming the button didn't do client-less saving itself, clicking on it would tell them to install Zotero.

    Now, I suppose we could make a button that did both: function equivalently to the normal save button if Zotero was installed and otherwise function like the bookmarklet and save directly to the API. That still risks giving people a faulty impression of Zotero. But we do have other opportunities for encouraging people to install the client (e.g., on the website, where people who used the button would eventually end up to interact with their data). We could probably even detect the user agent and, if we saw that someone was using a browser that there was an extension for, offer a subtle suggestion to install it in the saving progress window.

    One thing to keep in mind: there is probably a not-insignificant risk of confusing people here. "Which of these two buttons do I click?" Or, worse, "I'd love to use Zotero, but I almost never see a Zotero button..."
  • I agree mostly - but I think it could be designed to avoid giving the impression that it is a "save" button or essential feature. I was thinking of it more as a Zotero health check.
  • edited March 8, 2016
    But, as you say, that would be pretty pointless for all existing Zotero users. And I don't really see the point for a publisher of putting a Zotero status button on their site. Their goal is just making it easy to save their content into popular tools.

    The way I see it, the benefit for sites and existing Zotero users would be having a prominent save button in a convenient spot in the page — maybe even as part of search results, where the Select Items dialog is kind of awkward (though we could probably improve that separately). We could probably offer, in addition to a button, some kind of JS hook that sites could fit into their existing interface. (Not that they'd do it, but imagine that you could add Zotero to the list of reference managers in Google Scholar, such that you could click "Import into Zotero" and have that be equivalent to clicking the Zotero button, choosing the right item in the Select Items dialog, and clicking OK.)

    The benefit for people on mobile would be a way to save from the page without pulling up the bookmarklet (which, let's face it, they're probably not using, because who knows how to install a bookmarklet on a phone?).

    The benefit for the project would be introducing Zotero to more people.
  • I actually agree with what you said earlier, that embedding an actual save-to-Zotero button in pages would add to confusion. I was thinking of sites that offer RIS via a link from the item page. We currently need to cast a specific translator for those sites with code to identify the link and call it. If there were a Zotero-specific tag with a uniform ID in those pages (even if it were hidden), a standard translator could identify it (much as Embedded Metadata currently), and pull the RIS or BibTeX. It wouldn't address search results, but it would lighten translator support for item pages. The benefit of making the tag visible would mostly just be exposure.
  • Or, worse, "I'd love to use Zotero, but I almost never see a Zotero button..."
    This is the situation already. When I recommend Zotero, I often get a response that people chose Mendeley or Endnote because they saw that import buttons for Zotero aren't on the pages they use.

    If you're concerned about users of the button failing to discover the full Zotero client, I think a prompt/reminder "Have you tried the full version of Zotero?" at the saving dialogue would work well. The Mendeley button takes users to the login page where it advertises/prompts them to download the full client.

    Besides the free advertising, a button would also help greatly with use on mobile devices. The bookmarklet is hard to use on mobile.
  • Each article, report, and proceeding item on the SafetyLit site offers metadata downloads in several formats and includes a statement that

    "All SafetyLit records are available for automatic download to Zotero & Mendeley"

    For example see:
    http://www.safetylit.org/citations/index.php?fuseaction=citations.viewdetails&citationIds[]=citjournalarticle_511438_24

    Perhaps this could be stated more eloquently but I think it gets the point across. On other pages, I acknowledge the value of Zotero in the SafetyLit production process. I am open to suggestions that might increase Zotero's visibility on the SafetyLit site.

    Could some similar statement be useful to recommend for other sites?

    What I would love to see is some sort of logo that could be placed on sites where (yet to be determined) minimum metadata content and standards are met. How standards compliance would be assessed could be a problem. I consider the possibility of this being a role of the CSL working group.
  • If there were a Zotero-specific tag with a uniform ID in those pages (even if it were hidden), a standard translator could identify it (much as Embedded Metadata currently), and pull the RIS or BibTeX. It wouldn't address search results, but it would lighten translator support for item pages. The benefit of making the tag visible would mostly just be exposure.
    I just think this is a separate issue that we can (and should) discuss elsewhere. I'm actually not sure why we don't do this already with <link> elements — as with other embedded metadata, there's no reason for anything Zotero-specific. Let's follow up on GitHub.

    For this thread, I think the relevant question is just what we present to users.
    This is the situation already. When I recommend Zotero, I often get a response that people chose Mendeley or Endnote because they saw that import buttons for Zotero aren't on the pages they use.
    Yeah, that's frustrating. So I guess given the choice between more or fewer opportunities to get people in the door (after which we have other opportunities to show them better workflows), we should opt for more.

    I'm pretty strongly opposed to a button that would would do bookmarklet saves even when someone had Zotero installed, though, so I think that leaves a modal button like I suggest above, which triggered client saving when available and otherwise performed a bookmarklet save (with a suggestion on appropriate platforms to get the client).
Sign In or Register to comment.