Skip to content

Commit f362e6c

Browse files
committed
Indicate that it's better to change parameters in HTML than JS
1 parent 1326880 commit f362e6c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,19 @@ want to start with one of the example HTML documents and adapt it to your needs.
3232

3333
To change parameters such as how many search results to show at a time, see the
3434
`ZOTERO_CONFIG` variable in `zotero.js`. See comments in the code for a brief
35-
explanation and example values, or the text below for additional details.
35+
explanation and example values, or the text below for additional details. I
36+
recommend setting your parameters in your HTML file. That way, you can overwrite
37+
zotero.js when enhancements are made to this repository, without having to edit
38+
the parameters in zotero.js for your usage. For example, just before the
39+
closing `</body>` tag in your HTML, add a script tag like this one:
40+
41+
```html
42+
<script>
43+
ZOTERO_CONFIG["zotId"] = "2055673";
44+
ZOTERO_CONFIG["collectionKey"] = "";
45+
ZOTERO_CONFIG["filterTags"] = "&tag=LTER-BLE";
46+
</script>
47+
```
3648

3749
### What To Search
3850

0 commit comments

Comments
 (0)