X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=examples%2Fhtdocs%2Fmkws-widget-credo-bs.js;h=49651eac6ddf4e77b177cb2a1268c20278f87e94;hb=04a9e4d925f8fe128247afc96c0a9dff86de2391;hp=7c143c1d5c9e1ec8dbcfea1b1a8888a5d4f30bb3;hpb=becf2587f3e103ddcf0247e55bc9de7ec261f5a4;p=mkws-moved-to-github.git
diff --git a/examples/htdocs/mkws-widget-credo-bs.js b/examples/htdocs/mkws-widget-credo-bs.js
index 7c143c1..49651ea 100644
--- a/examples/htdocs/mkws-widget-credo-bs.js
+++ b/examples/htdocs/mkws-widget-credo-bs.js
@@ -25,14 +25,14 @@ mkws.registerWidgetType('Credo', function() {
var that = this;
this.team.registerTemplate('CredoImage', '\
-
\
+
\
');
@@ -47,8 +47,6 @@ mkws.registerWidgetType('Credo', function() {
s.push('
');
s.push('');
- s.push(section('mindmap', 'Create a Mind Map for ',
- this.subwidget('Mindmap', { _team: 'main', facet: 'subject' })));
s.push(section('topics', 'Related Topics',
this.subwidget('Facet', { _team: 'main', facet: 'subject' })));
s.push('
');
@@ -56,21 +54,19 @@ mkws.registerWidgetType('Credo', function() {
s.push('');
s.push('');
- s.push(section('image col-md-12', 'Images', this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage' })));
+ s.push(section('image col-md-12', 'Images', this.subwidget('GoogleImage', { maxrecs: 4, template: 'CredoImage', target: 'google_images_js' })));
s.push('
');
s.push('');
- s.push(section('entries clearfix col-md-4 col-sm-6', 'Credo Entries',
- this.subwidget('Records', { _team: 'main' })));
+ s.push(section('entries clearfix col-md-4 col-sm-6', 'News',
+ this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news', perpage: 10 })));
s.push(section('articles clearfix col-md-4 col-sm-6', 'Articles',
- this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles' })));
+ this.subwidget('Records', { _team: 'articles', targetfilter: 'categories=articles', perpage: 10 })));
s.push(section('books clearfix col-md-4 col-sm-6', 'Books',
- this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books' })));
- s.push(section('news col-md-4 col-sm-6', 'News',
- this.subwidget('Records', { _team: 'news', targetfilter: 'categories=news' })));
- s.push(section('resources col-md-4 col-sm-6', 'Suggested Resources',
- "### Not yet implemented"));
+ this.subwidget('Records', { _team: 'books', targetfilter: 'categories=books', perpage: 10 })));
+ s.push(section('news col-md-4 col-sm-6', 'Results from all targets',
+ this.subwidget('Records', { _team: 'main' })));
s.push('
');
this.node.html(s.join(''));
@@ -111,8 +107,3 @@ mkws.registerWidgetType('Credo', function() {
return s.join('');
}
});
-
-
-mkws.registerWidgetType('Mindmap', function() {
- this.node.html("### We do not yet have a Mindmap widget");
-});