mkws-moved-to-github.git
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 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 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 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 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.

10 years agoInvert guard within loadTemplate()
Mike Taylor [Thu, 23 Jan 2014 14:52:32 +0000 (14:52 +0000)]
Invert guard within loadTemplate()

10 years agoRemove extraneous guards on loadTemplate()
Mike Taylor [Thu, 23 Jan 2014 14:50:37 +0000 (14:50 +0000)]
Remove extraneous guards on loadTemplate()

10 years agoloadTemplate() guards its own body, so invocations don't have to.
Mike Taylor [Thu, 23 Jan 2014 14:49:07 +0000 (14:49 +0000)]
loadTemplate() guards its own body, so invocations don't have to.

10 years agodisable logging with console object, will fail in IE8
Wolfram Schneider [Thu, 23 Jan 2014 13:51:09 +0000 (13:51 +0000)]
disable logging with console object, will fail in IE8

see f90cc5c1eed67a2c29f20025e9b3ed7113fe8468

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

10 years agoMAJOR re-indenting. Almost every line changed.
Mike Taylor [Thu, 23 Jan 2014 12:22:31 +0000 (12:22 +0000)]
MAJOR re-indenting. Almost every line changed.
Do not try to merge changes made to pre-reindented code!

10 years agoRename my_paz to m_paz, matching the usual pattern for member variables.
Mike Taylor [Thu, 23 Jan 2014 11:05:31 +0000 (11:05 +0000)]
Rename my_paz to m_paz, matching the usual pattern for member variables.

10 years agoshow only 10 hits for testings
Wolfram Schneider [Thu, 23 Jan 2014 11:02:56 +0000 (11:02 +0000)]
show only 10 hits for testings

10 years agoRemove test for no-longer-stored global copy of my_paz
Mike Taylor [Thu, 23 Jan 2014 10:59:16 +0000 (10:59 +0000)]
Remove test for no-longer-stored global copy of my_paz

10 years agomy_paz remains local to each widget team, and is not copied up into
Mike Taylor [Thu, 23 Jan 2014 10:59:01 +0000 (10:59 +0000)]
my_paz remains local to each widget team, and is not copied up into
global mkws.

10 years agoEliminate test for temporary state mkws.usesessions
Mike Taylor [Thu, 23 Jan 2014 10:55:45 +0000 (10:55 +0000)]
Eliminate test for temporary state mkws.usesessions

10 years agoEliminate temporary state mkws.usesessions
Mike Taylor [Thu, 23 Jan 2014 10:55:28 +0000 (10:55 +0000)]
Eliminate temporary state mkws.usesessions

10 years agodebug_time becomes a private member.
Mike Taylor [Thu, 23 Jan 2014 10:47:58 +0000 (10:47 +0000)]
debug_time becomes a private member.

10 years agoMove mkws.locale_lang assignment outside of team function.
Mike Taylor [Thu, 23 Jan 2014 10:47:03 +0000 (10:47 +0000)]
Move mkws.locale_lang assignment outside of team function.

10 years agonew document root config
Wolfram Schneider [Thu, 23 Jan 2014 10:46:47 +0000 (10:46 +0000)]
new document root config

10 years agoUpdate date in Copyright notice.
Mike Taylor [Thu, 23 Jan 2014 10:46:05 +0000 (10:46 +0000)]
Update date in Copyright notice.

10 years agomove spclient-dev.indexdata.com from mkws-dev to mkws-test
Wolfram Schneider [Thu, 23 Jan 2014 10:45:07 +0000 (10:45 +0000)]
move spclient-dev.indexdata.com from mkws-dev to mkws-test

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

10 years agoworking mkws-test.indexdata.com config
Wolfram Schneider [Thu, 23 Jan 2014 10:43:25 +0000 (10:43 +0000)]
working mkws-test.indexdata.com config

10 years agoMove some mkws.* variables to per-team state.
Mike Taylor [Thu, 23 Jan 2014 10:43:19 +0000 (10:43 +0000)]
Move some mkws.* variables to per-team state.

10 years agocopy of mkws-dev
Wolfram Schneider [Thu, 23 Jan 2014 10:40:56 +0000 (10:40 +0000)]
copy of mkws-dev

10 years agoadd new demo site mkws-test.indexdata.com
Wolfram Schneider [Thu, 23 Jan 2014 10:33:57 +0000 (10:33 +0000)]
add new demo site mkws-test.indexdata.com

10 years agoour apache proxy config files end with -px
Wolfram Schneider [Thu, 23 Jan 2014 10:32:01 +0000 (10:32 +0000)]
our apache proxy config files end with -px

10 years agoRemove default to Danish
Mike Taylor [Thu, 23 Jan 2014 10:18:24 +0000 (10:18 +0000)]
Remove default to Danish

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

10 years agotest with protocol independend link, MKWS-103
Wolfram Schneider [Wed, 22 Jan 2014 16:54:14 +0000 (16:54 +0000)]
test with protocol independend link, MKWS-103

10 years agotest with protocol independend link, MKWS-103
Wolfram Schneider [Wed, 22 Jan 2014 16:44:22 +0000 (16:44 +0000)]
test with protocol independend link, MKWS-103

