Feeds: Fix error parsing items with rights information
- 59afef6
added a duplicate assignment to item.rights that was putting
a TextConstruct(!!!!) in the item JSON field instead of a string
- info.rights was being set to a TextConstruct (preexisting issue!)
This commit is contained in:
parent
92bb96ac49
commit
3176516b79
2 changed files with 2 additions and 4 deletions
|
@ -82,7 +82,7 @@ Zotero.FeedReader = function (url) {
|
|||
if (publisher) info.publisher = publisher;
|
||||
|
||||
let rights = feed.rights;
|
||||
if (rights) info.rights = rights;
|
||||
if (rights) info.rights = rights.plainText();
|
||||
|
||||
let issn = feed.issn;
|
||||
if (issn) info.ISSN = issn;
|
||||
|
@ -489,9 +489,6 @@ Zotero.FeedReader._getFeedItem = function (feedEntry, feedInfo) {
|
|||
let publisher = feedEntry.publisher;
|
||||
if (publisher) item.publisher = publisher;
|
||||
|
||||
let rights = feedEntry.rights;
|
||||
if (rights) item.rights = rights;
|
||||
|
||||
let language = feedEntry.language;
|
||||
if (language) item.language = language;
|
||||
|
||||
|
|
|
@ -56,5 +56,6 @@
|
|||
<prism:url>https://www.mdpi.com/2311-5521/9/6/120</prism:url>
|
||||
|
||||
<cc:license rdf:resource="CC BY 4.0"/>
|
||||
<dc:rights>Creative Commons Attribution (CC-BY)</dc:rights>
|
||||
</item>
|
||||
</rdf:RDF>
|
||||
|
|
Loading…
Reference in a new issue