mkws-moved-to-github.git
10 years agoReorder functions.
Mike Taylor [Wed, 27 Nov 2013 11:51:45 +0000 (11:51 +0000)]
Reorder functions.

10 years agoSimpler text generation.
Mike Taylor [Wed, 27 Nov 2013 11:51:21 +0000 (11:51 +0000)]
Simpler text generation.

10 years agoSimplify order of text accumulation.
Mike Taylor [Wed, 27 Nov 2013 11:49:59 +0000 (11:49 +0000)]
Simplify order of text accumulation.

10 years agoRename method.
Mike Taylor [Wed, 27 Nov 2013 11:48:14 +0000 (11:48 +0000)]
Rename method.

10 years agoRecord details generated by a Handlebars template now correctly appear
Mike Taylor [Wed, 27 Nov 2013 11:47:56 +0000 (11:47 +0000)]
Record details generated by a Handlebars template now correctly appear
within <div class="details"> with proper ID. As a result, they share
cosmetics with the default case and respond properly to clicks
elsewhere.

10 years agoCleaner logging for record template.
Mike Taylor [Tue, 26 Nov 2013 13:53:27 +0000 (13:53 +0000)]
Cleaner logging for record template.

10 years agoFull-record display uses Handlebars template #mkwsTemplateRecor if
Mike Taylor [Tue, 26 Nov 2013 13:50:06 +0000 (13:50 +0000)]
Full-record display uses Handlebars template #mkwsTemplateRecor if
provided. Otherwise falls back to old hardwired behaviour.  Fixes part
of MKWS-68 ("Use a well-established and simple third-party templating
library").

10 years agoRemove Handlebars code, replying on Widget Set.
Mike Taylor [Tue, 26 Nov 2013 13:45:33 +0000 (13:45 +0000)]
Remove Handlebars code, replying on Widget Set.
Provide <script id="mkwsTemplateRecord">

10 years agoUse Handlebars to generate MOTD.
Mike Taylor [Tue, 26 Nov 2013 13:12:59 +0000 (13:12 +0000)]
Use Handlebars to generate MOTD.

10 years agoDo not version-control locally downloaded copy of handlebars-v1.1.2.js
Mike Taylor [Tue, 26 Nov 2013 12:50:26 +0000 (12:50 +0000)]
Do not version-control locally downloaded copy of handlebars-v1.1.2.js

10 years agoUse locally downloaded copy of handlebars-v1.1.2.js rather than the
Mike Taylor [Tue, 26 Nov 2013 12:49:57 +0000 (12:49 +0000)]
Use locally downloaded copy of handlebars-v1.1.2.js rather than the
master copy from
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js
since that one generates a warning in Chrome:
"Resource interpreted as Script but transferred with MIME type binary/octet-stream"

10 years agoAdd rule to download handlebars-v1.1.2.js
Mike Taylor [Tue, 26 Nov 2013 12:47:52 +0000 (12:47 +0000)]
Add rule to download handlebars-v1.1.2.js
(For some reason, it can't be run from its own location.)

10 years agoNew script, simple test of Handlebars.
Mike Taylor [Tue, 26 Nov 2013 10:31:32 +0000 (10:31 +0000)]
New script, simple test of Handlebars.

10 years agoA whole bunch of changes to do facets properly:
Mike Taylor [Fri, 22 Nov 2013 17:30:23 +0000 (17:30 +0000)]
A whole bunch of changes to do facets properly:

* We no longer keep mkws.pp2filter state-variable around
* limitTarget() and unlimitTarge() no longer mess around with Pazpar2
  filter syntax
* limitQuery() no longer messes with the actual query
* triggerSearch () now calculates pp2filter (for targets) and pp2limit
  (for field values) on the fly from mkws.filters.
* Limits as well as filters are passed into my_paz.search()
* limitQuery() calls resetPage() etc. by hand, as its sibling
  functions do, instead of delegating to onFormSubmitEventHandler()
* Pass pazpar2 fieldnames rather than CCL indexes into
  add_single_facet()

All of this fixes bug MKWS-63 ("Reimplement facets to use Pazpar2
filtering rather than query manipulation")

10 years agoUse installed pz2api.1.js from http://mkws.indexdata.com/libjs-pz2/
Mike Taylor [Fri, 22 Nov 2013 15:19:48 +0000 (15:19 +0000)]
Use installed pz2api.1.js from mkws.indexdata.com/libjs-pz2/
for now, since the most recent version seems to have broken. See
MKII-1850 ("Looks like newest pz2api.1.js breaks MKWS").

10 years agoNew function delimitQuery().
Mike Taylor [Fri, 22 Nov 2013 13:28:09 +0000 (13:28 +0000)]
New function delimitQuery().
New function redraw_navi() handles drawing all selected facets,
whether based on field values or source.
This is now used by limitQuery(), limitTarget(), delimitQuery() and
delimitTarget().
(These methods have too much shared code at the moment -- I'll fix
that shortly, but want to check in the first working version.)

10 years agoAdd to mkws.filters array as facets are selected.
Mike Taylor [Fri, 22 Nov 2013 12:15:13 +0000 (12:15 +0000)]
Add to mkws.filters array as facets are selected.
Pass target ID into delimitTarget().
delimitTarget() now removes selected target from filters.

10 years agoRename curFilter
Mike Taylor [Fri, 22 Nov 2013 11:50:40 +0000 (11:50 +0000)]
Rename curFilter

10 years agoMove curFilter global into mkws hash.
Mike Taylor [Fri, 22 Nov 2013 11:39:37 +0000 (11:39 +0000)]
Move curFilter global into mkws hash.

10 years agoAdd debugging
Mike Taylor [Thu, 21 Nov 2013 17:07:43 +0000 (17:07 +0000)]
Add debugging

10 years agoReinstate pager.
Mike Taylor [Thu, 21 Nov 2013 15:33:31 +0000 (15:33 +0000)]
Reinstate pager.

10 years agoComment out mkwsPager
Mike Taylor [Thu, 21 Nov 2013 15:03:14 +0000 (15:03 +0000)]
Comment out mkwsPager

10 years agoBreak out mkwsResults into components.
Mike Taylor [Thu, 21 Nov 2013 15:03:06 +0000 (15:03 +0000)]
Break out mkwsResults into components.

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 21 Nov 2013 13:47:52 +0000 (13:47 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoDon't attempt to draw the pager in #mkwsPager is missing.
Mike Taylor [Thu, 21 Nov 2013 13:47:47 +0000 (13:47 +0000)]
Don't attempt to draw the pager in #mkwsPager is missing.

10 years agoConfig option to specify cookie domain for auth
Jakub Skoczen [Thu, 21 Nov 2013 13:14:30 +0000 (14:14 +0100)]
Config option to specify cookie domain for auth

This enforces the manually stored cookie to apply to for the given domain,
no matter where the auth call is sent.

10 years agoSimplify plural code.
Mike Taylor [Wed, 20 Nov 2013 16:50:37 +0000 (16:50 +0000)]
Simplify plural code.

10 years agoRename variable.
Mike Taylor [Wed, 20 Nov 2013 16:49:29 +0000 (16:49 +0000)]
Rename variable.

10 years agoMove new sources display down to replace old single-location display
Mike Taylor [Wed, 20 Nov 2013 16:48:49 +0000 (16:48 +0000)]
Move new sources display down to replace old single-location display

10 years agoChange code to always explicitly handle arrays.
Mike Taylor [Wed, 20 Nov 2013 16:47:24 +0000 (16:47 +0000)]
Change code to always explicitly handle arrays.

10 years agoEliminate unnecessary temporary variable
Mike Taylor [Wed, 20 Nov 2013 16:30:48 +0000 (16:30 +0000)]
Eliminate unnecessary temporary variable
Fix misleading formatting

10 years agoRename variable.
Mike Taylor [Wed, 20 Nov 2013 16:29:25 +0000 (16:29 +0000)]
Rename variable.

10 years agoIf `marker' argument is passed to renderDetails(), the column it's
Mike Taylor [Wed, 20 Nov 2013 16:24:23 +0000 (16:24 +0000)]
If `marker' argument is passed to renderDetails(), the column it's
rendered in now spans both columns.

10 years agorenderDetails() now includes a line of the sources of the merged records.
Mike Taylor [Wed, 20 Nov 2013 16:23:59 +0000 (16:23 +0000)]
renderDetails() now includes a line of the sources of the merged records.

11 years agoTItle
Mike Taylor [Fri, 15 Nov 2013 15:57:14 +0000 (15:57 +0000)]
TItle

11 years agoRender each individual element of the repeated field "URL" as its own
Mike Taylor [Fri, 15 Nov 2013 15:56:35 +0000 (15:56 +0000)]
Render each individual element of the repeated field "URL" as its own
link, rather than simply gluing them together as is the default.
Allows links to work. Fixes bug MKWS-55.

11 years agoRemove entire config, since we don't need it for current development.
Mike Taylor [Fri, 15 Nov 2013 15:55:42 +0000 (15:55 +0000)]
Remove entire config, since we don't need it for current development.

11 years agoRemove unnecessary elements from config.
Mike Taylor [Fri, 15 Nov 2013 15:55:20 +0000 (15:55 +0000)]
Remove unnecessary elements from config.

11 years agoBackport revised Arabic translation to master version.
Mike Taylor [Thu, 14 Nov 2013 17:46:07 +0000 (17:46 +0000)]
Backport revised Arabic translation to master version.

11 years agoReorder translations and insert informative headings.
Mike Taylor [Thu, 14 Nov 2013 17:45:22 +0000 (17:45 +0000)]
Reorder translations and insert informative headings.

11 years agoAdd translations for Status info captions and Target info table headings
Mike Taylor [Thu, 14 Nov 2013 17:21:18 +0000 (17:21 +0000)]
Add translations for Status info captions and Target info table headings

11 years agoTranslate captions of Targets table.
Mike Taylor [Thu, 14 Nov 2013 17:20:54 +0000 (17:20 +0000)]
Translate captions of Targets table.

11 years agoTranslate textual parts of status-info area.
Mike Taylor [Thu, 14 Nov 2013 17:07:15 +0000 (17:07 +0000)]
Translate textual parts of status-info area.

11 years agoMove 'Active clients' and 'Retrieved records' from CSS to code, so they can be transl...
Mike Taylor [Thu, 14 Nov 2013 16:59:16 +0000 (16:59 +0000)]
Move 'Active clients' and 'Retrieved records' from CSS to code, so they can be translated in the mkws_config object

11 years agoTranslate sort criteria
Mike Taylor [Thu, 14 Nov 2013 16:54:08 +0000 (16:54 +0000)]
Translate sort criteria

11 years agoAdd translations for sorting criteria.
Mike Taylor [Thu, 14 Nov 2013 16:50:57 +0000 (16:50 +0000)]
Add translations for sorting criteria.

11 years agoAdditional logging.
Mike Taylor [Thu, 14 Nov 2013 12:34:41 +0000 (12:34 +0000)]
Additional logging.

11 years agoMove start of jQuery wrapper.
Mike Taylor [Thu, 14 Nov 2013 12:34:20 +0000 (12:34 +0000)]
Move start of jQuery wrapper.
Somehow, having it at the very top made mkws_config invisible.
I'll investigate this properly later, but for now I am just glad to
have it working again.

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Wed, 13 Nov 2013 19:22:12 +0000 (19:22 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

11 years agoComplete reset of Mike's playground to resemble language.html
Mike Taylor [Wed, 13 Nov 2013 16:32:33 +0000 (16:32 +0000)]
Complete reset of Mike's playground to resemble language.html

11 years agoStandard defaulting approach for lang.
Mike Taylor [Wed, 13 Nov 2013 13:59:30 +0000 (13:59 +0000)]
Standard defaulting approach for lang.
Fixes last part of MKWS-40

11 years agoShortcut
Mike Taylor [Wed, 13 Nov 2013 13:58:21 +0000 (13:58 +0000)]
Shortcut

11 years agoDefault value for service_proxy_auth in the proper place.
Mike Taylor [Wed, 13 Nov 2013 13:36:13 +0000 (13:36 +0000)]
Default value for service_proxy_auth in the proper place.

11 years agoAdd notes on installing prerequisites of "make check"
Mike Taylor [Wed, 13 Nov 2013 13:01:34 +0000 (13:01 +0000)]
Add notes on installing prerequisites of "make check"

11 years agoAll use of config_default strucure is now inside a local block.
Mike Taylor [Tue, 12 Nov 2013 13:30:51 +0000 (13:30 +0000)]
All use of config_default strucure is now inside a local block.
So the code makes it clear that this is a temporary structure.

11 years agoDefault use_service_proxy by standard method, not separately.
Mike Taylor [Tue, 12 Nov 2013 13:28:36 +0000 (13:28 +0000)]
Default use_service_proxy by standard method, not separately.

11 years agoWS
Mike Taylor [Tue, 12 Nov 2013 13:25:48 +0000 (13:25 +0000)]
WS

11 years agoEliminate superfluous temporary assignments.
Mike Taylor [Tue, 12 Nov 2013 13:19:27 +0000 (13:19 +0000)]
Eliminate superfluous temporary assignments.

11 years agoMove JQuery wrapper to top.
Mike Taylor [Tue, 12 Nov 2013 12:41:54 +0000 (12:41 +0000)]
Move JQuery wrapper to top.

11 years agoMove defaulting out of HTML function to near top of file.
Mike Taylor [Tue, 12 Nov 2013 12:37:31 +0000 (12:37 +0000)]
Move defaulting out of HTML function to near top of file.

11 years agoReorder and clarify comments.
Mike Taylor [Tue, 12 Nov 2013 11:20:01 +0000 (11:20 +0000)]
Reorder and clarify comments.

11 years agoSimplify defaulting
Mike Taylor [Tue, 12 Nov 2013 11:19:14 +0000 (11:19 +0000)]
Simplify defaulting

11 years agoRemove ordinal numbers from results list.
Mike Taylor [Tue, 12 Nov 2013 11:08:54 +0000 (11:08 +0000)]
Remove ordinal numbers from results list.
Fixes MKWS-60

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Mon, 11 Nov 2013 14:06:09 +0000 (14:06 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

11 years agoresolve chicken-egg depenencie for pz2api.1.js
Wolfram Schneider [Mon, 4 Nov 2013 14:19:05 +0000 (14:19 +0000)]
resolve chicken-egg depenencie for pz2api.1.js

11 years agouse make variable, not hard coded pp2 path
Wolfram Schneider [Mon, 4 Nov 2013 14:17:53 +0000 (14:17 +0000)]
use make variable, not hard coded pp2 path

11 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Fri, 1 Nov 2013 18:38:17 +0000 (18:38 +0000)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

11 years agojasmine-node needs to catch errors, and exit with non-zero status code
Wolfram Schneider [Fri, 1 Nov 2013 18:34:00 +0000 (18:34 +0000)]
jasmine-node needs to catch errors, and exit with non-zero status code

11 years agorenamed index-*.html files
Wolfram Schneider [Fri, 1 Nov 2013 18:28:15 +0000 (18:28 +0000)]
renamed index-*.html files

11 years agorename, no "index-" prefix for jasmine test HTML files
Wolfram Schneider [Fri, 1 Nov 2013 18:23:35 +0000 (18:23 +0000)]
rename, no "index-" prefix for jasmine test HTML files

11 years agoAdd comment on required Debian package.
Mike Taylor [Fri, 1 Nov 2013 18:16:12 +0000 (18:16 +0000)]
Add comment on required Debian package.

11 years agoFix links to moved sample applications.
Mike Taylor [Fri, 1 Nov 2013 16:58:39 +0000 (16:58 +0000)]
Fix links to moved sample applications.

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:50:59 +0000 (16:50 +0000)]
Rename

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:50:32 +0000 (16:50 +0000)]
Rename

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:50:15 +0000 (16:50 +0000)]
Rename

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:49:58 +0000 (16:49 +0000)]
Rename

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:49:45 +0000 (16:49 +0000)]
Rename

11 years agoNew
Mike Taylor [Fri, 1 Nov 2013 16:49:11 +0000 (16:49 +0000)]
New

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:44:33 +0000 (16:44 +0000)]
Rename

