mkws-moved-to-github.git
10 years agoRemove extraneous logging.
Mike Taylor [Thu, 30 Jan 2014 15:49:57 +0000 (15:49 +0000)]
Remove extraneous logging.

10 years agoonFormSubmitEventHandler() is now team-aware.
Mike Taylor [Thu, 30 Jan 2014 15:42:25 +0000 (15:42 +0000)]
onFormSubmitEventHandler() is now team-aware.

10 years agoComment.
Mike Taylor [Thu, 30 Jan 2014 12:25:48 +0000 (12:25 +0000)]
Comment.

10 years agoClumsy function name _make_mkws_team() reduced to just team().
Mike Taylor [Thu, 30 Jan 2014 12:05:59 +0000 (12:05 +0000)]
Clumsy function name _make_mkws_team() reduced to just team().
Less explict, but prettier and follows JS tradition.

10 years agoAdd `args' argument to "onrecord" callback, so that it correctly
Mike Taylor [Thu, 30 Jan 2014 12:04:56 +0000 (12:04 +0000)]
Add `args' argument to "onrecord" callback, so that it correctly
receives the teamName parameter (not that it uses it yet, or anything)

10 years agoMuch better encapsulation for mkws.showDetails().
Mike Taylor [Thu, 30 Jan 2014 11:35:23 +0000 (11:35 +0000)]
Much better encapsulation for mkws.showDetails().
This is now a single-line function that invokes the same-named
member function on the appropriate team object. That member
function now does all the actual work, and can access member
variables without explicit leading "team.". We no longer need
the encapsulation-violation team.m_paz reference.

10 years agoPopup records now work for all result-lists, as the request is now
Mike Taylor [Wed, 29 Jan 2014 13:57:41 +0000 (13:57 +0000)]
Popup records now work for all result-lists, as the request is now
sent to the correct m_paz. Fixes bug MKWS-106.

10 years agoRemove gratuitous third search-box.
Mike Taylor [Wed, 29 Jan 2014 13:56:58 +0000 (13:56 +0000)]
Remove gratuitous third search-box.

10 years agoWell, mike2.html is back, as a simple by-hand regression-test.
Mike Taylor [Wed, 29 Jan 2014 13:56:39 +0000 (13:56 +0000)]
Well, mike2.html is back, as a simple by-hand regression-test.

10 years agoCopy of auto3.html that runs on the local development copy of MKWS.
Mike Taylor [Wed, 29 Jan 2014 12:24:17 +0000 (12:24 +0000)]
Copy of auto3.html that runs on the local development copy of MKWS.

10 years agoTowards multiple search forms.
Mike Taylor [Tue, 28 Jan 2014 17:25:19 +0000 (17:25 +0000)]
Towards multiple search forms.

Jeez, this is painful. Browser JavaScript must be the world
development environment since the batch-processing systems of the
early 1970s. Every error is diagnosed by silent no-opping.

10 years ago.mkwsSearch also included in team-instantiation loop
Mike Taylor [Tue, 28 Jan 2014 15:33:30 +0000 (15:33 +0000)]
.mkwsSearch also included in team-instantiation loop

