Skip to content

Commit

Permalink
[RDF] publisher can also be foaf:Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
zuphilip committed Aug 7, 2015
1 parent 7e31667 commit 7808217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"inRepository": true,
"translatorType": 1,
"browserSupport": "gcs",
"lastUpdated": "2015-07-12 15:13:59"
"lastUpdated": "2015-08-07 21:09:00"
}

/*
Expand Down Expand Up @@ -857,7 +857,7 @@ function importItem(newItem, node) {
var type = Zotero.RDF.getTargets(publisher[0], rdf+"type");
if(type) {
type = Zotero.RDF.getResourceURI(type[0]);
if(type == n.foaf+"Organization") { // handle foaf organizational publishers
if(type == n.foaf+"Organization" || type == n.foaf+"Agent") { // handle foaf organizational publishers
newItem.publisher = getFirstResults(publisher[0], [n.foaf+"name"], true);
var place = getFirstResults(publisher[0], [n.vcard+"adr"]);
if(place) {
Expand Down

0 comments on commit 7808217

Please sign in to comment.