Mike Taylor [Tue, 25 Mar 2014 17:19:03 +0000 (17:19 +0000)]
Add mkws.js itself to the installable list.
Mike Taylor [Tue, 25 Mar 2014 17:16:51 +0000 (17:16 +0000)]
New tools/htdocs/.gitignore
Ignore files generated and installed from ../../src
Mike Taylor [Tue, 25 Mar 2014 17:15:48 +0000 (17:15 +0000)]
Add new "install" and "uninstall" rules.
Mike Taylor [Tue, 25 Mar 2014 17:12:11 +0000 (17:12 +0000)]
Update "help" target
Mike Taylor [Tue, 25 Mar 2014 17:11:55 +0000 (17:11 +0000)]
Remove extraneous comment.
Mike Taylor [Tue, 25 Mar 2014 17:11:41 +0000 (17:11 +0000)]
Remove mkws-js-min rule, this is now the default "all".
Mike Taylor [Tue, 25 Mar 2014 17:10:57 +0000 (17:10 +0000)]
Remove redundant target
Mike Taylor [Tue, 25 Mar 2014 17:10:01 +0000 (17:10 +0000)]
Get rid of abstraction ${MKWS_WS} -- other similar files don't have one.
Mike Taylor [Tue, 25 Mar 2014 17:09:02 +0000 (17:09 +0000)]
Add new INSTALLABLE definition of files to be copied to ../tools/htdocs
Mike Taylor [Tue, 25 Mar 2014 16:18:03 +0000 (16:18 +0000)]
Move tools/htdocs/.gitignore to ../../src
Mike Taylor [Tue, 25 Mar 2014 16:16:47 +0000 (16:16 +0000)]
Generated mkws-complete.js now includes mkws-jquery.js
Mike Taylor [Tue, 25 Mar 2014 16:13:31 +0000 (16:13 +0000)]
Remove mkws-complete-syntax-check target, an alias for mkws-js-min
Mike Taylor [Tue, 25 Mar 2014 15:52:11 +0000 (15:52 +0000)]
New doc/Makefile, uses rules extracted from ../src/Makefile
Mike Taylor [Tue, 25 Mar 2014 15:51:12 +0000 (15:51 +0000)]
Move documentation-related rules out to new ../doc/Makefile
Mike Taylor [Tue, 25 Mar 2014 15:38:39 +0000 (15:38 +0000)]
Fix top-level Makefile to invoke make on src and doc
Mike Taylor [Tue, 25 Mar 2014 15:35:56 +0000 (15:35 +0000)]
Move source-code into new top-level src directory
Mike Taylor [Tue, 25 Mar 2014 15:13:53 +0000 (15:13 +0000)]
Move documentation files from tools/htdocs into new top-level doc directory
Mike Taylor [Tue, 25 Mar 2014 15:12:35 +0000 (15:12 +0000)]
Hasn't been needed for a long time
Mike Taylor [Tue, 25 Mar 2014 15:11:59 +0000 (15:11 +0000)]
This was long ago obsoleted by an appendix of the whitepaper
Mike Taylor [Tue, 25 Mar 2014 11:50:21 +0000 (11:50 +0000)]
debug function uses mkws.log rather than old mkws.debug.
Mike Taylor [Tue, 25 Mar 2014 11:42:35 +0000 (11:42 +0000)]
Typo in comment.
Mike Taylor [Tue, 25 Mar 2014 11:37:49 +0000 (11:37 +0000)]
When the log_level setting is not provided, fall back to the old
"debug_level" setting for backwards compatibility.
Mike Taylor [Tue, 25 Mar 2014 11:26:35 +0000 (11:26 +0000)]
Use mkws.log instead of old mkws.debug
Mike Taylor [Tue, 25 Mar 2014 11:26:19 +0000 (11:26 +0000)]
Rename all debug() functions to log()
Mike Taylor [Tue, 25 Mar 2014 11:26:08 +0000 (11:26 +0000)]
Add an mkwsMOTD element.,
Mike Taylor [Tue, 25 Mar 2014 11:18:33 +0000 (11:18 +0000)]
Add widget-level debug() function.
Mike Taylor [Tue, 25 Mar 2014 10:54:20 +0000 (10:54 +0000)]
Change around details of how record elements are recognised.
We now use classes for details divs.
Mike Taylor [Mon, 24 Mar 2014 17:39:12 +0000 (17:39 +0000)]
mkwsDet elements now also move the team to a CSS class.
Mike Taylor [Mon, 24 Mar 2014 17:25:58 +0000 (17:25 +0000)]
Record elements now have team-name removed from their ID, but have the
usual mkwsTeam_NAME in their CSS classes. This makes them more like
widgets, and indeed they are now candidates for true widgetification.
Mike Taylor [Mon, 24 Mar 2014 16:56:15 +0000 (16:56 +0000)]
Abstract record-element ID generation to new recordElementId function
This is used by promoteRecords and onRecord
Sanitised ID into a form that can be used in a jQuery selector.
Mike Taylor [Fri, 21 Mar 2014 17:08:49 +0000 (17:08 +0000)]
Remove extraneous debugging.
Mike Taylor [Fri, 21 Mar 2014 17:08:40 +0000 (17:08 +0000)]
Invert submitted() login in Sort and Perpage widgets.
Just to simplify the code.
Mike Taylor [Fri, 21 Mar 2014 17:07:28 +0000 (17:07 +0000)]
Simplify Sort and Perpage widget to use anonymous closures.
Disposes of the onSortChange and onPerpageChange functions.
Mike Taylor [Fri, 21 Mar 2014 17:05:50 +0000 (17:05 +0000)]
No "sort"/"perpage" events in the pub/sub queue.
Mike Taylor [Fri, 21 Mar 2014 17:00:53 +0000 (17:00 +0000)]
Reorder lines.
Mike Taylor [Fri, 21 Mar 2014 17:00:19 +0000 (17:00 +0000)]
Pub/subify two more widgets: Sort and Perpage.
Involves:
* adding one new team accessor, submitted
* adding two new team setters, set_sortOrder and set_perpage
* making team method resetPage externally visible
* adding new resetPage externally visible team method reShow
Mike Taylor [Fri, 21 Mar 2014 16:34:54 +0000 (16:34 +0000)]
Simplify a lot of code that unnecessarily checks that a jQuery
node-set is non-empty before doing something with it. Of course, doing
anything to an empty node-set no-ops anyway.
Mike Taylor [Fri, 21 Mar 2014 12:50:47 +0000 (12:50 +0000)]
Vertical whitespace.
Mike Taylor [Fri, 21 Mar 2014 12:49:50 +0000 (12:49 +0000)]
Reorder some functions.
Mike Taylor [Fri, 21 Mar 2014 12:48:42 +0000 (12:48 +0000)]
redrawNavi was a one-line function invoked in only one place.
Inline it.
Mike Taylor [Fri, 21 Mar 2014 12:48:15 +0000 (12:48 +0000)]
Switch order of resetPage/redrawNavi invocations.
Mike Taylor [Fri, 21 Mar 2014 12:47:35 +0000 (12:47 +0000)]
Every single invocation of triggerSearch was preceded by invocations
of redrawNavi and resetPage. I removed those invocations and now
triggerSearch itself starts by invoking them.
Mike Taylor [Fri, 21 Mar 2014 12:44:19 +0000 (12:44 +0000)]
loadSelect is removed: no longer needed.
Mike Taylor [Fri, 21 Mar 2014 12:34:56 +0000 (12:34 +0000)]
onSortChange and onPerpageChange set their member variables directly.
loadSelect() is now just an assertion that things are set correctly.
Mike Taylor [Fri, 21 Mar 2014 12:11:26 +0000 (12:11 +0000)]
Break mkwsResults down to its components.
Use jQuery 1.11, to avoid stupid "event.returnValue is
deprecated. Please use the standard event.preventDefault() instead"
warning.
Mike Taylor [Fri, 21 Mar 2014 11:00:06 +0000 (11:00 +0000)]
Split onSelectDdChange into two separate functions, onSortChange and onPerpageChange.
Prepares the way for pub/sub widgetising those controls.
Mike Taylor [Thu, 20 Mar 2014 11:56:32 +0000 (11:56 +0000)]
Remove unnecessary test.
Mike Taylor [Thu, 20 Mar 2014 11:46:43 +0000 (11:46 +0000)]
Comment typo
Mike Taylor [Thu, 20 Mar 2014 11:11:09 +0000 (11:11 +0000)]
Simplify
Mike Taylor [Thu, 20 Mar 2014 10:14:32 +0000 (10:14 +0000)]
Reimplement the Navi widget with pub/sub.
Mike Taylor [Thu, 20 Mar 2014 09:49:57 +0000 (09:49 +0000)]
Widget-promotion switch is now driven by a table.
Avoids repetitive code, and enables external extensions.
Mike Taylor [Thu, 20 Mar 2014 09:49:18 +0000 (09:49 +0000)]
Make renderDetails() available as team member-function.
Mike Taylor [Thu, 20 Mar 2014 09:46:52 +0000 (09:46 +0000)]
Comment out unnecessarily noisy test/spec/mkws-pazpar2.js logging.
Mike Taylor [Wed, 19 Mar 2014 17:57:56 +0000 (17:57 +0000)]
More explicit logging for widget-creation
Mike Taylor [Wed, 19 Mar 2014 17:02:48 +0000 (17:02 +0000)]
Team-specific debug function now visible as team.debug.
This is used in the widget constructor.
Mike Taylor [Wed, 19 Mar 2014 16:50:28 +0000 (16:50 +0000)]
Fix rendering of team-name in widget-creation logging.
Mike Taylor [Wed, 19 Mar 2014 16:45:13 +0000 (16:45 +0000)]
Move Records widget into its own object.
Needs two more team accessor methods:
currentRecordId, currentRecordData
I'm not really happy about these, as that data properly belongs to the
widget. But at the moment, they're still used by team.showDetails, so
they can't be moved yet.
Mike Taylor [Wed, 19 Mar 2014 16:07:27 +0000 (16:07 +0000)]
Simplify.
Mike Taylor [Wed, 19 Mar 2014 15:56:36 +0000 (15:56 +0000)]
Move pager code into its own object.
To support this add three new accessor methods to the team object:
perpage, totalRecordCount, currentPage
Mike Taylor [Tue, 18 Mar 2014 17:40:56 +0000 (17:40 +0000)]
Clarify comment.
Mike Taylor [Tue, 18 Mar 2014 17:40:40 +0000 (17:40 +0000)]
Fix comment.
Mike Taylor [Tue, 18 Mar 2014 17:40:05 +0000 (17:40 +0000)]
Termlists widget reimplenented using pub/sub.
Mike Taylor [Tue, 18 Mar 2014 17:39:29 +0000 (17:39 +0000)]
Walk across all MKWS nodes twice: once to make teams, then to make widgets.
It has to be done in two passes because the first pass has the
side-effect of creating some widget elements, e.g. mkwsResults has
mkwsTermlists created within it.
So far, no functional differences.
Mike Taylor [Tue, 18 Mar 2014 16:47:32 +0000 (16:47 +0000)]
Revert mike.html to a vanilla search UI.
Wolfram Schneider [Tue, 18 Mar 2014 15:43:46 +0000 (15:43 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Tue, 18 Mar 2014 15:43:37 +0000 (15:43 +0000)]
fix typo in last commit
Wolfram Schneider [Tue, 18 Mar 2014 15:41:22 +0000 (15:41 +0000)]
check for single active client before clicking on a record
Mike Taylor [Tue, 18 Mar 2014 14:28:20 +0000 (14:28 +0000)]
Rename member variable m_curDetRecData to m_currentRecordData.
Fixes the last part of MKWS-123.
Mike Taylor [Tue, 18 Mar 2014 14:26:52 +0000 (14:26 +0000)]
Rename member variable m_curDetRecId to m_currentRecordId.
Fixes part of MKWS-123.
Mike Taylor [Tue, 18 Mar 2014 14:25:14 +0000 (14:25 +0000)]
Rename local variable.
Mike Taylor [Tue, 18 Mar 2014 14:09:14 +0000 (14:09 +0000)]
Rename m_curPage to m_currentPage.
Fixes part of MKWS-123
Mike Taylor [Tue, 18 Mar 2014 14:07:38 +0000 (14:07 +0000)]
Rename m_totalRec to m_totalRecordCount
Mike Taylor [Tue, 18 Mar 2014 12:47:31 +0000 (12:47 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Tue, 18 Mar 2014 12:45:30 +0000 (12:45 +0000)]
Rename m_debug_time to m_debugTime.
Mike Taylor [Tue, 18 Mar 2014 12:44:40 +0000 (12:44 +0000)]
Rename "sort" parameter to "sortOrder" in functions newSearch and triggerSearch.
Rename "sort" local variable to "sortOrder" in function runAutoSearch.
Mike Taylor [Tue, 18 Mar 2014 12:40:26 +0000 (12:40 +0000)]
Rename m_sort member variable to m_sortOrder
Wolfram Schneider [Tue, 18 Mar 2014 09:59:02 +0000 (09:59 +0000)]
Fix Check status client counter check
jasmine run() must be called after waitsFor()
Wolfram Schneider [Tue, 18 Mar 2014 09:55:56 +0000 (09:55 +0000)]
cleanup .unbind() code
Wolfram Schneider [Tue, 18 Mar 2014 09:51:27 +0000 (09:51 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Conflicts:
tools/htdocs/mkws-jquery.js
Wolfram Schneider [Tue, 18 Mar 2014 09:49:55 +0000 (09:49 +0000)]
improve javascript object check from last commit
Wolfram Schneider [Mon, 17 Mar 2014 20:39:56 +0000 (20:39 +0000)]
wait for stat() change in DOM, MKWS-139
Mike Taylor [Mon, 17 Mar 2014 17:30:47 +0000 (17:30 +0000)]
pazpar2() extension uses an empty config object if nothing is passed
in. Fixes bug MKWS-95 properly.
Mike Taylor [Mon, 17 Mar 2014 17:30:15 +0000 (17:30 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Mon, 17 Mar 2014 17:30:11 +0000 (17:30 +0000)]
New mike.html, tests jQuery plugin.
Wolfram Schneider [Mon, 17 Mar 2014 14:23:12 +0000 (14:23 +0000)]
allow hostnames with dash ("-"), e.g mkc-cproxy.indexdata.com
Mike Taylor [Mon, 17 Mar 2014 12:35:51 +0000 (12:35 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Mon, 17 Mar 2014 12:35:47 +0000 (12:35 +0000)]
Fix typo.
Wolfram Schneider [Mon, 17 Mar 2014 08:01:04 +0000 (08:01 +0000)]
fix HANDLEBARS_URL value
Wolfram Schneider [Mon, 17 Mar 2014 07:45:16 +0000 (08:45 +0100)]
fetching a file from the Internet must be atomar
Wolfram Schneider [Sun, 16 Mar 2014 13:07:15 +0000 (13:07 +0000)]
add perltidy target
Wolfram Schneider [Sun, 16 Mar 2014 13:04:26 +0000 (13:04 +0000)]
increase timeout to 16 seconds
Wolfram Schneider [Fri, 14 Mar 2014 18:13:30 +0000 (18:13 +0000)]
ASCII dump of HTML page (not fully implemented yet).
Wolfram Schneider [Fri, 14 Mar 2014 14:25:08 +0000 (14:25 +0000)]
use new script phantom/run-jasmine.js
Wolfram Schneider [Fri, 14 Mar 2014 14:21:42 +0000 (14:21 +0000)]
rewrite test to display better error messages and avoid race conditions, MKWS-135
Wolfram Schneider [Thu, 13 Mar 2014 11:13:40 +0000 (11:13 +0000)]
IE8 does not support DOMSubtreeModified, use propertychange, MKWS-77
see http://stackoverflow.com/questions/
19869547/domsubtreemodified-equivalent-in-ie
Wolfram Schneider [Thu, 13 Mar 2014 11:03:47 +0000 (11:03 +0000)]
IE8 does not support the map() function, and we have to use the jquery $.map(), MKWS-77
Wolfram Schneider [Mon, 10 Mar 2014 14:52:59 +0000 (14:52 +0000)]
./bomb.pl will use the slightly larger timeout as the node.js script (was fixed 100 seconds)
Wolfram Schneider [Mon, 10 Mar 2014 14:32:53 +0000 (14:32 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Mon, 10 Mar 2014 14:23:13 +0000 (14:23 +0000)]
Check for DOMSubtreeModified and a first link
some browser sents 2 DOMSubtreeModified events, other only one. Make
sure it will works for both, and check for the first link too.
Heikki Levanto [Mon, 10 Mar 2014 14:10:51 +0000 (15:10 +0100)]
whitespace