Changes

Jump to navigation Jump to search
m
no edit summary
Line 18: Line 18:  
// check if we are on a page of any of the targeted Entity
 
// check if we are on a page of any of the targeted Entity
 
// more exactly, use iterateAcheckBC to check in mw.config.values.wbEntity if instanceOfRelations exist, than if yes, check if numeric id of any matches controller id
 
// more exactly, use iterateAcheckBC to check in mw.config.values.wbEntity if instanceOfRelations exist, than if yes, check if numeric id of any matches controller id
 +
 +
 
if ( iterateAcheckBC(mw, mwEStruct['wbXntity'], wbEStruct['instanceOfRelations'], wbEStruct['IDPropLoc'], wbEStruct['IDName'], controller_item_id) ) {
 
if ( iterateAcheckBC(mw, mwEStruct['wbXntity'], wbEStruct['instanceOfRelations'], wbEStruct['IDPropLoc'], wbEStruct['IDName'], controller_item_id) ) {
 
console.log("This is a Data Controller");
 
console.log("This is a Data Controller");
Line 65: Line 67:  
function iterateAcheckBC( obj, rel_0, rel_A, rel_B, rel_C, to_check ) {
 
function iterateAcheckBC( obj, rel_0, rel_A, rel_B, rel_C, to_check ) {
 
   var future = false;
 
   var future = false;
   if ( typeof check( mw, rel_0 ) != undefined ){
+
   if ( typeof check( obj, rel_0 ) != undefined ){
     var edata = interjson(get_Y_from_X( mw, rel_0 ))
+
     var edata = interjson(get_Y_from_X( obj, rel_0 ))
 
     if ( typeof check( edata, rel_A ) != undefined ) {
 
     if ( typeof check( edata, rel_A ) != undefined ) {
 
       var current = get_Y_from_X( edata, rel_A );
 
       var current = get_Y_from_X( edata, rel_A );
530

edits

Navigation menu