From: Mike Taylor Date: Fri, 22 Aug 2014 09:54:35 +0000 (+0100) Subject: Change mkws-widget-categories.js to access the pazpar2 URL via the new X-Git-Tag: 1.0.0~39^2~7^2~1 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=2d914706d9ef6ca54171b2d18b7d6e7b68c7c280;p=mkws-moved-to-github.git Change mkws-widget-categories.js to access the pazpar2 URL via the new API function. But this makes me uneasy -- that seems like too low a level for the widget to be operating at. I think it should be sending its categories request via the team's existing m_paz object. --- diff --git a/src/mkws-widget-categories.js b/src/mkws-widget-categories.js index 339e28b..6982db8 100644 --- a/src/mkws-widget-categories.js +++ b/src/mkws-widget-categories.js @@ -7,7 +7,7 @@ mkws.registerWidgetType('Categories', function() { } this.team.queue("authenticated").subscribe(function(authName, realm) { - var req = new pzHttpRequest(that.config.pazpar2_url + "?command=categories", function(err) { + var req = new pzHttpRequest(mkws.pazpar2_url() + "?command=categories", function(err) { alert("HTTP call for categories failed: " + err) });