10 years agoadjust protocol independend link for pazpar2 object, MKWS-103
Wolfram Schneider [Wed, 22 Jan 2014 16:40:17 +0000 (16:40 +0000)]
adjust protocol independend link for pazpar2 object, MKWS-103

It turns out that pz2.js does not support protocol independend link.
As a workaround, we will add the protocoll if needed after checking
the config in MKWS.

e.g.: "//mkws/sp" -> "https://mkws/sp"

10 years agoauth_domain guessing with protocol independend links, MKWS-103
Wolfram Schneider [Wed, 22 Jan 2014 16:25:03 +0000 (16:25 +0000)]
auth_domain guessing with protocol independend links, MKWS-103

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Wed, 22 Jan 2014 15:54:06 +0000 (15:54 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

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

10 years agosupport HTTPS URLs for auth_domain guessing, part of MKWS-102
Wolfram Schneider [Wed, 22 Jan 2014 15:51:59 +0000 (15:51 +0000)]
support HTTPS URLs for auth_domain guessing, part of MKWS-102

10 years agoupdate
Wolfram Schneider [Wed, 22 Jan 2014 15:30:01 +0000 (15:30 +0000)]
update

10 years agorun with default SP on http://mkws.indexdata.com/service-proxy
Wolfram Schneider [Wed, 22 Jan 2014 15:25:43 +0000 (15:25 +0000)]
run with default SP on mkws.indexdata.com/service-proxy

for local SP testing, please use the new file jasmine-local-popup.html

10 years agocopy of jasmine-popup.html, for local running SP
Wolfram Schneider [Wed, 22 Jan 2014 15:24:45 +0000 (15:24 +0000)]
copy of jasmine-popup.html, for local running SP

10 years agoRename function to clarify intent.
Mike Taylor [Wed, 22 Jan 2014 14:30:40 +0000 (14:30 +0000)]
Rename function to clarify intent.

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 13:57:25 +0000 (13:57 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agodocument public demo pages, and jasmine pages
Wolfram Schneider [Wed, 22 Jan 2014 13:50:12 +0000 (13:50 +0000)]
document public demo pages, and jasmine pages

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 13:35:17 +0000 (13:35 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agoHTTPS tests
Wolfram Schneider [Wed, 22 Jan 2014 13:32:52 +0000 (13:32 +0000)]
HTTPS tests

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 13:32:30 +0000 (13:32 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 13:29:05 +0000 (13:29 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 13:13:38 +0000 (13:13 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agoMerge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws
Wolfram Schneider [Wed, 22 Jan 2014 13:00:34 +0000 (13:00 +0000)]
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws

10 years agoHTTPS tests
Wolfram Schneider [Wed, 22 Jan 2014 13:00:25 +0000 (13:00 +0000)]
HTTPS tests

10 years agocheck the jasmine config for valid values
Wolfram Schneider [Wed, 22 Jan 2014 12:56:24 +0000 (12:56 +0000)]
check the jasmine config for valid values

10 years agoallow set set jasmine_config object before jasmine libs are loaded
Wolfram Schneider [Wed, 22 Jan 2014 12:44:03 +0000 (12:44 +0000)]
allow set set jasmine_config object before jasmine libs are loaded

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 12:32:45 +0000 (12:32 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agoallow HTTPS based MKWS URLs, MKWS-102
Wolfram Schneider [Wed, 22 Jan 2014 12:26:54 +0000 (12:26 +0000)]
allow HTTPS based MKWS URLs, MKWS-102

10 years agosupport HTTPS URL check
Wolfram Schneider [Wed, 22 Jan 2014 12:25:11 +0000 (12:25 +0000)]
support HTTPS URL check

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 12:10:51 +0000 (12:10 +0000)]
use relative links, or protocol independend links, MKWS-98

10 years agoHTTPS config for mkws.indexdata.com, MKWS-102
Wolfram Schneider [Wed, 22 Jan 2014 11:38:06 +0000 (11:38 +0000)]
HTTPS config for mkws.indexdata.com, MKWS-102

10 years agoHTTPS config for mkws-dev, MKWS-102
Wolfram Schneider [Wed, 22 Jan 2014 11:32:00 +0000 (11:32 +0000)]
HTTPS config for mkws-dev, MKWS-102

10 years agouse relative links, or protocol independend links, MKWS-98
Wolfram Schneider [Wed, 22 Jan 2014 11:25:50 +0000 (11:25 +0000)]
use relative links, or protocol independend links, MKWS-98

MKWS fails when included on an HTTPS site because it
uses http:// rather than simply // and this causes an
error about mixed secure/insecure content

10 years agoadd a simple debug() function to jquery.pazpar2() plugin, MKWS-101
Wolfram Schneider [Wed, 22 Jan 2014 11:11:19 +0000 (11:11 +0000)]
add a simple debug() function to jquery.pazpar2() plugin, MKWS-101

The jquery.pazpar2() plugin will be called usually before the DOM ready
event, so the mkws.debug_function does not exists yet.

10 years agoAdd Records/Targets translation for German and Danish.
Mike Taylor [Mon, 20 Jan 2014 12:16:07 +0000 (12:16 +0000)]
Add Records/Targets translation for German and Danish.