mkws-moved-to-github.git
10 years agoNo changes at all -- git is confused again
Mike Taylor [Tue, 29 Apr 2014 11:20:39 +0000 (12:20 +0100)]
No changes at all -- git is confused again

10 years agoRemove mkwsRecords magic, now in the widget.
Mike Taylor [Tue, 29 Apr 2014 11:19:26 +0000 (12:19 +0100)]
Remove mkwsRecords magic, now in the widget.
Likewise for creating the individual Facet widgets within Termlists.

10 years agoTermlists widget creates the individual Facet widgets therein.
Mike Taylor [Tue, 29 Apr 2014 11:11:44 +0000 (12:11 +0100)]
Termlists widget creates the individual Facet widgets therein.

10 years agolog() emits a stack-trace, rather than a function listing, when mkws.log_level >= 3.
Mike Taylor [Tue, 29 Apr 2014 10:32:52 +0000 (11:32 +0100)]
log() emits a stack-trace, rather than a function listing, when mkws.log_level >= 3.

10 years agoRemove Search and SearchForm code, now down in the widgets.
Mike Taylor [Mon, 28 Apr 2014 16:48:15 +0000 (17:48 +0100)]
Remove Search and SearchForm code, now down in the widgets.

10 years agoNew widgets Search and SearchForm.
Mike Taylor [Mon, 28 Apr 2014 16:47:42 +0000 (17:47 +0100)]
New widgets Search and SearchForm.

10 years agoCompletely remove the mkwsHtmlSwitch() function, since all it did was
Mike Taylor [Mon, 28 Apr 2014 16:29:45 +0000 (17:29 +0100)]
Completely remove the mkwsHtmlSwitch() function, since all it did was
generate the mkwsTargets inner HTML, which the widget now does for
itself.

10 years agoTargerts function generates its own inner HTML.
Mike Taylor [Mon, 28 Apr 2014 16:29:15 +0000 (17:29 +0100)]
Targerts function generates its own inner HTML.

10 years agoRemove UpperCase widget.
Mike Taylor [Mon, 28 Apr 2014 16:26:38 +0000 (17:26 +0100)]
Remove UpperCase widget.

10 years agoSwitch widget now generates it own HTML.
Mike Taylor [Mon, 28 Apr 2014 16:26:22 +0000 (17:26 +0100)]
Switch widget now generates it own HTML.
(For now it also generates a sub-widget, and we define that widget
type -- UpperCase -- too. That's just as a proof of concept. I'll
delete it in the next delta, but I want it in the VC history.)

10 years ago mkwsHtmlSwitch no longer sets up the .mkwsSwitch element, because now
Mike Taylor [Mon, 28 Apr 2014 16:23:18 +0000 (17:23 +0100)]
 mkwsHtmlSwitch no longer sets up the .mkwsSwitch element, because now
 the widget can do this itself.

10 years agoMain iteration to create widgets moved to new function
Mike Taylor [Mon, 28 Apr 2014 16:08:12 +0000 (17:08 +0100)]
Main iteration to create widgets moved to new function
makeWidgetsWithin. This now recursively calls itself to re-parse new
content generated within a widget during its creation. The upshot is
the widgets can now hold other widgets, and we're going to be able to
move a shedload of code out of mkws-team.js into the individual
widgets. Yay us! Fixes MKWS-180.

10 years agoMike's playground goes back to the vanilla MKWS application.
Mike Taylor [Mon, 28 Apr 2014 15:58:09 +0000 (16:58 +0100)]
Mike's playground goes back to the vanilla MKWS application.

10 years agoRework Makefile to better classify files.
Mike Taylor [Mon, 28 Apr 2014 11:10:17 +0000 (12:10 +0100)]
Rework Makefile to better classify files.

10 years agoThe widget.autosearch function now understands queries of the form
Mike Taylor [Sat, 26 Apr 2014 00:26:23 +0000 (01:26 +0100)]
The widget.autosearch function now understands queries of the form
!var!name (as well as !param!name and !path!number)

Allows the application to set the query into a named variable in
whatever way it wishes, and have MKWS obtain it from that variable.

Fixes bug MKWS-170.

10 years agoExample of !var!name autosearch.
Mike Taylor [Sat, 26 Apr 2014 00:22:35 +0000 (01:22 +0100)]
Example of !var!name autosearch.

