mkws-moved-to-github.git
10 years agoEvery single invocation of triggerSearch was preceded by 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.

10 years agoloadSelect is removed: no longer needed.
Mike Taylor [Fri, 21 Mar 2014 12:44:19 +0000 (12:44 +0000)]
loadSelect is removed: no longer needed.

10 years agoonSortChange and onPerpageChange set their member variables directly.
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.

10 years agoBreak mkwsResults down to its components.
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.

10 years agoSplit onSelectDdChange into two separate functions, onSortChange and onPerpageChange.
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.

10 years agoRemove unnecessary test.
Mike Taylor [Thu, 20 Mar 2014 11:56:32 +0000 (11:56 +0000)]
Remove unnecessary test.

10 years agoComment typo
Mike Taylor [Thu, 20 Mar 2014 11:46:43 +0000 (11:46 +0000)]
Comment typo

10 years agoSimplify
Mike Taylor [Thu, 20 Mar 2014 11:11:09 +0000 (11:11 +0000)]
Simplify

10 years agoReimplement the Navi widget with pub/sub.
Mike Taylor [Thu, 20 Mar 2014 10:14:32 +0000 (10:14 +0000)]
Reimplement the Navi widget with pub/sub.

10 years agoWidget-promotion switch is now driven by a table.
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.

10 years agoMake renderDetails() available as team member-function.
Mike Taylor [Thu, 20 Mar 2014 09:49:18 +0000 (09:49 +0000)]
Make renderDetails() available as team member-function.

10 years agoComment out unnecessarily noisy test/spec/mkws-pazpar2.js logging.
Mike Taylor [Thu, 20 Mar 2014 09:46:52 +0000 (09:46 +0000)]
Comment out unnecessarily noisy test/spec/mkws-pazpar2.js logging.

10 years agoMore explicit logging for widget-creation
Mike Taylor [Wed, 19 Mar 2014 17:57:56 +0000 (17:57 +0000)]
More explicit logging for widget-creation

10 years agoTeam-specific debug function now visible as team.debug.
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.

10 years agoFix rendering of team-name in widget-creation logging.
Mike Taylor [Wed, 19 Mar 2014 16:50:28 +0000 (16:50 +0000)]
Fix rendering of team-name in widget-creation logging.

10 years agoMove Records widget into its own object.
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.

10 years agoSimplify.
Mike Taylor [Wed, 19 Mar 2014 16:07:27 +0000 (16:07 +0000)]
Simplify.

10 years agoMove pager code into its own object.
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

10 years agoClarify comment.
Mike Taylor [Tue, 18 Mar 2014 17:40:56 +0000 (17:40 +0000)]
Clarify comment.

10 years agoFix comment.
Mike Taylor [Tue, 18 Mar 2014 17:40:40 +0000 (17:40 +0000)]
Fix comment.

10 years agoTermlists widget reimplenented using pub/sub.
Mike Taylor [Tue, 18 Mar 2014 17:40:05 +0000 (17:40 +0000)]
Termlists widget reimplenented using pub/sub.

10 years agoWalk across all MKWS nodes twice: once to make teams, then to make widgets.
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.

10 years agoRevert mike.html to a vanilla search UI.
Mike Taylor [Tue, 18 Mar 2014 16:47:32 +0000 (16:47 +0000)]
Revert mike.html to a vanilla search UI.

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
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

10 years agofix typo in last commit
Wolfram Schneider [Tue, 18 Mar 2014 15:43:37 +0000 (15:43 +0000)]
fix typo in last commit

10 years agocheck for single active client before clicking on a record
Wolfram Schneider [Tue, 18 Mar 2014 15:41:22 +0000 (15:41 +0000)]
check for single active client before clicking on a record

10 years agoRename member variable m_curDetRecData to m_currentRecordData.
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.

10 years agoRename member variable m_curDetRecId to m_currentRecordId.
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.

10 years agoRename local variable.
Mike Taylor [Tue, 18 Mar 2014 14:25:14 +0000 (14:25 +0000)]
Rename local variable.

10 years agoRename m_curPage to m_currentPage.
Mike Taylor [Tue, 18 Mar 2014 14:09:14 +0000 (14:09 +0000)]
Rename m_curPage to m_currentPage.
Fixes part of MKWS-123

