Skip to content

Commit

Permalink
LingBuzz: Include URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Aug 19, 2021
1 parent 822953c commit 77977ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions LingBuzz.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2021-06-04 22:24:19"
"lastUpdated": "2021-08-19 17:03:50"
}

/*
Expand Down Expand Up @@ -109,13 +109,14 @@ function scrape(doc, url) {
}
newItem.abstractNote = abstract;
newItem.date = ZU.strToISO(date);
newItem.url = url;
newItem.attachments.push({ document: doc, title: "Snapshot" });
newItem.publisher = "LingBuzz";

newItem.complete();
}

function scrapeSA(doc, _url) {
function scrapeSA(doc, url) {
var newItem = new Zotero.Item("report");
newItem.extra = "type: article\n"; // will map to preprint

Expand Down Expand Up @@ -148,6 +149,7 @@ function scrapeSA(doc, _url) {
Zotero.Utilities.cleanAuthor(authorLink.innerText, "author"));
}
newItem.date = ZU.strToISO(date);
newItem.url = url;
newItem.attachments.push({ document: doc, title: "Snapshot" });
newItem.publisher = "LingBuzz (SemanticsArchive)";

Expand Down Expand Up @@ -180,6 +182,7 @@ var testCases = [
"institution": "LingBuzz",
"libraryCatalog": "LingBuzz",
"shortTitle": "Verb height indeed determines prosodic phrasing",
"url": "https://ling.auf.net/lingbuzz/005988",
"attachments": [
{
"title": "LingBuzz Full Text PDF",
Expand Down Expand Up @@ -239,6 +242,7 @@ var testCases = [
"extra": "type: article",
"institution": "LingBuzz (SemanticsArchive)",
"libraryCatalog": "LingBuzz",
"url": "https://ling.auf.net/lingbuzz/repo/semanticsArchive/article/001471",
"attachments": [
{
"title": "LingBuzz (SemanticsArchive) Full Text PDF",
Expand Down

0 comments on commit 77977ea

Please sign in to comment.