From add3acbcd153cbe13a1eafb59fd9dbc05e1c94d0 Mon Sep 17 00:00:00 2001 From: Philipp Zumstein Date: Sat, 7 Nov 2015 09:18:11 +0100 Subject: [PATCH] Relax condition in parseContextObject Especially, allow rft.subject and rft.description in core OpenURL without Dublin Core declared as format. This fixes #851 --- chrome/content/zotero/xpcom/openurl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/openurl.js b/chrome/content/zotero/xpcom/openurl.js index 73210e5e6a..8600782b61 100644 --- a/chrome/content/zotero/xpcom/openurl.js +++ b/chrome/content/zotero/xpcom/openurl.js @@ -438,7 +438,10 @@ Zotero.OpenURL = new function() { } else if(key == "rft.appldate") { 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(value.length > 8) { // we could check length separately for // each type, but all of these identifiers