added willsmith's 09dec09 changes and hardcoded publicationTitle.
This commit is contained in:
parent
81a95fe8d0
commit
d08bc12b69
|
@ -8,11 +8,11 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-07-31 11:15:00"
|
"lastUpdated":"2009-12-10 00:45:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url){
|
function detectWeb(doc, url){
|
||||||
return "newspaperArticle"
|
return "newspaperArticle";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDatum(text, key){
|
function getDatum(text, key){
|
||||||
|
@ -26,9 +26,11 @@ function doWeb(doc, url){
|
||||||
var metadata = text.match(/AT_VARS=({[^}]*})/)[1];
|
var metadata = text.match(/AT_VARS=({[^}]*})/)[1];
|
||||||
var authors = getDatum(text, "authors").split(',');
|
var authors = getDatum(text, "authors").split(',');
|
||||||
for each (var aut in authors) {
|
for each (var aut in authors) {
|
||||||
|
if (aut.length > 0) {
|
||||||
item.creators.push(Zotero.Utilities.cleanAuthor(aut, "author"));
|
item.creators.push(Zotero.Utilities.cleanAuthor(aut, "author"));
|
||||||
}
|
}
|
||||||
item.publicationTitle = Zotero.Utilities.unescapeHTML(metadata.match(/publicationName:'([^'][^,]*)'/)[1]);
|
}
|
||||||
|
item.publicationTitle = "wsj.com";
|
||||||
item.date = getDatum(text, "publicationDate");
|
item.date = getDatum(text, "publicationDate");
|
||||||
item.abstractNote = getDatum(text, "bodyText");
|
item.abstractNote = getDatum(text, "bodyText");
|
||||||
item.title = getDatum(text, "articleHeadline").replace("\\","");
|
item.title = getDatum(text, "articleHeadline").replace("\\","");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user