1 mkws.registerWidgetType('Credo', function() {
5 // Main panel: encylopaedia and images on the left, topics on the right
8 s.push('<td class="main">');
10 s.push('<div class="encyclopaedia">');
11 s.push('<div class="title">Topic Page: ### title</div>');
12 s.push(this.subwidget('Reference'));
15 s.push('<div class="images">');
16 s.push('<div class="title">Images</div>');
17 s.push(this.subwidget('Images', { /* ### config */ } ));
22 s.push('<td class="side">');
24 s.push('<div class="mindmap">');
25 s.push('<div class="title">Create a Mind Map for ### title</div>');
26 // ### Is there a way to make a mind-map?
29 s.push('<div class="topics">');
30 s.push('<div class="title">Related Topics</div>');
31 s.push(this.subwidget('Facet', { facet: 'subject' }));
40 s.push('<div class="entries">');
41 s.push('<div class="title">Credo Entries</div>');
42 s.push(this.subwidget('Records', { /* ### config */ }));
47 // More TRs for Articles, Books, News, Suggested Resources
50 this.node.html(s.join(''));