accurator/commit

Checked about js.

authorChris Dijkshoorn
Wed Feb 18 12:11:46 2015 +0000
committerChris Dijkshoorn
Wed Feb 18 12:11:46 2015 +0000
commitada2e8ba1f0f816f9d46a4c3c2b1bdcae0152e19
treed17fe649694ed91fd5a3bd92d25566000e4668b3
parent3e46b765152409dec5b087a6ab5434c8daf4e9e3
Diff style: patch stat
diff --git a/README.md b/README.md
index aa2fd94..2724556 100644
--- a/README.md
+++ b/README.md
@@ -57,12 +57,13 @@ Clone a repository with RDF and a void file describing the data and load the dat
 $ git clone https://github.com/rasvaan/naturalis.git
 $ cd ..
 $ ./run.pl
-?- rdf_library:rdf_attach_library('../rdf/rijksmuseum/rdf/void.ttl').
+?- rdf_library:rdf_attach_library('../rdf/naturalis/').
 ?- rdf_library:rdf_list_library.
 ```
 
-A list of datasets to load is shown. You can for example choose to load the complete collection: 
+A list of datasets to load is shown. You can for example choose to load a vocabulary and print collection: 
 ```bash
-?- rdf_library:rdf_load_library('RMA-collection',[]).
+?- rdf_library:rdf_load_library('IOC-birdlist-en-nl',[]).
+?- rdf_library:rdf_load_library('Naturalis-prints',[]).
 ```
 With the data loaded you should be able to annotate some artworks!
diff --git a/web/js/accurator_about.js b/web/js/accurator_about.js
index 39e2063..5b5dcc0 100644
--- a/web/js/accurator_about.js
+++ b/web/js/accurator_about.js
@@ -6,13 +6,15 @@ function aboutInit() {
 	locale = getLocale();
 	domain = getDomain();
 	
+	// Domain settings are needed
 	var onDomain = function(domainSettings) {
 		populateUI(domainSettings);
 	}
-	var onLoggedIn = function(data){
+	var onLoggedIn = function(userData){
 		setLinkLogo("profile");
-		userName = getUserName(data.user);
-		populateNavbar(userName, [{link:"profile.html", name:"Profile"}]);
+		userName = getUserName(userData.user);
+		populateNavbar(userName,
+			[{link:"profile.html", name:"Profile"}]);
 		domainSettings = domainSettings(domain, onDomain);
 	};
 	var onNotLoggedIn = function(){
@@ -25,15 +27,17 @@ function populateUI(domainSettins) {
 	ui = getUI(domainSettings, "about");
 
 	$.getJSON("ui_elements", {locale:locale, ui:ui, type:"labels"})
-		.done(function(data){
-			initLabels(data);});
+		.done(function(labels){
+			initLabels(labels);});
 }
 
-function initLabels(data) {
-	$("#txtAboutSlogan").append(data.txtAboutSlogan);
-	$("#txtAboutAccurator").append(data.txtAboutAccurator);
-	$("#txtSealincMediaSlogan").append(data.txtSealincMediaSlogan);
-	$("#txtAboutSealincMedia").append(data.txtAboutSealincMedia);
-	$("#txtSealincResearchSlogan").append(data.txtSealincResearchSlogan);
-	$("#txtAboutSealincResearch").append(data.txtAboutSealincResearch);
+function initLabels(labels) {
+	document.title = labels.title;
+	$("#txtAboutSlogan").append(labels.txtAboutSlogan);
+	$("#txtAboutSlogan").append(labels.txtAboutSlogan);
+	$("#txtAboutAccurator").append(labels.txtAboutAccurator);
+	$("#txtSealincMediaSlogan").append(labels.txtSealincMediaSlogan);
+	$("#txtAboutSealincMedia").append(labels.txtAboutSealincMedia);
+	$("#txtSealincResearchSlogan").append(labels.txtSealincResearchSlogan);
+	$("#txtAboutSealincResearch").append(labels.txtAboutSealincResearch);
 }
\ No newline at end of file