10 years agoStyling for search-box is now keyed on class as well as id.
Mike Taylor [Tue, 28 Jan 2014 11:21:11 +0000 (11:21 +0000)]
Styling for search-box is now keyed on class as well as id.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Mon, 27 Jan 2014 17:26:44 +0000 (17:26 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoMultiple search forms.
Mike Taylor [Mon, 27 Jan 2014 17:26:04 +0000 (17:26 +0000)]
Multiple search forms.

10 years ago*Finally* land on correct code for setting HTML for all mkwsSearch objects.
Mike Taylor [Mon, 27 Jan 2014 17:24:58 +0000 (17:24 +0000)]
*Finally* land on correct code for setting HTML for all mkwsSearch objects.

10 years agoFactor team-name extraction out into new utility function
Mike Taylor [Mon, 27 Jan 2014 16:14:52 +0000 (16:14 +0000)]
Factor team-name extraction out into new utility function
mkws.handle_node_with_team()

10 years agoRemove two special-case clauses that cancelled out.
Mike Taylor [Mon, 27 Jan 2014 15:06:46 +0000 (15:06 +0000)]
Remove two special-case clauses that cancelled out.
It's nice to take out eight lines of code with no effect :-)

10 years agoTeam-name defaults to AUTO.
Mike Taylor [Mon, 27 Jan 2014 14:56:12 +0000 (14:56 +0000)]
Team-name defaults to AUTO.

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Mon, 27 Jan 2014 14:44:08 +0000 (14:44 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agowait up to 4 seconds for facet sources
Wolfram Schneider [Mon, 27 Jan 2014 14:43:05 +0000 (14:43 +0000)]
wait up to 4 seconds for facet sources

10 years agoObsolete
Mike Taylor [Mon, 27 Jan 2014 14:32:25 +0000 (14:32 +0000)]
Obsolete

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Mon, 27 Jan 2014 14:16:16 +0000 (14:16 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoFix /service-proxy-auth/ rewrite rule to use new user/pw
Mike Taylor [Mon, 27 Jan 2014 14:16:11 +0000 (14:16 +0000)]
Fix /service-proxy-auth/ rewrite rule to use new user/pw

10 years agoUse protocol-relative URLs for default mkws.indexdata.com server, MKWS-98
Wolfram Schneider [Mon, 27 Jan 2014 13:57:23 +0000 (13:57 +0000)]
Use protocol-relative URLs for default mkws.indexdata.com server, MKWS-98

10 years agoCopy of mike2 except for non-functional SP-auth line.
Mike Taylor [Mon, 27 Jan 2014 12:22:56 +0000 (12:22 +0000)]
Copy of mike2 except for non-functional SP-auth line.

10 years agoRemove unnecessary copyright tag.
Mike Taylor [Mon, 27 Jan 2014 12:20:35 +0000 (12:20 +0000)]
Remove unnecessary copyright tag.
(Trying to bring mike.html and mike2.html into convergence)

10 years agoDo not say "topic page"
Mike Taylor [Sat, 25 Jan 2014 16:14:55 +0000 (16:14 +0000)]
Do not say "topic page"

10 years agoAdd CSS styles.
Mike Taylor [Sat, 25 Jan 2014 15:26:12 +0000 (15:26 +0000)]
Add CSS styles.

10 years agoBetter fixed-width table.
Mike Taylor [Fri, 24 Jan 2014 17:09:40 +0000 (17:09 +0000)]
Better fixed-width table.
Add link to MKWS.

10 years agoBetter fixed-width table.
Mike Taylor [Fri, 24 Jan 2014 17:06:23 +0000 (17:06 +0000)]
Better fixed-width table.
More informative title.
Add link to MKWS.

10 years agoBetter fixed-width table columns.
Mike Taylor [Fri, 24 Jan 2014 16:58:33 +0000 (16:58 +0000)]
Better fixed-width table columns.

10 years agoAdd link to MKWS
Mike Taylor [Fri, 24 Jan 2014 16:28:16 +0000 (16:28 +0000)]
Add link to MKWS

10 years agoFix LoC ID.
Mike Taylor [Fri, 24 Jan 2014 16:24:20 +0000 (16:24 +0000)]
Fix LoC ID.

10 years agoTitle
Mike Taylor [Fri, 24 Jan 2014 16:23:19 +0000 (16:23 +0000)]
Title

10 years agoNew file auto3.html
Mike Taylor [Fri, 24 Jan 2014 16:21:17 +0000 (16:21 +0000)]
New file auto3.html

10 years agoNew file, demos multiple auto-widgets
Mike Taylor [Fri, 24 Jan 2014 15:56:18 +0000 (15:56 +0000)]
New file, demos multiple auto-widgets

10 years agoRemove termlists from auto.html
Mike Taylor [Fri, 24 Jan 2014 15:48:20 +0000 (15:48 +0000)]
Remove termlists from auto.html

10 years agoRemove debugging output from Handlebars "translate" helper.
Mike Taylor [Fri, 24 Jan 2014 15:45:44 +0000 (15:45 +0000)]
Remove debugging output from Handlebars "translate" helper.
(It was too noisy AND had a scoping problem.)
Address results are using classed instead of id.
(Allows multiple instances of each widget to co-exist.)
Auto-generated HTML for #mkwsSearch, #mkwsResults and #mkwsTargets
include the necessary classes as well as IDs. (There may be a
better way to insert these automatically, but that can wait.)

All this means that in a primitive way, we have a version of MKWS-71
("Enable multiple simultaneous MKWS searches using multiple SP
sessions") working!

10 years agoSimplify down to a single standard set.
Mike Taylor [Fri, 24 Jan 2014 15:39:12 +0000 (15:39 +0000)]
Simplify down to a single standard set.

10 years agoFix spelling of m_teamName
Mike Taylor [Fri, 24 Jan 2014 15:13:36 +0000 (15:13 +0000)]
Fix spelling of m_teamName

10 years agoResults and Termlist HTML now set using $("#x").html()
Mike Taylor [Fri, 24 Jan 2014 15:09:48 +0000 (15:09 +0000)]
Results and Termlist HTML now set using $("#x").html()
replaceHtml() no longer used, and is removed.

10 years agoLocal-auto switched to new-style HTML classes instead of IDs.
Mike Taylor [Fri, 24 Jan 2014 14:53:04 +0000 (14:53 +0000)]
Local-auto switched to new-style HTML classes instead of IDs.
We now have two auto-executing result <div>s.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 24 Jan 2014 14:42:00 +0000 (14:42 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agonewSearch() is now an externally callable member function.
Mike Taylor [Fri, 24 Jan 2014 14:41:53 +0000 (14:41 +0000)]
newSearch() is now an externally callable member function.
The default widget team is called "AUTO" not (empty string).
Use of console.log() in place of debug() in authenticate_session(),
which turns out IS necessary after all except, for some
Completely rewrite run_auto_searches() to work with new-style widget
teams.

10 years agofix jquery .attr('href') usage
Wolfram Schneider [Fri, 24 Jan 2014 14:32:43 +0000 (14:32 +0000)]
fix jquery .attr('href') usage

10 years agomore jQuery <-> HTMLobject fixes for IE8
Wolfram Schneider [Fri, 24 Jan 2014 14:22:29 +0000 (14:22 +0000)]
more jQuery <-> HTMLobject fixes for IE8

10 years agouse the more portable $(obj).text() instead obj.text, MKWS-77
Wolfram Schneider [Fri, 24 Jan 2014 14:15:20 +0000 (14:15 +0000)]
use the more portable $(obj).text() instead obj.text, MKWS-77

jquery xpath match returns a list of HTML object, so we need to convert the
object back to jquery, and run the .text() method on it instead .text property

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 24 Jan 2014 13:52:16 +0000 (13:52 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agofix broken debug() function for IE (again!!)
Wolfram Schneider [Fri, 24 Jan 2014 13:49:20 +0000 (13:49 +0000)]
fix broken debug() function for IE (again!!)

10 years agoignore all authors which match the black list, not just the first one
Wolfram Schneider [Fri, 24 Jan 2014 13:35:13 +0000 (13:35 +0000)]
ignore all authors which match the black list, not just the first one

10 years agoignore all wikipedia source links, not just the first one
Wolfram Schneider [Fri, 24 Jan 2014 13:27:37 +0000 (13:27 +0000)]
ignore all wikipedia source links, not just the first one

10 years agodo not click on author names without a comma, e.g.: "Joe Barbara"
Wolfram Schneider [Fri, 24 Jan 2014 13:10:28 +0000 (13:10 +0000)]
do not click on author names without a comma, e.g.: "Joe Barbara"

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 24 Jan 2014 13:10:21 +0000 (13:10 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoauthenticate_session() and run_auto_searches() are now local to their
Mike Taylor [Fri, 24 Jan 2014 13:10:17 +0000 (13:10 +0000)]
authenticate_session() and run_auto_searches() are now local to their
function rather than global members of mkws.

Use console.log() rather than debug() in run_auto_searches()

(For some reason, debug() works in authenticate_session()!)

10 years agoMove mkws_config defaulting code out of team object, into a new global
Mike Taylor [Fri, 24 Jan 2014 13:02:27 +0000 (13:02 +0000)]
Move mkws_config defaulting code out of team object, into a new global
function default_mkws_config().

10 years agocheck if the URL href attribute is equal to what we display as text
Wolfram Schneider [Fri, 24 Jan 2014 13:01:00 +0000 (13:01 +0000)]
check if the URL href attribute is equal to what we display as text

10 years agosupport more than one clickable URLs in show record
Wolfram Schneider [Fri, 24 Jan 2014 12:59:10 +0000 (12:59 +0000)]
support more than one clickable URLs in show record

check the href value, not the text output

10 years agoRename mkws.authenticate_session() to mkws.authenticate_session(), to
Mike Taylor [Fri, 24 Jan 2014 12:55:54 +0000 (12:55 +0000)]
Rename mkws.authenticate_session() to mkws.authenticate_session(), to
avoid confusion with mkws_config.service_proxy_auth.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 24 Jan 2014 12:47:11 +0000 (12:47 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agotest with term "openssh" for more stable test results
Wolfram Schneider [Fri, 24 Jan 2014 12:39:32 +0000 (12:39 +0000)]
test with term "openssh" for more stable test results

fix config, use property expected_hits => 10

10 years agomkws.run_auto_searches() moved out of team object.
Mike Taylor [Fri, 24 Jan 2014 12:32:28 +0000 (12:32 +0000)]
mkws.run_auto_searches() moved out of team object.

10 years agoSingle global mkws.paz changed to per-team m_paz.
Mike Taylor [Fri, 24 Jan 2014 12:31:50 +0000 (12:31 +0000)]
Single global mkws.paz changed to per-team m_paz.
run_auto_searches() moved to be member of global mkws.

10 years agomkws.service_proxy_auth() moved outside the team object.
Mike Taylor [Fri, 24 Jan 2014 12:27:00 +0000 (12:27 +0000)]
mkws.service_proxy_auth() moved outside the team object.

10 years agowait longer for author facets
Wolfram Schneider [Fri, 24 Jan 2014 12:17:17 +0000 (12:17 +0000)]
wait longer for author facets

I takes sometimes more than 2 seconds to get facets for authors,
so we will wait now up to 4 seconds. Note: we are checking at this
time only author facets, because we need the value for the next
test ("limit search to first author")

10 years agoNew: same as auto.html, but uses local copy of MKWS.
Mike Taylor [Fri, 24 Jan 2014 11:19:57 +0000 (11:19 +0000)]
New: same as auto.html, but uses local copy of MKWS.

10 years agoAll callbacks accept new teamName argument from pz2.js
Mike Taylor [Fri, 24 Jan 2014 11:19:40 +0000 (11:19 +0000)]
All callbacks accept new teamName argument from pz2.js
(At the moment, all they do is log it.)

10 years agoTypo
Mike Taylor [Fri, 24 Jan 2014 09:29:36 +0000 (09:29 +0000)]
Typo

10 years agoThe mkws_service_proxy_auth() method was private to the team object,
Mike Taylor [Fri, 24 Jan 2014 09:14:15 +0000 (09:14 +0000)]
The mkws_service_proxy_auth() method was private to the team object,
but that's nosense as it has to be called only once even when there
are multiple teams. So it's now changed to be a member of the global
object, mkws.service_proxy_auth(), and is invoked only after all teams
have been created.

10 years agoFor now, don't make the "AUTO" team. Allows jasmine-popup.html to work.
Mike Taylor [Fri, 24 Jan 2014 08:32:15 +0000 (08:32 +0000)]
For now, don't make the "AUTO" team. Allows jasmine-popup.html to work.

10 years agoDo not recreate paz object if it already exists.
Mike Taylor [Fri, 24 Jan 2014 00:08:55 +0000 (00:08 +0000)]
Do not recreate paz object if it already exists.

10 years agoLess verbose logging
Mike Taylor [Fri, 24 Jan 2014 00:08:05 +0000 (00:08 +0000)]
Less verbose logging

10 years agoWhitespace.
Mike Taylor [Fri, 24 Jan 2014 00:05:09 +0000 (00:05 +0000)]
Whitespace.

10 years agoFix indentation for making pz2 object.
Mike Taylor [Fri, 24 Jan 2014 00:04:18 +0000 (00:04 +0000)]
Fix indentation for making pz2 object.

10 years agoCompatibility: set new magic classes into elements with old magic IDs.
Mike Taylor [Thu, 23 Jan 2014 23:56:50 +0000 (23:56 +0000)]
Compatibility: set new magic classes into elements with old magic IDs.

10 years agoOnly a single pp2 object, stored in mkws.
Mike Taylor [Thu, 23 Jan 2014 23:33:48 +0000 (23:33 +0000)]
Only a single pp2 object, stored in mkws.

10 years agoRemove outdated comment.
Mike Taylor [Thu, 23 Jan 2014 23:29:25 +0000 (23:29 +0000)]
Remove outdated comment.

10 years agoNew team object made for relevant mkwsResults, mkwsRecords or mkwsTermlists.
Mike Taylor [Thu, 23 Jan 2014 23:27:06 +0000 (23:27 +0000)]
New team object made for relevant mkwsResults, mkwsRecords or mkwsTermlists.
Same team is not created more than once.

10 years agoCompletely rework to include two separate widget teams.
Mike Taylor [Thu, 23 Jan 2014 23:24:38 +0000 (23:24 +0000)]
Completely rework to include two separate widget teams.

10 years agoAdd two additional mkwsRecords elements.
Mike Taylor [Thu, 23 Jan 2014 18:16:26 +0000 (18:16 +0000)]
Add two additional mkwsRecords elements.

10 years agoFor the first time, make multiple instances of the MKWS team object if
Mike Taylor [Thu, 23 Jan 2014 18:16:01 +0000 (18:16 +0000)]
For the first time, make multiple instances of the MKWS team object if
the HTML contains multiple relevant elements.

10 years agoRemove mkws.init and the test on it.
Mike Taylor [Thu, 23 Jan 2014 17:06:49 +0000 (17:06 +0000)]
Remove mkws.init and the test on it.

10 years agoReorder member declarations.
Mike Taylor [Thu, 23 Jan 2014 16:41:29 +0000 (16:41 +0000)]
Reorder member declarations.

10 years agoEliminate used-once constants m_SourceMax, m_SubjectMax and m_AuthorMax.
Mike Taylor [Thu, 23 Jan 2014 16:24:06 +0000 (16:24 +0000)]
Eliminate used-once constants m_SourceMax, m_SubjectMax and m_AuthorMax.
We'll do facet-list length properly later.

10 years agoAll member variable names now have the m_ prefix
Mike Taylor [Thu, 23 Jan 2014 16:23:15 +0000 (16:23 +0000)]
All member variable names now have the m_ prefix

10 years agoMove member declarations ahead of code.
Mike Taylor [Thu, 23 Jan 2014 16:09:13 +0000 (16:09 +0000)]
Move member declarations ahead of code.

10 years agoWhitespace and comment.
Mike Taylor [Thu, 23 Jan 2014 16:08:51 +0000 (16:08 +0000)]
Whitespace and comment.

10 years agoMove all state variable declarations together.
Mike Taylor [Thu, 23 Jan 2014 16:08:10 +0000 (16:08 +0000)]
Move all state variable declarations together.

10 years agoComment
Mike Taylor [Thu, 23 Jan 2014 15:57:28 +0000 (15:57 +0000)]
Comment

10 years agoVertical ws
Mike Taylor [Thu, 23 Jan 2014 15:43:59 +0000 (15:43 +0000)]
Vertical ws

10 years agoMove Handlebars helpers out of the MKWS-specific code to the top
Mike Taylor [Thu, 23 Jan 2014 15:43:39 +0000 (15:43 +0000)]
Move Handlebars helpers out of the MKWS-specific code to the top

10 years agoVertical whitespace only.
Mike Taylor [Thu, 23 Jan 2014 15:35:35 +0000 (15:35 +0000)]
Vertical whitespace only.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 23 Jan 2014 15:25:26 +0000 (15:25 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoMove mkws.local_lang up into the main mkws object definition.
Mike Taylor [Thu, 23 Jan 2014 15:25:23 +0000 (15:25 +0000)]
Move mkws.local_lang up into the main mkws object definition.

10 years agouse quotes for Access-Control-Allow-Origin
Wolfram Schneider [Thu, 23 Jan 2014 15:21:21 +0000 (15:21 +0000)]
use quotes for Access-Control-Allow-Origin

10 years agoAll five members of the mkws global hash are now explicitly initialised.
Mike Taylor [Thu, 23 Jan 2014 15:18:12 +0000 (15:18 +0000)]
All five members of the mkws global hash are now explicitly initialised.

10 years agoglobal mkws.query moved to team-specific m_query
Mike Taylor [Thu, 23 Jan 2014 15:08:57 +0000 (15:08 +0000)]
global mkws.query moved to team-specific m_query

10 years agoAdd comment on externally visible functions.
Mike Taylor [Thu, 23 Jan 2014 15:02:39 +0000 (15:02 +0000)]
Add comment on externally visible functions.

10 years agoCORS setting for IE8, MKWS-77
Wolfram Schneider [Thu, 23 Jan 2014 15:01:01 +0000 (15:01 +0000)]
CORS setting for IE8, MKWS-77

10 years agoloadTemplate() returns the compiled template.
Mike Taylor [Thu, 23 Jan 2014 14:56:44 +0000 (14:56 +0000)]
loadTemplate() returns the compiled template.
That means callers don't need to know where it's stored.