User:Abel/experimaintal.js

From Wikibase Personal data
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
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());