Bibliography as hyperlinks?

I want to post a list of links on a web page, so when I create a bibliography, I want it to format each item as a hyperlink, like so:
Page name
With the link and the title of the article inserted.
This seems quite simple, but I can't for the life of me figure out how to do it. I'm very new to Zotero, so this may be an obvious question, but I looked up the help files and all they talk about is different bibliography styles.
  • Zotero can't do that, sorry. There are some CMS plugins that have some related functionality such as ZotPress for WordPress, but that's the best I can offer.
  • edited October 27, 2016
    Can you tell it to do something like "Print this text string, then the title of the article, then this text string" and so on? If so, it would be able to do the HTML code as plain text, and that would be good enough.
  • Well, you can define prefixes and suffixes for field in citation styles, but if you then generate citations in html, it of course escapes html special characters.

    If you don't really need citation functionality, but just need title and link, it might actually work better to write an export translator, which could produce proper html.
  • I'm nowhere near that experienced yet; has anyone written one that I could use?
  • Can't you just export using the "Bookmarks" format?
  • Can I get it to export it in that format to the clipboard?
  • yes, if you set it as the default output format under "Export" in the Zotero preferences, both drag&drop and shift+ctrl+c (or the equivalent on Mac) will copy the format to the clipboard. Not 100% sure it's what you're looking for, but worth a try and at a minimum a good place to start if you want to modify it.
  • edited October 28, 2016
    I'm looking for a way to get a list of links onto a web page as references, basically. A custom format would have been nice; I'd have particularly liked to add the date and force a new line before every link; but those are extras--just a list of links is sufficient. Tweaking it manually won't be the end of the world.

    I'll play around with the settings and see what can be done. Thanks for helping a newbie.
  • edited October 28, 2016
    After spending some time investigating Zotero API for my own experiments I have realised that it can be easier to parse existing Zotero output formats.

    For example, if you export Zotero RDF and save this file you can apply an external parsing python script to trim the exported file(s) to your own custom format. This is easier than trying to write a custom export translator.

    A python script can then parse the exported zotero.rdf (or collection bibliography.html) using BeautifulSoap library.

    https://www.crummy.com/software/BeautifulSoup/bs4/doc/


    #!/usr/bin/env python

    from bs4 import BeautifulSoup
    import urllib

    # for a bibliography
    # soup = BeautifulSoup(urllib.urlopen("bibliography.html").read())

    # or for an exported library ...

    soup = BeautifulSoup(urllib.urlopen("zotero.rdf").read())

    # write the rest of your parsing code here to get the post processing format you require ...
    # such as your list of titles, hyperlinks, dates.


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.