Skip to content

Commit 98648dc

Browse files
committed
Update readme
Now indicates we use LTER Network group as example
1 parent 449b10e commit 98648dc

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Example HTML, CSS, and JavaScript for searching for items within a public Zotero
55

66
## Motivation
77

8-
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. 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. My ultimate goal is to find a bibliography search solution for the website for my Long Term Ecological Research (LTER) project.
8+
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. 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.
99

1010
## Usage
1111

12-
Open the HTML file in your browser and enter a search term like Groundwater. When you click Search, the application searches a Zotero group called Water Project (ID 1586722) which makes their items publicly available, and writes results as formatted by Zotero to the page.
12+
Open the HTML file in your browser and enter a search term like Groundwater. When you click Search, the application searches the LTER Network Zotero group (ID 2055673) which makes their items publicly available, and writes results as formatted by Zotero to the page.
1313

1414
You can click Search with no terms specified to show the entire catalog, which is the default behavior when you load the page.
1515

@@ -20,11 +20,3 @@ To use this for your own project, you will need a free Zotero account into which
2020
## Customization
2121

2222
To change parameters such as how many search results to show at a time, see the ZOTERO_CONFIG variable in zotero.js.
23-
24-
If you prefer to always require a search term, you can check that the query parameter has been set before performing a search with something like:
25-
26-
```javascript
27-
if (query != "" && query != null) {
28-
// Do the search, etc.
29-
}
30-
```

0 commit comments

Comments
 (0)