Relax condition in parseContextObject
Especially, allow rft.subject and rft.description in core OpenURL without Dublin Core declared as format. This fixes #851
This commit is contained in:
parent
0dbf5b20f3
commit
add3acbcd1
|
@ -438,7 +438,10 @@ Zotero.OpenURL = new function() {
|
||||||
} else if(key == "rft.appldate") {
|
} else if(key == "rft.appldate") {
|
||||||
item.date = value;
|
item.date = value;
|
||||||
}
|
}
|
||||||
} else if(format == "info:ofi/fmt:kev:mtx:dc") {
|
} else {
|
||||||
|
// The following keys are technically only valid in Dublin Core
|
||||||
|
// (i.e., format == "info:ofi/fmt:kev:mtx:dc") but in practice
|
||||||
|
// 'format' is not always set
|
||||||
if(key == "rft.identifier") {
|
if(key == "rft.identifier") {
|
||||||
if(value.length > 8) { // we could check length separately for
|
if(value.length > 8) { // we could check length separately for
|
||||||
// each type, but all of these identifiers
|
// each type, but all of these identifiers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user