10 years agoDo not include the MKWS stylesheet.
Mike Taylor [Fri, 25 Apr 2014 17:03:43 +0000 (18:03 +0100)]
Do not include the MKWS stylesheet.
Use only our own mkws-widget-reference stylesheet.

10 years ago<img> is emitted before <h1>, so it floats to the right of that, too.
Mike Taylor [Fri, 25 Apr 2014 17:01:08 +0000 (18:01 +0100)]
<img> is emitted before <h1>, so it floats to the right of that, too.

10 years agoReduce margin.
Mike Taylor [Fri, 25 Apr 2014 17:00:27 +0000 (18:00 +0100)]
Reduce margin.

10 years agoAdd styling for .mkwsReference img.
Mike Taylor [Fri, 25 Apr 2014 17:00:07 +0000 (18:00 +0100)]
Add styling for .mkwsReference img.

10 years agoRemove styling from generated <img>.
Mike Taylor [Fri, 25 Apr 2014 16:59:55 +0000 (17:59 +0100)]
Remove styling from generated <img>.
It belongs in the CSS file.

10 years agoAdd maximum width.
Mike Taylor [Fri, 25 Apr 2014 16:58:27 +0000 (17:58 +0100)]
Add maximum width.

10 years agoTweak style for better HTML
Mike Taylor [Fri, 25 Apr 2014 16:57:31 +0000 (17:57 +0100)]
Tweak style for better HTML

10 years agoBetter HTML.
Mike Taylor [Fri, 25 Apr 2014 16:56:48 +0000 (17:56 +0100)]
Better HTML.

10 years agoNew file mkws-widget-reference.css
Mike Taylor [Fri, 25 Apr 2014 16:55:43 +0000 (17:55 +0100)]
New file mkws-widget-reference.css
Styling for Reference Universe widget.