11 years agoRename
Mike Taylor [Fri, 1 Nov 2013 16:43:58 +0000 (16:43 +0000)]
Rename

11 years agoNew
Mike Taylor [Fri, 1 Nov 2013 16:41:03 +0000 (16:41 +0000)]
New

11 years agoLink to examples/dict.html
Mike Taylor [Fri, 1 Nov 2013 16:15:44 +0000 (16:15 +0000)]
Link to examples/dict.html

11 years agoNew
Mike Taylor [Fri, 1 Nov 2013 15:09:47 +0000 (15:09 +0000)]
New

11 years agoAdd CSS styles to make layout work.
Mike Taylor [Tue, 22 Oct 2013 20:06:37 +0000 (16:06 -0400)]
Add CSS styles to make layout work.

11 years agoUse low-level components.
Mike Taylor [Tue, 22 Oct 2013 20:05:06 +0000 (16:05 -0400)]
Use low-level components.

11 years agoRemove now-superfluous comments.
Mike Taylor [Tue, 22 Oct 2013 20:01:48 +0000 (16:01 -0400)]
Remove now-superfluous comments.

11 years agoRun against installed tools.
Mike Taylor [Tue, 22 Oct 2013 20:00:51 +0000 (16:00 -0400)]
Run against installed tools.

