Skip to content

Commit

Permalink
Add version number to zot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davidswelt committed Feb 12, 2015
1 parent a6d6ed4 commit 20f2f8c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
53 changes: 53 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#dr-settings.py


#### You must configure the following items

library_id = '000000' # your group or user ID (e.g., six numeric digits)
library_type ='group' # or 'group' # group or userm
api_key = '' # secret key (from Zotero)

toplevelfilter = 'AAABBBB' # top-collection that is going to be ignored (as a level)
catchallcollection = 'BBBBCCC' # include "Miscellaneous" category at end containing all items not mentioend anywhere else



###### Special settings

limit=None # None, or set a limit (integer<100) for each collection for debugging

bib_style = 'apa' # bibliography style format (e.g., 'apa' or 'mla') - Any valid CSL style in the Zotero style repository

order_by = 'date' # order in each category: e.g., 'dateAdded', 'dateModified', 'title', 'creator', 'type', 'date', 'publisher', 'publication', 'journalAbbreviation', 'language', 'accessDate', 'libraryCatalog', 'callNumber', 'rights', 'addedBy', 'numItems'

sort_order = 'desc' # "desc" or "asc"

write_full_html_header = True # False to not output HTML headers. In this case, expect a file in UTF-8 encoding.

outputfile = 'zotero-bib.html' # relative or absolute path name of output file
category_outputfile_prefix = 'zotero' # relative or absolute path prefix

show_search_box = True # show a Javascript/JQuery based search box to filter pubs by keyword. Must define jquery_path.
jquery_path = "../wp-includes/js/jquery/jquery.js" # path to jquery file on the server - default: wordpress location





##


wp_url = 'https://example.com/wp/xmlrpc.php' # Wordpress XMLRPC URL
wp_username = 'pubpusherusername'
wp_password = 'password'
wp_blogid = "0"

post_id = 225

infile = "zotero-bib.html"






5 changes: 5 additions & 0 deletions zot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@



#############################################################################

__version__ = "1.1.0"

#############################################################################


try:
from settings import *
except ImportError:
Expand Down

1 comment on commit 20f2f8c

@pdaengeli
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 24 to 52 in zot.py seem to be redundant after the creation of settings.py.

Please sign in to comment.