www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 26f6f0533196630708e1eb8ab89cf2b0a1d4b251
parent 1e6bb44e80e7c0c1c0dda5c43a0a101a2821ea20
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  8 Nov 2015 16:14:14 -0500

Merge pull request #869 from zuphilip/patch-2

Relax condition in parseContextObject
Diffstat:
Mchrome/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 @@ -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