Difference between revisions of "User:Abel/experimaintal.js"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "console.log('Wbprocessor active'); console.log('Personaldatabase active'); console.log('User Interface active'); var wbproc = new wbContainer(mw, mwEStruct['wbXntity']), //...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
console.log('Wbprocessor active');
+
console.log('Reporting in');
console.log('Personaldatabase active');
 
console.log('User Interface active');
 
  
var wbproc = new wbContainer(mw, mwEStruct['wbXntity']),
+
var wbproc = new wbContainer(mw, mwEStruct['wbXntity']);
  
 
// Check whether the current page is in a relation of interest to an id of interest
 
// Check whether the current page is in a relation of interest to an id of interest
current_entity = wbproc.checkentity( relational_id_list, [ wbEStruct['IDPropLoc'], wbEStruct['IDName'] ] );
+
var current_entity = wbproc.checkentity( relational_id_list );
 
// This should return an object of relations and ids
 
// This should return an object of relations and ids
  
 +
console.log("test: ")
 
console.log(current_entity);
 
console.log(current_entity);
  
// for each match, render the corresponding ui elements
+
var h = new idxdbContainer( mw );
// current_entity.forEach(pdooui.render);
+
h.EnqueuePDIO('update record', Date.now(), Date.now());

Latest revision as of 01:57, 19 May 2019

console.log('Reporting in');

var wbproc = new wbContainer(mw, mwEStruct['wbXntity']);

// Check whether the current page is in a relation of interest to an id of interest
var current_entity = wbproc.checkentity( relational_id_list );
// This should return an object of relations and ids

console.log("test: ")
console.log(current_entity);

var h = new idxdbContainer( mw );
h.EnqueuePDIO('update record', Date.now(), Date.now());