11 years agoAdd link from top-level index.html to the whitepaper.
Mike Taylor [Tue, 22 Oct 2013 18:38:41 +0000 (14:38 -0400)]
Add link from top-level index.html to the whitepaper.

11 years agoAdd heading to fix Markdown formatting.
Mike Taylor [Tue, 22 Oct 2013 18:35:39 +0000 (14:35 -0400)]
Add heading to fix Markdown formatting.

11 years agoReplace Arabic example with French, because the idiot ancient pandoc
Mike Taylor [Tue, 22 Oct 2013 18:34:04 +0000 (14:34 -0400)]
Replace Arabic example with French, because the idiot ancient pandoc
on Debian Stable can't cope with non-ASCII characters.

11 years agoNew file, apache2/mkws-mike-mac
Mike Taylor [Tue, 22 Oct 2013 15:58:04 +0000 (11:58 -0400)]
New file, apache2/mkws-mike-mac

11 years agoUse ServerAlias, not ServerName, for second hostname
Mike Taylor [Tue, 22 Oct 2013 15:46:16 +0000 (15:46 +0000)]
Use ServerAlias, not ServerName, for second hostname

11 years agoSupport mkws-git proxying
Mike Taylor [Tue, 22 Oct 2013 15:35:56 +0000 (15:35 +0000)]
Support mkws-git proxying

