mkws-moved-to-github.git
9 years agore-organize mkws.js build process, MKWS-229
Wolfram Schneider [Fri, 27 Jun 2014 14:32:52 +0000 (16:32 +0200)]
re-organize mkws.js build process, MKWS-229

9 years agokeep directoy ./src/releases in git
Wolfram Schneider [Fri, 27 Jun 2014 14:09:37 +0000 (16:09 +0200)]
keep directoy ./src/releases in git

9 years agoremove comments
Wolfram Schneider [Fri, 27 Jun 2014 11:56:56 +0000 (13:56 +0200)]
remove comments

9 years agomake the package BSD::Resource optional
Wolfram Schneider [Fri, 27 Jun 2014 11:54:52 +0000 (13:54 +0200)]
make the package BSD::Resource optional

You should install the package on a server, but it does
not hurt if it is missing.

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Mike Taylor [Fri, 27 Jun 2014 10:19:54 +0000 (10:19 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

9 years agoAdd aliases for /tools/htdocs/, /src/, /jasmine/ and /test/ to Apache2 configuration...
Mike Taylor [Fri, 27 Jun 2014 10:19:41 +0000 (10:19 +0000)]
Add aliases for /tools/htdocs/, /src/, /jasmine/ and /test/ to Apache2 configuration for example.indexdata.com. Allows example.indexdata.com/jasmine-popup.html to run successfully

9 years agoperl warnings
Wolfram Schneider [Fri, 27 Jun 2014 09:43:09 +0000 (11:43 +0200)]
perl warnings

9 years agoset CPU limit, in case the alarm handler will be ignored, MKWS-157
Wolfram Schneider [Fri, 27 Jun 2014 09:36:17 +0000 (11:36 +0200)]
set CPU limit, in case the alarm handler will be ignored, MKWS-157

9 years agoupdate debian package list
Wolfram Schneider [Fri, 27 Jun 2014 09:33:01 +0000 (11:33 +0200)]
update debian package list

9 years agoChange use of maybe-defined "mkws_jQuery" to avoid assigning to an undefined variable.
Mike Taylor [Fri, 27 Jun 2014 09:05:30 +0000 (10:05 +0100)]
Change use of maybe-defined "mkws_jQuery" to avoid assigning to an undefined variable.
Fixes the "make phantomjs" Jenkins error:
Strict mode forbids implicit creation of global property 'mkws_jQuery'

Note: not yet tested as part of installation (which we need so we can
check that Seb's widgets embedded in the blog still work). I am
pushing so that I can onto the live site and verify that. If there's a
problem there, I'll revert and try again.

9 years agoIgnore "logs/mkws-jasmine.pid", generated by tests.
Mike Taylor [Fri, 27 Jun 2014 09:00:33 +0000 (10:00 +0100)]
Ignore "logs/mkws-jasmine.pid", generated by tests.

9 years agoNeed a proper test for undefined.
Jason Skomorowski [Tue, 24 Jun 2014 16:17:20 +0000 (12:17 -0400)]
Need a proper test for undefined.

9 years agoFix jQuery fix, $ gets clobbered by make even in single quotes.
Jason Skomorowski [Tue, 24 Jun 2014 16:10:36 +0000 (12:10 -0400)]
Fix jQuery fix, $ gets clobbered by make even in single quotes.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Jason Skomorowski [Tue, 24 Jun 2014 15:36:32 +0000 (11:36 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

9 years agoIsolate our version of jQuery in mkws-complete.js
Jason Skomorowski [Tue, 24 Jun 2014 15:35:14 +0000 (11:35 -0400)]
Isolate our version of jQuery in mkws-complete.js

9 years agoAdd missing trailing semicolon after HTML entity.
Mike Taylor [Tue, 24 Jun 2014 10:16:16 +0000 (12:16 +0200)]
Add missing trailing semicolon after HTML entity.

9 years agoAll "targets" settings now use pz:id= instead of pz:id~ (pattern matching)
Mike Taylor [Tue, 24 Jun 2014 10:15:45 +0000 (12:15 +0200)]
All "targets" settings now use pz:id= instead of pz:id~ (pattern matching)

All "targets" settings now have (incorrect, but working) trailing
slashes. Why is this? The Service-proxy has code that mangles ZURLs
for the use of the CF (adding rich-database-name parameters), and its
lax regular expression wrongly interprets the trailing ":3552" as a
port number. So it "fixes" this ZURL by appending a slash, and then
uses the fixed version of the URL as its unique ID. The result is that
even though the ZURL in the Torus record is
        lui.indexdata.com:8080/solr4/select?fq=database:3552
the ID that it uses is
        lui.indexdata.com:8080/solr4/select?fq=database:3552/
And indeed if I change the MKWS code to use this ID instead of the
correct one, it can be made to work.

These should soon be replaced by much less fragile UDB-based target
filtering.

9 years agoChange pz:id URLs to Harvester's new format.
Mike Taylor [Tue, 24 Jun 2014 07:25:46 +0000 (09:25 +0200)]
Change pz:id URLs to Harvester's new format.

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Fri, 13 Jun 2014 13:17:48 +0000 (13:17 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

9 years agotest the machine "sansa"
Wolfram Schneider [Fri, 13 Jun 2014 13:17:38 +0000 (13:17 +0000)]
test the machine "sansa"

9 years agodisplay in the title list is a little thin for a lot of these resources, MKWS-205
Wolfram Schneider [Fri, 13 Jun 2014 13:00:59 +0000 (13:00 +0000)]
display in the title list is a little thin for a lot of these resources, MKWS-205

Additional values to title* are: date, location, and medium

9 years agoSet window.name on creation of new tab.
Mike Taylor [Thu, 12 Jun 2014 16:33:18 +0000 (17:33 +0100)]
Set window.name on creation of new tab.
Enables pz2.js to create tab-specific cookies.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 12 Jun 2014 12:02:42 +0000 (13:02 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

9 years agoAttempt to inhibit the display of the sole facet's title.
Mike Taylor [Thu, 12 Jun 2014 12:02:37 +0000 (13:02 +0100)]
Attempt to inhibit the display of the sole facet's title.
(Not yet working -- don't know why not.)

9 years agoshorter text
Wolfram Schneider [Thu, 12 Jun 2014 09:42:09 +0000 (09:42 +0000)]
shorter text

9 years agoAdd styles for mkwsFacet and contained items.
Mike Taylor [Wed, 11 Jun 2014 15:32:14 +0000 (16:32 +0100)]
Add styles for mkwsFacet and contained items.
Not sure how these ever got missed out.

9 years agocheck number of targets (again)
Wolfram Schneider [Wed, 11 Jun 2014 15:11:52 +0000 (15:11 +0000)]
check number of targets (again)

9 years agouse a our main service proxy with mkws test account
Wolfram Schneider [Wed, 11 Jun 2014 15:11:18 +0000 (15:11 +0000)]
use a our main service proxy with mkws test account

9 years agoAdd logging.
Mike Taylor [Wed, 11 Jun 2014 14:59:51 +0000 (15:59 +0100)]
Add logging.

9 years agoAdd aliases to make Jasmine test run correctly without symlinks.
Mike Taylor [Wed, 11 Jun 2014 14:33:52 +0000 (15:33 +0100)]
Add aliases to make Jasmine test run correctly without symlinks.

9 years agoTry to use CredoFacet template.
Mike Taylor [Wed, 11 Jun 2014 11:46:46 +0000 (12:46 +0100)]
Try to use CredoFacet template.

9 years agoa test for CORS
Wolfram Schneider [Wed, 11 Jun 2014 10:27:01 +0000 (10:27 +0000)]
a test for CORS

with JS/CSS from external sites, and standard SP config

9 years agorun everything locally, without x.mkws.indexdata.com host
Wolfram Schneider [Wed, 11 Jun 2014 10:23:02 +0000 (10:23 +0000)]
run everything locally, without x.mkws.indexdata.com host

this makes testing and development easier

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Wed, 11 Jun 2014 09:40:07 +0000 (09:40 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

9 years agosync from jasmine-local-popup.html
Wolfram Schneider [Wed, 11 Jun 2014 09:36:20 +0000 (09:36 +0000)]
sync from jasmine-local-popup.html

9 years agorun SP on the host arya only
Wolfram Schneider [Wed, 11 Jun 2014 07:52:24 +0000 (07:52 +0000)]
run SP on the host arya only

this makes debugging easier if we bypass the HA load balancer.

9 years agoModified to be a recipient for mike.html's source-facet links.
Mike Taylor [Tue, 10 Jun 2014 15:53:16 +0000 (16:53 +0100)]
Modified to be a recipient for mike.html's source-facet links.

9 years agoAdd new mkwsTemplate_facet-Sources template.
Mike Taylor [Tue, 10 Jun 2014 15:52:36 +0000 (16:52 +0100)]
Add new mkwsTemplate_facet-Sources template.

9 years agoRename the two "template" variables to t1 and t2.
Mike Taylor [Tue, 10 Jun 2014 15:47:29 +0000 (16:47 +0100)]
Rename the two "template" variables to t1 and t2.
t2 is now precomputed, rather than once each time through the loop.
Crucially, t2 now tries to load a field-specific facet template before
backing down to the generic one.

9 years agoloadTemplate returns null when defaultTemplate can't come up with
Mike Taylor [Tue, 10 Jun 2014 15:45:54 +0000 (16:45 +0100)]
loadTemplate returns null when defaultTemplate can't come up with
anything.

9 years agomkws.defaultTemplate simply returns null when there is no template,
Mike Taylor [Tue, 10 Jun 2014 15:45:08 +0000 (16:45 +0100)]
mkws.defaultTemplate simply returns null when there is no template,
rather than throwing an error. This allows clever calling code to back
off along a sequence of attempted template names.

9 years agoRename variable.
Mike Taylor [Tue, 10 Jun 2014 15:24:41 +0000 (16:24 +0100)]
Rename variable.

9 years agoTweak Facet template not to generate an action when fn is undefined.
Mike Taylor [Tue, 10 Jun 2014 15:11:34 +0000 (16:11 +0100)]
Tweak Facet template not to generate an action when fn is undefined.

9 years agoGenerate individual facets using a template rather than code.
Mike Taylor [Tue, 10 Jun 2014 15:06:55 +0000 (16:06 +0100)]
Generate individual facets using a template rather than code.

9 years agoAdd default template for facets.
Mike Taylor [Tue, 10 Jun 2014 15:05:38 +0000 (16:05 +0100)]
Add default template for facets.

9 years agoFacet value is directly included in action, rather than having it refer obliquely...
Mike Taylor [Tue, 10 Jun 2014 14:31:12 +0000 (15:31 +0100)]
Facet value is directly included in action, rather than having it refer obliquely to this.firstChild.nodeValue.

9 years agoRadically simplify and generalise generation of facet HTML.
Mike Taylor [Tue, 10 Jun 2014 12:37:17 +0000 (13:37 +0100)]
Radically simplify and generalise generation of facet HTML.
Preparation for moving the (much simpler) HTML-generation into a template.

9 years agoInvert logic.
Mike Taylor [Tue, 10 Jun 2014 12:02:22 +0000 (13:02 +0100)]
Invert logic.

9 years agoOmit no-longer-needed target_id from limitTarget links.
Mike Taylor [Tue, 10 Jun 2014 11:57:26 +0000 (12:57 +0100)]
Omit no-longer-needed target_id from limitTarget links.

9 years agomkws.limitTarget invocations use data[i].id directly, rather than by
Mike Taylor [Tue, 10 Jun 2014 11:56:43 +0000 (12:56 +0100)]
mkws.limitTarget invocations use data[i].id directly, rather than by
click-time reference to this.getAttribute('target_id')

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Tue, 10 Jun 2014 10:22:47 +0000 (11:22 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

9 years agoExample of an active facet-heading.
Mike Taylor [Tue, 10 Jun 2014 10:21:48 +0000 (11:21 +0100)]
Example of an active facet-heading.
Shows how to fix MKWS-214.

9 years agoEmit each facet's title using the template named facetTitle-NAME,
Mike Taylor [Tue, 10 Jun 2014 10:21:01 +0000 (11:21 +0100)]
Emit each facet's title using the template named facetTitle-NAME,
falling back to the old hardwired (maybe translated) caption in the
common case when there is no such template. The template is invoked on
a data object that at present contains only the current query. This
provides the means to fix MKWS-214.

9 years agoThe loadTemplate function now takes an optional fallbackString
Mike Taylor [Tue, 10 Jun 2014 10:19:38 +0000 (11:19 +0100)]
The loadTemplate function now takes an optional fallbackString
argument, to be used when there is no HTML definition of the template
(either in this team or in the global area), and the team has not
registered a template of this name. The fallback string is used ahead
of the global default.

9 years agoFlexible widths on images for credobootstrap
Jason Skomorowski [Mon, 9 Jun 2014 16:29:43 +0000 (12:29 -0400)]
Flexible widths on images for credobootstrap

9 years agoCredo bootstrap wider with narrower images
Jason Skomorowski [Mon, 9 Jun 2014 16:08:05 +0000 (12:08 -0400)]
Credo bootstrap wider with narrower images

9 years agoBS tweak as Suggested by Jason.
Mike Taylor [Mon, 9 Jun 2014 15:50:40 +0000 (16:50 +0100)]
BS tweak as Suggested by Jason.

9 years agoImage-list has maxrecs=3
Mike Taylor [Mon, 9 Jun 2014 15:21:12 +0000 (16:21 +0100)]
Image-list has maxrecs=3

9 years agoMore logging
Mike Taylor [Mon, 9 Jun 2014 15:18:16 +0000 (16:18 +0100)]
More logging

9 years agoImage-count down to 3, as Bootstrap apparently can't display four
Mike Taylor [Mon, 9 Jun 2014 15:10:23 +0000 (16:10 +0100)]
Image-count down to 3, as Bootstrap apparently can't display four
non-tiny images without non-trivial work.

9 years agoUse new google_images_js connector for images -- see CONN-270.
Mike Taylor [Mon, 9 Jun 2014 15:05:40 +0000 (16:05 +0100)]
Use new google_images_js connector for images -- see CONN-270.
md-title is rendered without HTML quoting, so entites work.

9 years agoUse new google_images_js connector for images -- see CONN-270.
Mike Taylor [Mon, 9 Jun 2014 14:57:05 +0000 (15:57 +0100)]
Use new google_images_js connector for images -- see CONN-270.
md-title is rendered without HTML quoting, so entites work.

9 years agoRestrict News/Articles/Books panes to 10 entries each.
Mike Taylor [Mon, 9 Jun 2014 14:36:19 +0000 (15:36 +0100)]
Restrict News/Articles/Books panes to 10 entries each.

9 years agoRestrict News/Articles/Books panes to 10 entries each.
Mike Taylor [Mon, 9 Jun 2014 14:36:05 +0000 (15:36 +0100)]
Restrict News/Articles/Books panes to 10 entries each.

9 years agoSwap position of News and All Targets
Mike Taylor [Mon, 9 Jun 2014 14:31:16 +0000 (15:31 +0100)]
Swap position of News and All Targets

9 years agoRemove caption reference to Credo
Mike Taylor [Mon, 9 Jun 2014 14:30:24 +0000 (15:30 +0100)]
Remove caption reference to Credo

9 years agoRemove caption reference to Credo
Mike Taylor [Mon, 9 Jun 2014 14:30:12 +0000 (15:30 +0100)]
Remove caption reference to Credo

9 years agoGet rid of Mindmap and Suggested Resources panes (both unimplemented)
Mike Taylor [Mon, 9 Jun 2014 14:29:59 +0000 (15:29 +0100)]
Get rid of Mindmap and Suggested Resources panes (both unimplemented)

9 years agoGet rid of Mindmap and Suggested Resources panes (both unimplemented)
Mike Taylor [Mon, 9 Jun 2014 14:27:59 +0000 (15:27 +0100)]
Get rid of Mindmap and Suggested Resources panes (both unimplemented)

9 years agoNew file, choose-target.html
Mike Taylor [Mon, 9 Jun 2014 11:53:57 +0000 (12:53 +0100)]
New file, choose-target.html

9 years agoAdd URL-parameter target selection.
Mike Taylor [Mon, 9 Jun 2014 11:52:51 +0000 (12:52 +0100)]
Add URL-parameter target selection.

9 years agoautosearch function no longer expands the value of the autosearch
Mike Taylor [Mon, 9 Jun 2014 11:51:46 +0000 (12:51 +0100)]
autosearch function no longer expands the value of the autosearch
parameter, as this has already been done when the widget object was
constructed.

9 years agoExpand all config-value attributes of the form !TYPE!PARAM
Mike Taylor [Mon, 9 Jun 2014 11:50:58 +0000 (12:50 +0100)]
Expand all config-value attributes of the form !TYPE!PARAM

9 years agoMove unnecessary "this." from log invocations.
Mike Taylor [Mon, 9 Jun 2014 11:18:01 +0000 (12:18 +0100)]
Move unnecessary "this." from log invocations.

9 years agoExtract value-expansion code from widget.autosearch into its own function widget...
Mike Taylor [Mon, 9 Jun 2014 11:16:43 +0000 (12:16 +0100)]
Extract value-expansion code from widget.autosearch into its own function widget.expandValue.

9 years agoAdd target specification to autosearch.
Mike Taylor [Mon, 9 Jun 2014 10:49:09 +0000 (11:49 +0100)]
Add target specification to autosearch.

9 years agoRevert CSS, add autosearch.
Mike Taylor [Mon, 9 Jun 2014 10:47:17 +0000 (11:47 +0100)]
Revert CSS, add autosearch.

9 years agoFix typo.
Mike Taylor [Fri, 6 Jun 2014 16:49:57 +0000 (17:49 +0100)]
Fix typo.

9 years agoAll four service-proxy-auth URLs now use "action=check,login".
Mike Taylor [Fri, 6 Jun 2014 16:48:02 +0000 (17:48 +0100)]
All four service-proxy-auth URLs now use "action=check,login".

9 years agoUse explicit SP-auth URL with "check" action.
Mike Taylor [Fri, 6 Jun 2014 16:47:19 +0000 (17:47 +0100)]
Use explicit SP-auth URL with "check" action.
This searches FAST!

9 years agoThe onStat function logs "complete" when publishing the "complete" event.
Mike Taylor [Fri, 6 Jun 2014 16:45:28 +0000 (17:45 +0100)]
The onStat function logs "complete" when publishing the "complete" event.

9 years agoGo back to using mkwsResults.
Mike Taylor [Fri, 6 Jun 2014 16:38:45 +0000 (17:38 +0100)]
Go back to using mkwsResults.

9 years agoRemove autosearches.
Mike Taylor [Fri, 6 Jun 2014 16:38:19 +0000 (17:38 +0100)]
Remove autosearches.

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 6 Jun 2014 16:07:46 +0000 (17:07 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

9 years agoThe autosearch method now detects when multiple autosearches are
Mike Taylor [Fri, 6 Jun 2014 16:06:22 +0000 (17:06 +0100)]
The autosearch method now detects when multiple autosearches are
requested on the same team. It reports and ignores benign duplicates,
and at present does the same with conflicts. It could instead throw an
error in that case.

9 years agoAdd conflicting second autosearch.
Mike Taylor [Fri, 6 Jun 2014 16:01:41 +0000 (17:01 +0100)]
Add conflicting second autosearch.

9 years agoa single CSS file for Koha MKWS
Wolfram Schneider [Fri, 6 Jun 2014 14:29:14 +0000 (14:29 +0000)]
a single CSS file for Koha MKWS

9 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 6 Jun 2014 14:21:09 +0000 (15:21 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

9 years agoDouble autosearch
Mike Taylor [Fri, 6 Jun 2014 13:56:34 +0000 (14:56 +0100)]
Double autosearch

9 years agoRemove facets configuration.
Mike Taylor [Fri, 6 Jun 2014 13:35:41 +0000 (14:35 +0100)]
Remove facets configuration.

9 years agoBack to standard simple app.
Mike Taylor [Fri, 6 Jun 2014 13:34:59 +0000 (14:34 +0100)]
Back to standard simple app.

9 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Fri, 6 Jun 2014 13:34:38 +0000 (13:34 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

9 years agoif we make the left sidebar bigger,we must reduce size in the middle, MKWS-219
Wolfram Schneider [Fri, 6 Jun 2014 13:32:53 +0000 (13:32 +0000)]
if we make the left sidebar bigger,we must reduce size in the middle, MKWS-219

9 years agoIndividual facets register their interest in autosearching.
Mike Taylor [Fri, 6 Jun 2014 13:19:30 +0000 (14:19 +0100)]
Individual facets register their interest in autosearching.
Fixes the easy part of bug MKWS-216.

9 years agoCopy of Wolfram's http://mkws-dev.indexdata.com/mkws-209a.html but using local JS.
Mike Taylor [Fri, 6 Jun 2014 13:16:13 +0000 (14:16 +0100)]
Copy of Wolfram's mkws-dev.indexdata.com/mkws-209a.html but using local JS.

9 years agoThe service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path...
Wolfram Schneider [Fri, 6 Jun 2014 11:11:20 +0000 (11:11 +0000)]
The service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path, MKWS-203

9 years agoThe service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path...
Wolfram Schneider [Fri, 6 Jun 2014 11:07:21 +0000 (11:07 +0000)]
The service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path, MKWS-203

9 years agoThe service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path...
Wolfram Schneider [Fri, 6 Jun 2014 11:05:16 +0000 (11:05 +0000)]
The service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path, MKWS-203

9 years agoThe service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path...
Wolfram Schneider [Fri, 6 Jun 2014 10:53:12 +0000 (10:53 +0000)]
The service proxy auth URL shortcut may contain ;jsessionid= as part of the URL path, MKWS-203

Note: jsessionid=... is not an URL parameter, it is before ?command

9 years agoKoha + mkws-widget-reference.css
Wolfram Schneider [Wed, 4 Jun 2014 13:55:43 +0000 (13:55 +0000)]
Koha + mkws-widget-reference.css