From 78a37e7dbca9e45fa98f9bf1b5ac50d2bdb95a4c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 27 Mar 2010 01:02:50 +0000 Subject: [PATCH] Fix broadcast types --- translators/Bibliontology RDF.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/translators/Bibliontology RDF.js b/translators/Bibliontology RDF.js index 6f7acdf49..97e8c1ccb 100644 --- a/translators/Bibliontology RDF.js +++ b/translators/Bibliontology RDF.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":50, "inRepository":true, - "lastUpdated":"2010-03-27 00:26:50" + "lastUpdated":"2010-03-27 01:02:54" } Zotero.configure("getCollections", true); @@ -101,13 +101,13 @@ var TYPES = { "presentation": [[[n.rdf+"type", n.bibo+"Slideshow"]], null, null], "radioBroadcast": [[[n.rdf+"type", n.po+"AudioDocument"], [n.rdf+"type", n.po+"Episode"], - [n.po+"broadcast_on", n.po+"Radio"]], null, [n.rdf+"type", n.po+"Programme"]], + [n.po+"broadcast_on", n.po+"Radio"]], null, [false, n.dcterms+"isPartOf", [[n.rdf+"type", n.po+"Programme"]]]], "report": [[[n.rdf+"type", n.bibo+"Report"]], null, null], "statute": [[[n.rdf+"type", n.bibo+"Statute"]], null, [false, n.dcterms+"isPartOf", [[n.rdf+"type", n.bibo+"Code"]]]], "thesis": [[[n.rdf+"type", n.bibo+"Thesis"]], null, null], "tvBroadcast": [[[n.rdf+"type", n.bibo+"AudioVisualDocument"], [n.rdf+"type", n.po+"Episode"], - [n.po+"broadcast_on", n.po+"TV"]], null, [n.rdf+"type", n.po+"Programme"]], + [n.po+"broadcast_on", n.po+"TV"]], null, [false, n.dcterms+"isPartOf", [[n.rdf+"type", n.po+"Programme"]]]], "videoRecording": [[[n.rdf+"type", n.bibo+"AudioVisualDocument"]], null, null], "webpage": [[[n.rdf+"type", n.bibo+"Webpage"]], null, [false, n.dcterms+"isPartOf", [[n.rdf+"type", n.bibo+"Website"]]]] }; @@ -384,6 +384,7 @@ Type.prototype.getMatchScore = function(node) { Type.prototype._scoreNodeRelationship = function(node, definition, score) { var subNode = null; if(definition) { + Zotero.debug(definition); statements = Zotero.RDF.getStatementsMatching(node, definition.predicate, null); if(statements) { var bestScore = -9999;