11 years agobring debug() function back
Wolfram Schneider [Sun, 20 Oct 2013 18:18:39 +0000 (18:18 +0000)]
bring debug() function back

see 6a16c05b50da60311020ae1201b4a100a427753a

11 years agoEliminate config parameter altogether from mkws_html_perpage()
Mike Taylor [Fri, 11 Oct 2013 16:09:52 +0000 (17:09 +0100)]
Eliminate config parameter altogether from mkws_html_perpage()

11 years agoEliminate confusing and redundant local aliasing of mkws_config to
Mike Taylor [Fri, 11 Oct 2013 16:09:07 +0000 (17:09 +0100)]
Eliminate confusing and redundant local aliasing of mkws_config to
config in mkws_html_perpage()

11 years agoSimplify
Mike Taylor [Fri, 11 Oct 2013 16:07:48 +0000 (17:07 +0100)]
Simplify

11 years agoEliminate confusing and redundant local aliasing of mkws_config to
Mike Taylor [Fri, 11 Oct 2013 16:06:48 +0000 (17:06 +0100)]
Eliminate confusing and redundant local aliasing of mkws_config to
config in mkws_html_sort()

11 years agoEliminate confusing and redundant local aliasing of mkws_config to
Mike Taylor [Fri, 11 Oct 2013 15:56:33 +0000 (16:56 +0100)]
Eliminate confusing and redundant local aliasing of mkws_config to
config in mkws_html_all(). Rename local variable to config_default,
since as a local it doesn't need the disambiguating prefix.

11 years agoEliminate confusing and redundant local aliasing of mkws_config to
Mike Taylor [Fri, 11 Oct 2013 15:28:39 +0000 (16:28 +0100)]
Eliminate confusing and redundant local aliasing of mkws_config to
mkws_config in mkws_set_lang() and mkws_html_lang().