| Line 2: |
Line 2: |
| | // Experimental Main | | // Experimental Main |
| | console.log("'⌣'"); | | console.log("'⌣'"); |
| | + | |
| | var mwEStruct = { | | var mwEStruct = { |
| | wbXntity: 'config.values.wbEntity' | | wbXntity: 'config.values.wbEntity' |
| Line 25: |
Line 26: |
| | }; | | }; |
| | | | |
| − | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/WbProcessor.js&action=raw&ctype=text/javascript' );
| + | $.when( |
| − | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=MediaWiki:Gadget-personaldata.js&action=raw&ctype=text/javascript' );
| + | $.getScript( "//wiki.personaldata.io/w/index.php?title=User:Abel/WbProcessor.js&action=raw&ctype=text/javascript" ), |
| − | mw.loader.load( '//wiki.personaldata.io/w/index.php?title=User:Abel/experimaintal.js&action=raw&ctype=text/javascript' );
| + | $.getScript( "//wiki.personaldata.io/w/index.php?title=MediaWiki:Gadget-personaldata.js&action=raw&ctype=text/javascript" ), |
| | + | $.getScript( "//wiki.personaldata.io/w/index.php?title=MediaWiki:Gadget-pdooui.js&action=raw&ctype=text/javascript" ), |
| | + | $.Deferred( function( deferred ){ |
| | + | $( deferred.resolve ); |
| | + | }) |
| | + | ).done( function(){ |
| | + | |
| | + | 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()); |
| | | | |
| − | console.log('test');
| + | }); |