Opened 6 years ago
Closed 6 years ago
#1812 closed defect (fixed)
Embed COinS in HTML bibliographies
| Reported by: | dstillman | Owned by: | simon |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | export | Version: | |
| Keywords: | helpwanted | Cc: |
Description (last modified by dstillman)
http://forums.zotero.org/discussion/17409/coins-in-htmlexport/
Lost this functionality with the switch to citeproc-js
Change History (5)
comment:1 Changed 6 years ago by dstillman
- Description modified (diff)
comment:2 Changed 6 years ago by dstillman
- Description modified (diff)
comment:3 Changed 6 years ago by fbennett
If that function is registered for use in the processor (in the same way as for retrieveItem()), I can take care of it. Let's give it a generic name like embedBibliographyEntry(), since it won't be bound specifically to COinS.
... The processor now looks for a function state.sys.embedBibliographyEntry(itemID), which should
accept a single itemID as argument, and return whatever string you want embedded in the bibliography output. The string will be inserted immediately after the rendered bibliography tag in the output.
comment:4 Changed 6 years ago by simon
Frank, I'm not sure we need support in the processor. Since the bibliography is returned as an array of strings, and makeBibliography returns the entry_ids, I think this should be easy to implement as-is.
comment:5 Changed 6 years ago by simon
- Resolution set to fixed
- Status changed from new to closed
Fixed by r8998
To do this from Zotero.Cite.makeFormattedBibliography() (by calling Zotero.OpenURL.createContextObject() for each item), it would be necessary to get an ordered list of the Zotero.Item objects represented by the HTML output. Not sure if that's possible currently.