Skip to content

Commit

Permalink
fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Feb 1, 2020
1 parent c44b978 commit e2ce253
Show file tree
Hide file tree
Showing 4 changed files with 1,023 additions and 3,624 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ You can replace the title with a bibliography line in the report. The customizer

If you want a custom MathJax config, you can add it as a JSON-encoded [configuration block](https://docs.mathjax.org/en/latest/options/input/tex.html?highlight=inlinemath#the-configuration-block) (anything you want, sans the leading `MathJax =` and trailing `;`, in a string preference named `extensions.zotero.report-customizer.MathJax`.

If you want select-links to go to the Zotero website, create a boolean preference named `extensions.zotero.report-customizer.link.web` and set it to `true`.

## Includes indexing status of attachments

(not ported yet to 5.0)
Expand Down
8 changes: 7 additions & 1 deletion content/report.pug
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ mixin fieldEdit(type)
span.mdi.mdi-dark.mdi-chevron-down(title='move down')
//-
mixin selectLink(item)
- var link = `zotero://select/items/${item.libraryID || 0}_${item.key}`
- var link
if Zotero.Prefs.get('report-customizer.link.web')
- link = item.uri.replace(/^http:/, 'https:')
else if ! item.libraryID || item.libraryID === Zotero.Libraries.userLibraryID
- link = `zotero://select/library/items/${item.key}`
else
- link = `zotero://select/groups/${item.libraryID}/items/${item.key}`
a(href=link) #{link}
mixin metadata(item)
- var table = false
Expand Down
Loading

0 comments on commit e2ce253

Please sign in to comment.