| Line 3: |
Line 3: |
| | console.log("'⌣'"); | | console.log("'⌣'"); |
| | | | |
| − | var controller_item_id = 96, | + | var relational_id_list = { |
| − | personal_data_id = 421,
| + | controller_id: ['instanceOfRekations', 96], |
| − | interface_button_id = 487,
| + | personal_data_id: ['subclassOfRekations', 421], |
| | + | interface_button_id: ['instanceOfRekations', 487] |
| | + | }, |
| | | | |
| | language = "en", | | language = "en", |
| Line 19: |
Line 21: |
| | standardValue: 'labels' + '.' + language + '.' + 'value' | | standardValue: 'labels' + '.' + language + '.' + 'value' |
| | }, | | }, |
| | + | |
| | mwEStruct = { | | mwEStruct = { |
| | wbXntity: 'config.values.wbEntity' | | wbXntity: 'config.values.wbEntity' |
| Line 24: |
Line 27: |
| | | | |
| | mw.loader.using( ['ext.gadget.WbProcessor', 'ext.gadget.PersonalDataBase', 'ext.gadget.PDOOUI'] , function (){ | | mw.loader.using( ['ext.gadget.WbProcessor', 'ext.gadget.PersonalDataBase', 'ext.gadget.PDOOUI'] , function (){ |
| − | console.log('Wbprocessor active');
| + | console.log('Wbprocessor active'); |
| − | console.log('Personaldatabase active');
| + | console.log('Personaldatabase active'); |
| − | console.log('User Interface active');
| + | console.log('User Interface active'); |
| | | | |
| − | current_entity = wbproc.checkentity( instanceof, id_list ); | + | wbproc = wbContainer(mw, mwEStruct[wbXntity]); |
| | | | |
| − | switch (current_entity) { | + | // Check whether the current page is in a relation of interest to an id of interest |
| − | case data_controller:
| + | current_entity = wbproc.checkentity( relational_id_list, wbEStruct['IDPropLoc'], wbEStruct['IDName'] ); |
| − | pdooui.controller_display();
| + | // This should return an object of relations and ids |
| − | break;
| |
| | | | |
| − | case personal_data:
| + | console.log(current_entity); |
| − | pdooui.input_display();
| |
| − | break;
| |
| | | | |
| − | case interface_button:
| + | // for each match, render the corresponding ui elements |
| − | pdooui.data_editor();
| + | // current_entity.forEach(pdooui.render); |
| − | }
| |
| | | | |
| | }); | | }); |