10 years agoRemove detailed record-logging from mkws-widget-reference.js
Mike Taylor [Fri, 25 Apr 2014 16:27:09 +0000 (17:27 +0100)]
Remove detailed record-logging from mkws-widget-reference.js

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 25 Apr 2014 16:25:48 +0000 (17:25 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoreference-universe.html tweaked to run from deployed MKWS.
Mike Taylor [Fri, 25 Apr 2014 16:25:28 +0000 (17:25 +0100)]
reference-universe.html tweaked to run from deployed MKWS.

10 years agoNew file, mkws-widget-reference.js
Mike Taylor [Fri, 25 Apr 2014 16:23:55 +0000 (17:23 +0100)]
New file, mkws-widget-reference.js
First widget to be defined by application code!

10 years agoNew file, reference-universe.html
Mike Taylor [Fri, 25 Apr 2014 16:08:58 +0000 (17:08 +0100)]
New file, reference-universe.html
Uses its own client-side widget code.

10 years agoThe "Record" widget publishes a "record" widget with the data from
Mike Taylor [Fri, 25 Apr 2014 16:04:34 +0000 (17:04 +0100)]
The "Record" widget publishes a "record" widget with the data from
each individual record that it's about to render. Useful mostly for
logging.

10 years agoAdd team.registerTemplate method.
Mike Taylor [Fri, 25 Apr 2014 16:03:11 +0000 (17:03 +0100)]
Add team.registerTemplate method.
Allows a template-name to be associated with text.
This mapping is stored in the new private variable m_tempateText.
Enables individual widgets to carry their own templates.

10 years agoadd config option to disable "Check MOTD after search" test
Wolfram Schneider [Fri, 25 Apr 2014 15:03:00 +0000 (15:03 +0000)]
add config option to disable "Check MOTD after search" test

10 years agouse global config for active_clients
Wolfram Schneider [Thu, 24 Apr 2014 14:46:32 +0000 (14:46 +0000)]
use global config for active_clients

10 years agowe test now with 17 targets, MKWS-163
Wolfram Schneider [Thu, 24 Apr 2014 14:43:08 +0000 (14:43 +0000)]
we test now with 17 targets, MKWS-163

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Thu, 24 Apr 2014 14:42:11 +0000 (14:42 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agowe test now with 17 targets, MKWS-163
Wolfram Schneider [Thu, 24 Apr 2014 14:41:49 +0000 (14:41 +0000)]
we test now with 17 targets, MKWS-163

10 years agotriggerSearch correctly handles the targets parameter once more.
Mike Taylor [Thu, 24 Apr 2014 13:58:16 +0000 (14:58 +0100)]
triggerSearch correctly handles the targets parameter once more.

10 years agoDo not attempt to hide the Termlists widget if it doesn't exist.
Mike Taylor [Thu, 24 Apr 2014 13:57:27 +0000 (14:57 +0100)]
Do not attempt to hide the Termlists widget if it doesn't exist.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 24 Apr 2014 13:43:14 +0000 (14:43 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoGenerate category limits correctly -- thanks to NE!
Mike Taylor [Thu, 24 Apr 2014 13:43:07 +0000 (14:43 +0100)]
Generate category limits correctly -- thanks to NE!

10 years agoset or re-set "lang" URL parameter correctly, MKWS-181
Wolfram Schneider [Thu, 24 Apr 2014 13:19:21 +0000 (13:19 +0000)]
set or re-set "lang" URL parameter correctly, MKWS-181

10 years agoRemove any old category filters when setting a new one.
Mike Taylor [Thu, 24 Apr 2014 11:45:11 +0000 (12:45 +0100)]
Remove any old category filters when setting a new one.
The special empty category-id means not to use a filter at all.

10 years agoIncorporate category limit into searches.
Mike Taylor [Thu, 24 Apr 2014 11:41:48 +0000 (12:41 +0100)]
Incorporate category limit into searches.

Instead of making a new filterSet on a new search, delete all
non-category filters from the old one.

10 years agoAdd visitCategories function
Mike Taylor [Thu, 24 Apr 2014 11:41:06 +0000 (12:41 +0100)]
Add visitCategories function
Add pp2catLimit function

10 years agoVertical ws
Mike Taylor [Thu, 24 Apr 2014 10:42:17 +0000 (11:42 +0100)]
Vertical ws

10 years agoAll limit/delimit invocations of triggerSearch fire only if there's a query.
Mike Taylor [Thu, 24 Apr 2014 10:35:55 +0000 (11:35 +0100)]
All limit/delimit invocations of triggerSearch fire only if there's a query.

10 years agolimitCategory now works.
Mike Taylor [Thu, 24 Apr 2014 10:34:58 +0000 (11:34 +0100)]
limitCategory now works.

10 years agoAdd categoryFilter factory.
Mike Taylor [Thu, 24 Apr 2014 10:32:58 +0000 (11:32 +0100)]
Add categoryFilter factory.

10 years agoSwitch on filter type, not presence of "id" field.
Mike Taylor [Thu, 24 Apr 2014 10:26:03 +0000 (11:26 +0100)]
Switch on filter type, not presence of "id" field.

10 years agoSwitch on filter type, not presence of "id" field.
Mike Taylor [Thu, 24 Apr 2014 10:23:06 +0000 (11:23 +0100)]
Switch on filter type, not presence of "id" field.

10 years agoUse new expicit filter factory functions, targetFilter and fieldFilter
Mike Taylor [Thu, 24 Apr 2014 09:53:13 +0000 (10:53 +0100)]
Use new expicit filter factory functions, targetFilter and fieldFilter

10 years agoReplace filter factory function with explicit targetFilter and
Mike Taylor [Thu, 24 Apr 2014 09:38:58 +0000 (10:38 +0100)]
Replace filter factory function with explicit targetFilter and
fieldFilter factories. These objects know their own types.
Currently that type is not used, but that will change.

10 years agoRemove pp2limit regression-testing scaffold.
Mike Taylor [Wed, 23 Apr 2014 16:44:41 +0000 (17:44 +0100)]
Remove pp2limit regression-testing scaffold.

10 years agoNew implementation of pp2limit method based on visitFields.
Mike Taylor [Wed, 23 Apr 2014 16:44:20 +0000 (17:44 +0100)]
New implementation of pp2limit method based on visitFields.

10 years agoRegression-test scaffolding for pp2limit method.
Mike Taylor [Wed, 23 Apr 2014 16:42:14 +0000 (17:42 +0100)]
Regression-test scaffolding for pp2limit method.

10 years agotriggerSearch logging now uses m_filterSet.toJSON()
Mike Taylor [Wed, 23 Apr 2014 16:40:44 +0000 (17:40 +0100)]
triggerSearch logging now uses m_filterSet.toJSON()

10 years agoRemove no-longer needed OLD-vs-NEW scaffolding around pp2filter.
Mike Taylor [Wed, 23 Apr 2014 16:40:18 +0000 (17:40 +0100)]
Remove no-longer needed OLD-vs-NEW scaffolding around pp2filter.

10 years agoNew pp2filter implementation that uses visitTargets.
Mike Taylor [Wed, 23 Apr 2014 16:39:50 +0000 (17:39 +0100)]
New pp2filter implementation that uses visitTargets.

10 years agoAdd so-far-meaningless wrapper to pp2filter.
Mike Taylor [Wed, 23 Apr 2014 16:36:13 +0000 (17:36 +0100)]
Add so-far-meaningless wrapper to pp2filter.
Will check new implementation matches old.

10 years agoAdd filterSet.toJSON method (used only for logging).
Mike Taylor [Wed, 23 Apr 2014 16:31:46 +0000 (17:31 +0100)]
Add filterSet.toJSON method (used only for logging).
Remove the encapsulation-violating filterSet.list method.

10 years agoRewrite Navi widget to use filters.visitTargets and visitFields.
Mike Taylor [Wed, 23 Apr 2014 16:25:36 +0000 (17:25 +0100)]
Rewrite Navi widget to use filters.visitTargets and visitFields.
HTML generation is now separated from filter-list inspection.

10 years agoAdd filterSet.visitTargets and filterSet.visitFields methods.
Mike Taylor [Wed, 23 Apr 2014 16:24:13 +0000 (17:24 +0100)]
Add filterSet.visitTargets and filterSet.visitFields methods.

10 years agoRename variable.
Mike Taylor [Wed, 23 Apr 2014 16:17:29 +0000 (17:17 +0100)]
Rename variable.

10 years agoTweak Navi widget for modified team.filters behaviour.
Mike Taylor [Wed, 23 Apr 2014 16:16:19 +0000 (17:16 +0100)]
Tweak Navi widget for modified team.filters behaviour.

10 years agoteam.filters returns the filterSet object, not its list.
Mike Taylor [Wed, 23 Apr 2014 16:16:00 +0000 (17:16 +0100)]
team.filters returns the filterSet object, not its list.

10 years agoGenerate target filters first, then keyword filters separately.
Mike Taylor [Wed, 23 Apr 2014 16:13:34 +0000 (17:13 +0100)]
Generate target filters first, then keyword filters separately.

10 years agoComment.
Mike Taylor [Wed, 23 Apr 2014 15:03:10 +0000 (16:03 +0100)]
Comment.

10 years agoMore compact fomatting in triggerSearch function.
Mike Taylor [Wed, 23 Apr 2014 15:01:37 +0000 (16:01 +0100)]
More compact fomatting in triggerSearch function.

10 years agoRemove outdated comment.
Mike Taylor [Wed, 23 Apr 2014 14:45:34 +0000 (15:45 +0100)]
Remove outdated comment.

10 years agoUse m_filterSet.pp2limit method instead of building by hand.
Mike Taylor [Wed, 23 Apr 2014 14:38:31 +0000 (15:38 +0100)]
Use m_filterSet.pp2limit method instead of building by hand.

10 years agoAdd pp2limit method
Mike Taylor [Wed, 23 Apr 2014 14:38:07 +0000 (15:38 +0100)]
Add pp2limit method

10 years agoSimplify
Mike Taylor [Wed, 23 Apr 2014 14:31:13 +0000 (15:31 +0100)]
Simplify

10 years agoUse m_filterSet.pp2filter method instead of building by hand.
Mike Taylor [Wed, 23 Apr 2014 14:30:47 +0000 (15:30 +0100)]
Use m_filterSet.pp2filter method instead of building by hand.

10 years agoAdd pp2filter method.
Mike Taylor [Wed, 23 Apr 2014 14:30:32 +0000 (15:30 +0100)]
Add pp2filter method.

10 years agokill team.removeMatchingFilters, use m_filterSet.removeMatching instead.
Mike Taylor [Wed, 23 Apr 2014 14:24:56 +0000 (15:24 +0100)]
kill team.removeMatchingFilters, use m_filterSet.removeMatching instead.

10 years agofilterSet factory accepts a team argument and stashes it for logging.
Mike Taylor [Wed, 23 Apr 2014 14:24:29 +0000 (15:24 +0100)]
filterSet factory accepts a team argument and stashes it for logging.

10 years agoteam.targetFiltered now simply delegates to m_filterSet.targetFiltered
Mike Taylor [Wed, 23 Apr 2014 14:06:16 +0000 (15:06 +0100)]
team.targetFiltered now simply delegates to m_filterSet.targetFiltered

10 years agoImplement filterSet.targetFiltered function
Mike Taylor [Wed, 23 Apr 2014 14:05:55 +0000 (15:05 +0100)]
Implement filterSet.targetFiltered function

10 years agoSuper-ugly port from having an explicit list called m_filters to
Mike Taylor [Wed, 23 Apr 2014 14:00:44 +0000 (15:00 +0100)]
Super-ugly port from having an explicit list called m_filters to
having a managed set called m_filterSet, but at the moment almost no
encapsulated functionality is used (or exists).

10 years agoInclude new source file, mkws-filter.js
Mike Taylor [Wed, 23 Apr 2014 13:52:19 +0000 (14:52 +0100)]
Include new source file, mkws-filter.js

10 years agoInclude new source file, mkws-filter.js
Mike Taylor [Wed, 23 Apr 2014 13:52:07 +0000 (14:52 +0100)]
Include new source file, mkws-filter.js

10 years agoInclude new source file, mkws-filter.js
Mike Taylor [Wed, 23 Apr 2014 13:51:47 +0000 (14:51 +0100)]
Include new source file, mkws-filter.js

10 years agoUse filter factory function.
Mike Taylor [Wed, 23 Apr 2014 13:44:03 +0000 (14:44 +0100)]
Use filter factory function.

10 years agofilter factory accepts name argument.
Mike Taylor [Wed, 23 Apr 2014 13:43:34 +0000 (14:43 +0100)]
filter factory accepts name argument.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Wed, 23 Apr 2014 12:36:05 +0000 (13:36 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Wed, 23 Apr 2014 12:17:46 +0000 (12:17 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agomininum number of targets (active clients) is 1-9 (was 10+)
Wolfram Schneider [Wed, 23 Apr 2014 12:16:11 +0000 (12:16 +0000)]
mininum number of targets (active clients) is 1-9 (was 10+)

We are currently testing with 16 targets, so we never notice
this until we disabled some solr targets and were down to 9 targets.

10 years agoSeparate generation of pp2filter and pp2limit
Mike Taylor [Wed, 23 Apr 2014 10:50:20 +0000 (11:50 +0100)]
Separate generation of pp2filter and pp2limit

10 years agoInclude mkws-filter.js in COMPONENTS.
Mike Taylor [Tue, 22 Apr 2014 16:54:48 +0000 (17:54 +0100)]
Include mkws-filter.js in COMPONENTS.

10 years agoNew, woefully inadequate.
Mike Taylor [Tue, 22 Apr 2014 16:54:33 +0000 (17:54 +0100)]
New, woefully inadequate.

10 years agoCategory filters use a "category" element.
Mike Taylor [Tue, 22 Apr 2014 15:53:20 +0000 (16:53 +0100)]
Category filters use a "category" element.

10 years agoChange code order.
Mike Taylor [Tue, 22 Apr 2014 15:25:22 +0000 (16:25 +0100)]
Change code order.

10 years agoAdd special ctaegory "[All]" to dropdown.
Mike Taylor [Tue, 22 Apr 2014 13:12:54 +0000 (14:12 +0100)]
Add special ctaegory "[All]" to dropdown.

10 years agoCategories widget invokes mkws.limitCategory
Mike Taylor [Tue, 22 Apr 2014 13:11:56 +0000 (14:11 +0100)]
Categories widget invokes mkws.limitCategory

10 years agoAdd mkws.limitCategory dispatcher for team.limitCategory
Mike Taylor [Tue, 22 Apr 2014 13:11:27 +0000 (14:11 +0100)]
Add mkws.limitCategory dispatcher for team.limitCategory

10 years agoAdd team.limitCategory function -- currently does nothing but logging.
Mike Taylor [Tue, 22 Apr 2014 13:10:42 +0000 (14:10 +0100)]
Add team.limitCategory function -- currently does nothing but logging.

10 years agoChange to use a dropdown for categories instead of a bullet-list.
Mike Taylor [Tue, 22 Apr 2014 12:52:00 +0000 (13:52 +0100)]
Change to use a dropdown for categories instead of a bullet-list.

10 years agodebugging hit counter
Wolfram Schneider [Sat, 19 Apr 2014 08:05:24 +0000 (08:05 +0000)]
debugging hit counter

10 years agodocumentation: hits count in source may be less or equal
Wolfram Schneider [Fri, 18 Apr 2014 17:58:55 +0000 (17:58 +0000)]
documentation: hits count in source may be less or equal