accurator/commit

Updated generic domain defenition, now showing on domain page if no other domain is loaded.

authorChris Dijkshoorn
Mon Jun 13 11:52:50 2016 +0200
committerChris Dijkshoorn
Mon Jun 13 11:52:50 2016 +0200
commitd21385d723bc3a570dea35cacc5fdc6223a5125a
tree1f11870c6b225083315130e122ce29ee7ada201e
parent3bc87e7c0d9457d69c5a468c58691904263dee59
Diff style: patch stat
diff --git a/rdf/domain/domain.ttl b/rdf/domain/domain.ttl
index 0d540d6..f22a384 100644
--- a/rdf/domain/domain.ttl
+++ b/rdf/domain/domain.ttl
@@ -11,16 +11,14 @@
 
 agen:domain a accu:Domain ;
 	rdfs:label "generic" ;
-	dcterms:requires <http://iconclass.org/> ;
-	accu:hasTarget <http://www.europeana.eu/schemas/edm/ProvidedCHO> ;
-	skos:hasTopConcept ic:2 ;
+	accu:hasLabel aui:label ;
+	accu:hasTarget <http://accurator.nl/generic#Target> ;
 	accu:hasUI aui: ;
 	accu:hasAnnotationUI agen:genericUI ;
-	accu:hasDescriptiveImage agen:mountain ;
-	accu:hasMaximumExpertiseTopics "50" ;
-	accu:hasMaximumChildren "2" .
+	accu:hasDescriptiveImage agen:mountain .
 
-<http://iconclass.org/> a skos:ConceptScheme .
+aui:label auis:textLabel "Generic domain"@en ,
+					 	 "Generiek domein"@nl .
 
 agen:mountain a dctypes:StillImage ;
 	accu:hasFilePath "img/background/generic.jpg" ;
diff --git a/web/js/domain.js b/web/js/domain.js
index a0eed60..751033f 100644
--- a/web/js/domain.js
+++ b/web/js/domain.js
@@ -75,9 +75,11 @@ function getDomains(domain) {
 function populateDomains(domains, domain, labels, locale) {
 	var row;
 
-	// remove generic from the domains if showing top domains (does not work on ie 7 and 8..)
+	// remove generic from the domains if showing top domains
 	if (domain === "generic") {
-		domains.splice(domains.indexOf("generic"), 1);
+		// only remove when there are other domains available
+		if (domains.length > 1)
+			domains.splice(domains.indexOf("generic"), 1);
 	} else {
 		// add root domain as option to select in list of subdomains
 		domains.push(domain);