X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=examples%2Fhtdocs%2Fmkws-widget-ru.js;h=20762f7cc98ffb34857d6615c83f2e1a938fd33f;hb=31898c6914fe6358e2404e3eac28de95385ecf83;hp=0fb6c678c31abb925de1303b245f023a47c7153a;hpb=ee2ed5b10dc202c31b82fa58c440c5fa444e5d06;p=mkws-moved-to-github.git diff --git a/examples/htdocs/mkws-widget-ru.js b/examples/htdocs/mkws-widget-ru.js index 0fb6c67..20762f7 100644 --- a/examples/htdocs/mkws-widget-ru.js +++ b/examples/htdocs/mkws-widget-ru.js @@ -1,23 +1,36 @@ -var mkws_config = {service_proxy_auth: "http://mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc"}; -console.log(JSON.stringify(mkws.config)); +var mkws_config = { + service_proxy_auth: "http://sp-mkws.indexdata.com/service-proxy/?command=auth&action=login&username=paratext&password=paratext_mkc" +}; -mkws.registerWidgetType('ReferenceUniverse', function() { +mkws.registerWidgetType('reference-universe', function() { if (!this.config.perpage) this.config.perpage = 5; if (!this.config.sort) this.config.sort = "position"; - this.config.template = 'ReferenceUniverse'; - this.team.registerTemplate('ReferenceUniverse', '\ -{{#mkws-first md-electronic-url}}\ -\ -{{/mkws-first}}\ - {{md-title}}\ -\ -{{#if md-title-remainder}}\ - {{md-title-remainder}}\ -{{/if}}\ -{{#if md-title-responsibility}}\ - {{md-title-responsibility}}\ -{{/if}}\ + this.team.registerTemplate('reference-universe', '\ +