10 years agoRename m_totalRec to m_totalRecordCount
Mike Taylor [Tue, 18 Mar 2014 14:07:38 +0000 (14:07 +0000)]
Rename m_totalRec to m_totalRecordCount

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

10 years agoRename m_debug_time to m_debugTime.
Mike Taylor [Tue, 18 Mar 2014 12:45:30 +0000 (12:45 +0000)]
Rename m_debug_time to m_debugTime.

10 years agoRename "sort" parameter to "sortOrder" in functions newSearch and triggerSearch.
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.

10 years agoRename m_sort member variable to m_sortOrder
Mike Taylor [Tue, 18 Mar 2014 12:40:26 +0000 (12:40 +0000)]
Rename m_sort member variable to m_sortOrder

10 years agoFix Check status client counter check
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()

10 years agocleanup .unbind() code
Wolfram Schneider [Tue, 18 Mar 2014 09:55:56 +0000 (09:55 +0000)]
cleanup .unbind() code

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
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

10 years agoimprove javascript object check from last commit
Wolfram Schneider [Tue, 18 Mar 2014 09:49:55 +0000 (09:49 +0000)]
improve javascript object check from last commit

10 years agowait for stat() change in DOM, MKWS-139
Wolfram Schneider [Mon, 17 Mar 2014 20:39:56 +0000 (20:39 +0000)]
wait for stat() change in DOM, MKWS-139

10 years agopazpar2() extension uses an empty config object if nothing is passed
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.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

10 years agoNew mike.html, tests jQuery plugin.
Mike Taylor [Mon, 17 Mar 2014 17:30:11 +0000 (17:30 +0000)]
New mike.html, tests jQuery plugin.

10 years agoallow hostnames with dash ("-"), e.g mkc-cproxy.indexdata.com
Wolfram Schneider [Mon, 17 Mar 2014 14:23:12 +0000 (14:23 +0000)]
allow hostnames with dash ("-"), e.g mkc-cproxy.indexdata.com

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
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

10 years agoFix typo.
Mike Taylor [Mon, 17 Mar 2014 12:35:47 +0000 (12:35 +0000)]
Fix typo.

10 years agofix HANDLEBARS_URL value
Wolfram Schneider [Mon, 17 Mar 2014 08:01:04 +0000 (08:01 +0000)]
fix HANDLEBARS_URL value

10 years agofetching a file from the Internet must be atomar
Wolfram Schneider [Mon, 17 Mar 2014 07:45:16 +0000 (08:45 +0100)]
fetching a file from the Internet must be atomar

10 years agoadd perltidy target
Wolfram Schneider [Sun, 16 Mar 2014 13:07:15 +0000 (13:07 +0000)]
add perltidy target

10 years agoincrease timeout to 16 seconds
Wolfram Schneider [Sun, 16 Mar 2014 13:04:26 +0000 (13:04 +0000)]
increase timeout to 16 seconds

10 years agoASCII dump of HTML page (not fully implemented yet).
Wolfram Schneider [Fri, 14 Mar 2014 18:13:30 +0000 (18:13 +0000)]
ASCII dump of HTML page (not fully implemented yet).

10 years agouse new script phantom/run-jasmine.js
Wolfram Schneider [Fri, 14 Mar 2014 14:25:08 +0000 (14:25 +0000)]
use new script phantom/run-jasmine.js

10 years agorewrite test to display better error messages and avoid race conditions, MKWS-135
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

10 years agoIE8 does not support DOMSubtreeModified, use propertychange, MKWS-77
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

10 years agoIE8 does not support the map() function, and we have to use the jquery $.map(), MKWS-77
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

10 years ago./bomb.pl will use the slightly larger timeout as the node.js script (was fixed 100...
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)

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
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

10 years agoCheck for DOMSubtreeModified and a first link
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.

10 years agowhitespace
Heikki Levanto [Mon, 10 Mar 2014 14:10:51 +0000 (15:10 +0100)]
whitespace

10 years agowait for new records HTML data before we click on a record, MKWS-137
Wolfram Schneider [Mon, 10 Mar 2014 13:59:01 +0000 (13:59 +0000)]
wait for new records HTML data before we click on a record, MKWS-137

