Changes

m
no edit summary
Line 769: Line 769:  
$prop = $(this).find("div.smwb-prophead a");
 
$prop = $(this).find("div.smwb-prophead a");
 
//var propName = $prop.text();
 
//var propName = $prop.text();
var propName = $prop.attr('title').replace("Property:", "");
+
//var propName = $prop.attr('title').replace("Property:", "");
if (propName === "Special:Categories") propName = "Category";
+
var propName = "";
 +
if ($prop.attr('title') === "Special:Categories") propName += "Category";
 +
else propName += $prop.attr('href').split("Property:")[1].split("&")[0];
 
page_properties.push(propName);
 
page_properties.push(propName);
 
console.log(propName);
 
console.log(propName);
Line 781: Line 783:  
$prop = $(this).find("div.smwb-prophead a");
 
$prop = $(this).find("div.smwb-prophead a");
 
//var propName = $prop.text();
 
//var propName = $prop.text();
var propName = $prop.attr('title').replace("Property:", "");
+
//var propName = $prop.attr('title').replace("Property:", "");
if (propName === "Special:Categories") propName = "Category";
+
var propName = "-";
 +
if ($prop.attr('title') === "Special:Categories") propName += "Category";
 +
else propName += $prop.attr('href').split("Property:")[1].split("&")[0];
 
page_properties.push(propName);
 
page_properties.push(propName);
console.log("-" + propName);
+
console.log(propName);
 
$(this).find("div.smwb-propval span.smwb-ivalue").each(function(){
 
$(this).find("div.smwb-propval span.smwb-ivalue").each(function(){
 
var value = $(this).find("a").attr("title");
 
var value = $(this).find("a").attr("title");
Bots, bulkpusher, Bureaucrats, checkuser, filepusher, Interface administrators, oversight, pusher, rdfioadministrator, rdfiocurator, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
5,444

edits