![]() See comments in the code for a briefĮxplanation and example values, or the text below for additional details. To change parameters such as how many search results to show at a time, see the Want to start with one of the example HTML documents and adapt it to your needs. ![]() The code finds elements via their HTML id attribute values, so in general you'll To use this for your own project, you will need a free Zotero account into which you include your publications, and obviously you'll need to adapt the HTML, CSS, etc., for your particular website. Zotero limits the number of results returned in a single request, so the page supports pagination to get additional results. You can click Search with no terms specified to show the entire catalog, which is the default behavior when you load the page. Click the search button and see results as formatted by Zotero to the page. Open the zotero.html file in your browser and enter a search term likeĬoastal. Modules for doing so have been written for WordPress and Drupal, but I hadn't seen one for static HTML sites, so I wrote this example to test how feasible a static HTML Zotero client would be to implement. To help users discover your publications, you can add them to an online database like Zotero and then present a search interface to that database on your website. Example HTML, CSS, and JavaScript for searching for items within a public Zotero
0 Comments
Leave a Reply. |