If we click on a limit source link we have to wait until the pz2 show()
record request returns fresh data from the new result set. This is
implemented by the DOMSubtreeModified event.

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Heikki Levanto [Mon, 10 Mar 2014 11:52:56 +0000 (12:52 +0100)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agoOne small comment
Heikki Levanto [Mon, 10 Mar 2014 11:52:50 +0000 (12:52 +0100)]
One small comment

10 years agoLoC has records without links, in that case the test should not fail
Wolfram Schneider [Mon, 10 Mar 2014 10:40:22 +0000 (10:40 +0000)]
LoC has records without links, in that case the test should not fail

10 years agotypo in help message
Wolfram Schneider [Fri, 7 Mar 2014 17:47:46 +0000 (17:47 +0000)]
typo in help message

10 years agoremove support for older jquery version
Wolfram Schneider [Fri, 7 Mar 2014 17:22:17 +0000 (17:22 +0000)]
remove support for older jquery version

10 years agoMinimum jquery version is now 1.7.2 (was 1.6.4)
Wolfram Schneider [Fri, 7 Mar 2014 17:21:29 +0000 (17:21 +0000)]
Minimum jquery version is now 1.7.2 (was 1.6.4)

10 years agoadd mkwsMOTD
Wolfram Schneider [Fri, 7 Mar 2014 17:13:04 +0000 (17:13 +0000)]
add mkwsMOTD

10 years agofix xpath for URL extract check
Wolfram Schneider [Fri, 7 Mar 2014 17:06:52 +0000 (17:06 +0000)]
fix xpath for URL extract check

10 years agoalias p -> phantomjs
Wolfram Schneider [Fri, 7 Mar 2014 16:54:58 +0000 (16:54 +0000)]
alias p -> phantomjs

10 years agoless debugging noise
Wolfram Schneider [Fri, 7 Mar 2014 16:54:03 +0000 (16:54 +0000)]
less debugging noise

10 years agoif there are no "good" sources, ignore the source facet check. MKWS-137
Wolfram Schneider [Fri, 7 Mar 2014 16:51:12 +0000 (16:51 +0000)]
if there are no "good" sources, ignore the source facet check. MKWS-137

10 years agorefactor: make a new test "Check record list", called before "Show record"
Wolfram Schneider [Fri, 7 Mar 2014 16:43:34 +0000 (16:43 +0000)]
refactor: make a new test "Check record list", called before "Show record"

10 years agoindent
Wolfram Schneider [Fri, 7 Mar 2014 16:42:30 +0000 (16:42 +0000)]
indent

10 years agoDetect the case when no author is good enough to click. MKWS-137
Heikki Levanto [Fri, 7 Mar 2014 15:01:32 +0000 (16:01 +0100)]
Detect the case when no author is good enough to click. MKWS-137

Detects and logs the situation. Unfortunately, when that happens,
the next test seems to fail...

10 years agoFix race condition in "Show record" MKWS-137
Heikki Levanto [Fri, 7 Mar 2014 14:32:42 +0000 (15:32 +0100)]
Fix race condition in "Show record"  MKWS-137

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Heikki Levanto [Fri, 7 Mar 2014 12:45:36 +0000 (13:45 +0100)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

Conflicts:
test/spec/mkws-pazpar2.js

10 years agoDo note test return value of .trigger("click")
Heikki Levanto [Fri, 7 Mar 2014 12:43:57 +0000 (13:43 +0100)]
Do note test return value of .trigger("click")

It should return this, but seems that some times it does not.
Anyway, that test is not really testing our things. The
subsequent tests on content and visibility should catch a missed
click anyway.

10 years agoDo not test the return value of .trigger("click")
Heikki Levanto [Fri, 7 Mar 2014 12:40:03 +0000 (13:40 +0100)]
Do not test the return value of .trigger("click")

The tirgger() is supposed to return this, but seems not to do
so always. The subsequent tests confirm that the click event
has happened anyway.

If the click event does not happen for some reason, the next
tests will fail, so I believe the testing is as good.

10 years agoMore about setting up apache
Heikki Levanto [Fri, 7 Mar 2014 12:39:28 +0000 (13:39 +0100)]
More about setting up apache

needed to do this to work on my home machine, so I documented
what was needed.

10 years agoadd a prefix for jasmine console log messages
Wolfram Schneider [Fri, 7 Mar 2014 10:25:49 +0000 (10:25 +0000)]
add a prefix for jasmine console log messages

10 years agoUnit tests for the MOTD MKWS-134
Wolfram Schneider [Fri, 7 Mar 2014 10:15:35 +0000 (10:15 +0000)]
Unit tests for the MOTD  MKWS-134

10 years agoUnit tests for the MOTD MKWS-134
Heikki Levanto [Thu, 6 Mar 2014 14:43:25 +0000 (15:43 +0100)]
Unit tests for the MOTD  MKWS-134

Added tests for the MOTD being moved to the right place before search
and not being visible after search. Temporarily broke the code to
verify my tests.

10 years agoMinor comment about environment
Heikki Levanto [Wed, 5 Mar 2014 14:35:21 +0000 (15:35 +0100)]
Minor comment about environment

10 years agoAutomatic termlist widgets now work:
Mike Taylor [Wed, 5 Mar 2014 10:04:16 +0000 (10:04 +0000)]
Automatic termlist widgets now work:
<div id='mkwsTermlists' autosearch='dinosaur' sort='relevance'></div>

10 years agoMike's playground reverted to an auto-widget.
Mike Taylor [Wed, 5 Mar 2014 09:57:09 +0000 (09:57 +0000)]
Mike's playground reverted to an auto-widget.

10 years agoRemove redundant utility function mkws.parseQuerystring().
Mike Taylor [Wed, 5 Mar 2014 09:54:45 +0000 (09:54 +0000)]
Remove redundant utility function mkws.parseQuerystring().
Use mkws.getParameterByName() instead.

10 years agoRewrite comment.
Mike Taylor [Wed, 5 Mar 2014 09:46:25 +0000 (09:46 +0000)]
Rewrite comment.

10 years agoMove URL-parsing utility functions out of the team.
Mike Taylor [Wed, 5 Mar 2014 09:45:03 +0000 (09:45 +0000)]
Move URL-parsing utility functions out of the team.

10 years agoMove mkws.defaultTemplate() out of the team structure.
Mike Taylor [Wed, 5 Mar 2014 09:33:38 +0000 (09:33 +0000)]
Move mkws.defaultTemplate() out of the team structure.
Fixes part of MKWS-126.

10 years agoFix whitespace.
Mike Taylor [Wed, 5 Mar 2014 09:25:16 +0000 (09:25 +0000)]
Fix whitespace.

10 years agoRemove ALL ID-based targets from CSS.
Mike Taylor [Wed, 5 Mar 2014 09:24:33 +0000 (09:24 +0000)]
Remove ALL ID-based targets from CSS.
Fixes the last part of MWKS-117.

10 years agoSet full-record HTML using jQuery rather than innerHTML.
Mike Taylor [Wed, 5 Mar 2014 09:19:41 +0000 (09:19 +0000)]
Set full-record HTML using jQuery rather than innerHTML.
Fixes the last part of MKWS-22.

10 years agoChange Mike's playground to two-team version.
Mike Taylor [Tue, 4 Mar 2014 17:21:23 +0000 (17:21 +0000)]
Change Mike's playground to two-team version.

10 years agoComment.
Mike Taylor [Tue, 4 Mar 2014 17:13:23 +0000 (17:13 +0000)]
Comment.

10 years agoMove event-queue code into teams.
Mike Taylor [Tue, 4 Mar 2014 17:11:19 +0000 (17:11 +0000)]
Move event-queue code into teams.
Events are now subscribed/published on team-specific basis.
As a result, we don't need the ugly faceted event names.

10 years agostat event-queueing is per-team.
Mike Taylor [Tue, 4 Mar 2014 16:48:16 +0000 (16:48 +0000)]
stat event-queueing is per-team.

10 years agoNew team member-function, name().
Mike Taylor [Tue, 4 Mar 2014 15:24:31 +0000 (15:24 +0000)]
New team member-function, name().
"targets" events are now registered per-team.

10 years agoMove "return" higher up widget factory method.
Mike Taylor [Tue, 4 Mar 2014 15:04:36 +0000 (15:04 +0000)]
Move "return" higher up widget factory method.
Local functions come after it.

10 years agoRemove no-longer pertinent comment.
Mike Taylor [Tue, 4 Mar 2014 15:03:48 +0000 (15:03 +0000)]
Remove no-longer pertinent comment.

10 years agoRemove unused teamName arguments from several pz2 callbacks.
Mike Taylor [Tue, 4 Mar 2014 14:56:10 +0000 (14:56 +0000)]
Remove unused teamName arguments from several pz2 callbacks.