mkws-moved-to-github.git
10 years agoimport Koha MKWS CSS, for use on external sites
Wolfram Schneider [Thu, 22 May 2014 13:45:43 +0000 (13:45 +0000)]
import Koha MKWS CSS, for use on external sites

10 years agoNew example of an 'Intro' widget, as used in our Koha plugin
Mike Taylor [Thu, 22 May 2014 12:48:18 +0000 (13:48 +0100)]
New example of an 'Intro' widget, as used in our Koha plugin

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Thu, 22 May 2014 11:07:11 +0000 (12:07 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoNew
Mike Taylor [Thu, 22 May 2014 11:07:01 +0000 (12:07 +0100)]
New

10 years agorun on centos6
Wolfram Schneider [Thu, 22 May 2014 08:40:57 +0000 (08:40 +0000)]
run on centos6

10 years agorun on MacOS
Wolfram Schneider [Thu, 22 May 2014 08:18:39 +0000 (10:18 +0200)]
run on MacOS

10 years agosupport multiple OS
Wolfram Schneider [Thu, 22 May 2014 08:16:05 +0000 (10:16 +0200)]
support multiple OS

10 years agodetect correct apache binary
Wolfram Schneider [Thu, 22 May 2014 07:42:31 +0000 (09:42 +0200)]
detect correct apache binary

10 years agoMerge remote-tracking branch 'origin/master' into wosch
Wolfram Schneider [Thu, 22 May 2014 07:38:55 +0000 (09:38 +0200)]
Merge remote-tracking branch 'origin/master' into wosch

10 years agoReinstate "Related Topics" widget.
Mike Taylor [Wed, 21 May 2014 16:17:30 +0000 (17:17 +0100)]
Reinstate "Related Topics" widget.
Which doesn't work.

10 years agoStyle widget to fill whole page-width.
Mike Taylor [Wed, 21 May 2014 15:06:51 +0000 (16:06 +0100)]
Style widget to fill whole page-width.

10 years agoOpen image links in new window.
Mike Taylor [Wed, 21 May 2014 14:54:57 +0000 (15:54 +0100)]
Open image links in new window.

10 years agoCustom CredoImage template is used to attach a caption to each image.
Mike Taylor [Wed, 21 May 2014 14:45:33 +0000 (15:45 +0100)]
Custom CredoImage template is used to attach a caption to each image.
Unfortunately, this breaks the float-clearing styles. Darn.

Also, clicking on images goes to their site instead of doing a
regular-ass MKWS full-record popup.

10 years agoComment.
Mike Taylor [Wed, 21 May 2014 14:43:43 +0000 (15:43 +0100)]
Comment.

10 years agoRemove width:100% from .mkwsCredo div.content styles, as it interacts
Mike Taylor [Wed, 21 May 2014 14:34:37 +0000 (15:34 +0100)]
Remove width:100% from .mkwsCredo div.content styles, as it interacts
badly with the padding.

10 years agoAdd styles to make content area grow to contain floated images.
Mike Taylor [Wed, 21 May 2014 12:07:50 +0000 (13:07 +0100)]
Add styles to make content area grow to contain floated images.
See http://www.quirksmode.org/css/clearing.html

10 years agoBetter styling for images
Mike Taylor [Wed, 21 May 2014 11:14:06 +0000 (12:14 +0100)]
Better styling for images

10 years agoPlace the encyclodaedia and image widgets in different teams.
Mike Taylor [Tue, 20 May 2014 16:22:26 +0000 (17:22 +0100)]
Place the encyclodaedia and image widgets in different teams.

10 years agoThe subwidget function now treats the "_team" override specially,
Mike Taylor [Tue, 20 May 2014 16:21:37 +0000 (17:21 +0100)]
The subwidget function now treats the "_team" override specially,
allowing it to override the team that the subwidget is a member of.

10 years agoStore the GID id of the last commit in mkws-complete.js
Wolfram Schneider [Tue, 20 May 2014 13:14:13 +0000 (13:14 +0000)]
Store the GID id of the last commit in mkws-complete.js

We used the gid id from mkws.js, but that's no longer
usefull after we split mkws.js into parts

10 years agoReset m_gotRecords to false in resetPage
Mike Taylor [Tue, 20 May 2014 12:35:08 +0000 (13:35 +0100)]
Reset m_gotRecords to false in resetPage

10 years agoAdd new "firstrecords" event, published when a new search gets back first records.
Mike Taylor [Tue, 20 May 2014 12:34:09 +0000 (13:34 +0100)]
Add new "firstrecords" event, published when a new search gets back first records.

10 years agoComment out all widgets but Reference and GoogleImage.
Mike Taylor [Tue, 20 May 2014 11:54:03 +0000 (12:54 +0100)]
Comment out all widgets but Reference and GoogleImage.

10 years agoUse the new Credo-emulation MKC library.
Mike Taylor [Tue, 20 May 2014 11:53:31 +0000 (12:53 +0100)]
Use the new Credo-emulation MKC library.

10 years agoAdded a favicon.ico to the tools/htdocs area, mostly so that caliban's mkws-error...
Mike Taylor [Tue, 20 May 2014 11:35:37 +0000 (12:35 +0100)]
Added a favicon.ico to the tools/htdocs area, mostly so that caliban's mkws-error.log isn't swamped by irrelevant 404s

10 years agoAdd auth-rewrite rule for the Credo emulator.
Mike Taylor [Tue, 20 May 2014 11:22:27 +0000 (12:22 +0100)]
Add auth-rewrite rule for the Credo emulator.

10 years agoAdd Reference styles.
Mike Taylor [Tue, 20 May 2014 11:11:01 +0000 (12:11 +0100)]
Add Reference styles.

10 years agoAdd comment on inefficiency
Mike Taylor [Tue, 20 May 2014 11:07:54 +0000 (12:07 +0100)]
Add comment on inefficiency

10 years agoAdd mkws-widget-reference.js to the in-progress Credo application.
Mike Taylor [Tue, 20 May 2014 11:07:24 +0000 (12:07 +0100)]
Add mkws-widget-reference.js to the in-progress Credo application.

10 years agoAdd mkws-widget-reference.js to COMPONENTS.
Mike Taylor [Tue, 20 May 2014 11:05:42 +0000 (12:05 +0100)]
Add mkws-widget-reference.js to COMPONENTS.

10 years agoNo longer any need to pull in mkws-widget-reference.js, which is now part of mkws...
Mike Taylor [Tue, 20 May 2014 11:04:17 +0000 (12:04 +0100)]
No longer any need to pull in mkws-widget-reference.js, which is now part of mkws-complete.js

10 years agoMove the Reference widget into the main set
Mike Taylor [Tue, 20 May 2014 11:03:45 +0000 (12:03 +0100)]
Move the Reference widget into the main set

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Mike Taylor [Tue, 20 May 2014 11:02:17 +0000 (12:02 +0100)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoRemove irrelevant Config widget.
Mike Taylor [Tue, 20 May 2014 10:58:46 +0000 (11:58 +0100)]
Remove irrelevant Config widget.

10 years agoTypo
Jason Skomorowski [Mon, 19 May 2014 23:14:10 +0000 (19:14 -0400)]
Typo

10 years agoUse production url in example
Jason Skomorowski [Mon, 19 May 2014 23:10:51 +0000 (19:10 -0400)]
Use production url in example

10 years agoTPL example embedding
Jason Skomorowski [Mon, 19 May 2014 23:03:48 +0000 (19:03 -0400)]
TPL example embedding

10 years agoLook for templates by class instead of as widgets
Jason Skomorowski [Mon, 19 May 2014 23:00:54 +0000 (19:00 -0400)]
Look for templates by class instead of as widgets

10 years agoTypo.
Jason Skomorowski [Mon, 19 May 2014 23:00:31 +0000 (19:00 -0400)]
Typo.

10 years agoRU widget: use own template; be independent of records widget
Jason Skomorowski [Mon, 19 May 2014 21:27:34 +0000 (17:27 -0400)]
RU widget: use own template; be independent of records widget

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Jason Skomorowski [Mon, 19 May 2014 18:23:51 +0000 (14:23 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoRU widget linking directly and hardcoding target
Jason Skomorowski [Mon, 19 May 2014 18:23:17 +0000 (14:23 -0400)]
RU widget linking directly and hardcoding target

10 years agoBetter styling (more Credo-like)
Mike Taylor [Mon, 19 May 2014 16:46:29 +0000 (17:46 +0100)]
Better styling (more Credo-like)

10 years agoTowards CSS for Credo widget.
Mike Taylor [Mon, 19 May 2014 16:44:17 +0000 (17:44 +0100)]
Towards CSS for Credo widget.

10 years agoRolling on the Credo JS.
Mike Taylor [Mon, 19 May 2014 16:10:32 +0000 (17:10 +0100)]
Rolling on the Credo JS.

10 years agoGive subwidget method support for an optional hash of default values.
Mike Taylor [Mon, 19 May 2014 15:53:24 +0000 (16:53 +0100)]
Give subwidget method support for an optional hash of default values.

10 years agoMerge remote branch 'origin/master' into wosch
Wolfram Schneider [Mon, 19 May 2014 15:50:58 +0000 (15:50 +0000)]
Merge remote branch 'origin/master' into wosch

10 years agoAdd example of HTML tables can't be styled using CSS.
Mike Taylor [Mon, 19 May 2014 15:32:02 +0000 (16:32 +0100)]
Add example of HTML tables can't be styled using CSS.
Darn.

10 years agosubwidget method correctly sets team of new widget.
Mike Taylor [Mon, 19 May 2014 13:10:58 +0000 (14:10 +0100)]
subwidget method correctly sets team of new widget.

10 years agoThe config value for facet_max_<...> can be a string or a number
Wolfram Schneider [Mon, 19 May 2014 12:14:42 +0000 (12:14 +0000)]
The config value for facet_max_<...> can be a string or a number

 "facet_max_xtargets" : "10"

our JS code will convert it to a number.

10 years agoMerge remote branch 'origin/master' into wosch
Wolfram Schneider [Mon, 19 May 2014 11:25:47 +0000 (11:25 +0000)]
Merge remote branch 'origin/master' into wosch

10 years agoNew Credo CSS, nowhere near done.
Mike Taylor [Fri, 16 May 2014 16:15:01 +0000 (17:15 +0100)]
New Credo CSS, nowhere near done.

10 years agoNew Credo widget, nowhere near done.
Mike Taylor [Fri, 16 May 2014 16:14:27 +0000 (17:14 +0100)]
New Credo widget, nowhere near done.

10 years agoAdd an mkwsConfig widget to set perpage to 10.
Mike Taylor [Fri, 16 May 2014 15:44:55 +0000 (16:44 +0100)]
Add an mkwsConfig widget to set perpage to 10.

10 years agoFacet captions and maximum counts are now taken from optional
Mike Taylor [Fri, 16 May 2014 15:43:12 +0000 (16:43 +0100)]
Facet captions and maximum counts are now taken from optional
configuration settings "facet_caption_NAME" and "facet_max_NAME",
defaulting to their own hardwired values when these settings are
absent.

Fixes bug MWKS-192.

10 years agoAdd new widget type, "Config", which allows configuration settings to
Mike Taylor [Fri, 16 May 2014 15:26:27 +0000 (16:26 +0100)]
Add new widget type, "Config", which allows configuration settings to
be established for the team. For example:
    <div class='mkwsConfig mkwsTeam_foo' perpage='10'></div>

Fixes bug MKWS-191.

10 years agoRework mike.html to be a playfound for the Credo widget.
Mike Taylor [Fri, 16 May 2014 12:44:46 +0000 (13:44 +0100)]
Rework mike.html to be a playfound for the Credo widget.

10 years agoRewrite the ReferenceUniverse widget as a one-liner using this.subwidget()
Mike Taylor [Fri, 16 May 2014 11:26:30 +0000 (12:26 +0100)]
Rewrite the ReferenceUniverse widget as a one-liner using this.subwidget()
Fixes bug MKWS-190 ("Inheriting from widgets is tricky")

10 years agoNew utility function subwidget, making it easier to write compoound
Mike Taylor [Fri, 16 May 2014 11:25:49 +0000 (12:25 +0100)]
New utility function subwidget, making it easier to write compoound
widgets that compose subwidgets (either with each other or with static
HTML).

10 years agoAdd missing semicolon.
Mike Taylor [Fri, 16 May 2014 11:04:53 +0000 (12:04 +0100)]
Add missing semicolon.

10 years agoChange to run Jason's Reference Universe widget.
Mike Taylor [Fri, 16 May 2014 11:04:17 +0000 (12:04 +0100)]
Change to run Jason's Reference Universe widget.

10 years agothis.node is already a jQuery node, so no need to use $(this.node).
Mike Taylor [Fri, 16 May 2014 11:03:56 +0000 (12:03 +0100)]
this.node is already a jQuery node, so no need to use $(this.node).
(In the past is was a DOMElement, so this WAS necessary.)

Omitting the $(...) call means that the Reference Universe widget is
no longer dependent on our old $ object still being so named, so that
it will work in contexts where another library redefines $. (That's
not a hypothetical: Wolfram saw this happen in his work embeddeding
widgets in Koha.)

10 years agoMerge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws
Jason Skomorowski [Fri, 16 May 2014 05:00:11 +0000 (01:00 -0400)]
Merge branch 'master' of ssh://git.indexdata.com/home/git/private/mkws

10 years agoReference Universe widget MKWS-156
Jason Skomorowski [Fri, 16 May 2014 04:59:28 +0000 (00:59 -0400)]
Reference Universe widget MKWS-156

10 years agoOnly init if there are widgets MKWS-166
Jason Skomorowski [Fri, 16 May 2014 03:46:33 +0000 (23:46 -0400)]
Only init if there are widgets MKWS-166

10 years agojqnode member renamed just node, now that the old DOMElement node is gone
Mike Taylor [Thu, 15 May 2014 16:19:56 +0000 (17:19 +0100)]
jqnode member renamed just node, now that the old DOMElement node is gone

10 years agoRemove the old "node" member from the widget object. (This pointed to
Mike Taylor [Thu, 15 May 2014 14:37:15 +0000 (15:37 +0100)]
Remove the old "node" member from the widget object. (This pointed to
the DOM node, which we don't actually use any more. Instead we now use
the "jqnode" membver, which points to the corresponding jQuery
object.)

10 years agoMoving MOTD is now done using jqnode rather than underlying DOM node.
Mike Taylor [Thu, 15 May 2014 14:29:18 +0000 (15:29 +0100)]
Moving MOTD is now done using jqnode rather than underlying DOM node.
... which I *think* means we no longer need the "node" member.

10 years agoAdd an MOTD
Mike Taylor [Thu, 15 May 2014 14:28:35 +0000 (15:28 +0100)]
Add an MOTD

10 years agoFinal changes to logging text (for now, anyway)
Mike Taylor [Thu, 15 May 2014 13:13:17 +0000 (14:13 +0100)]
Final changes to logging text (for now, anyway)
Fixes the key part of MKWS-188 ("Tidy up the logging")

10 years agoLogging of widget attributes is more informative.
Mike Taylor [Thu, 15 May 2014 13:10:41 +0000 (14:10 +0100)]
Logging of widget attributes is more informative.

10 years agoChange case in commented-out log message.
Mike Taylor [Thu, 15 May 2014 12:58:49 +0000 (13:58 +0100)]
Change case in commented-out log message.

10 years agoFix case of log message.
Mike Taylor [Thu, 15 May 2014 12:58:03 +0000 (13:58 +0100)]
Fix case of log message.

10 years agoTweak wording of log message.
Mike Taylor [Thu, 15 May 2014 12:54:56 +0000 (13:54 +0100)]
Tweak wording of log message.

10 years agoFix case of logging message.
Mike Taylor [Thu, 15 May 2014 12:49:39 +0000 (13:49 +0100)]
Fix case of logging message.

10 years agoFix case of logging message.
Mike Taylor [Thu, 15 May 2014 12:49:22 +0000 (13:49 +0100)]
Fix case of logging message.

10 years agoFix wording and capitalistion of several log messages.
Mike Taylor [Thu, 15 May 2014 12:47:00 +0000 (13:47 +0100)]
Fix wording and capitalistion of several log messages.

10 years agoRemove unnecessary temporary parameter `j'.
Mike Taylor [Thu, 15 May 2014 12:44:47 +0000 (13:44 +0100)]
Remove unnecessary temporary parameter `j'.
FIx old, misleading comment.

10 years agomakeWidgetsWithin uses $ as its jQuery object rather than j.
Mike Taylor [Thu, 15 May 2014 12:42:45 +0000 (13:42 +0100)]
makeWidgetsWithin uses $ as its jQuery object rather than j.
(Why does j even exist?)

10 years agoChange onBytarget log message from "target" to "bytarget"
Mike Taylor [Thu, 15 May 2014 12:39:03 +0000 (13:39 +0100)]
Change onBytarget log message from "target" to "bytarget"

10 years agoChange wording of some logging messages.
Mike Taylor [Thu, 15 May 2014 12:38:05 +0000 (13:38 +0100)]
Change wording of some logging messages.

10 years agoDocument the show_switch configuration item in README.
Mike Taylor [Thu, 15 May 2014 11:42:30 +0000 (12:42 +0100)]
Document the show_switch configuration item in README.

10 years agoDocument the show_switch configuration item.
Mike Taylor [Thu, 15 May 2014 11:42:05 +0000 (12:42 +0100)]
Document the show_switch configuration item.

10 years agoThe 'Switch' and 'Targets' widgets no-op if config.show_switch is false.
Mike Taylor [Thu, 15 May 2014 11:39:46 +0000 (12:39 +0100)]
The 'Switch' and 'Targets' widgets no-op if config.show_switch is false.
(No point of filling the latter if it can never be displayed.)
Fixes bug MKWS-186 ("make the switch widget optional in mkws_config object")

10 years agoAdd new config default, show_switch => true.
Mike Taylor [Thu, 15 May 2014 11:38:57 +0000 (12:38 +0100)]
Add new config default, show_switch => true.

10 years agoMerge remote branch 'origin/master' into wosch
Wolfram Schneider [Thu, 15 May 2014 11:28:49 +0000 (11:28 +0000)]
Merge remote branch 'origin/master' into wosch

10 years agoTweak another logging message.
Mike Taylor [Thu, 15 May 2014 11:18:11 +0000 (12:18 +0100)]
Tweak another logging message.

10 years agoTweak logging message.
Mike Taylor [Thu, 15 May 2014 11:17:33 +0000 (12:17 +0100)]
Tweak logging message.

10 years agoRemove logging of class-based selector.
Mike Taylor [Thu, 15 May 2014 11:16:52 +0000 (12:16 +0100)]
Remove logging of class-based selector.

10 years agoRemove logging when adding a widget to a team.
Mike Taylor [Thu, 15 May 2014 11:16:30 +0000 (12:16 +0100)]
Remove logging when adding a widget to a team.

10 years agoWhen the class-based selector is used (i.e. in the default case when
Mike Taylor [Thu, 15 May 2014 11:15:45 +0000 (12:15 +0100)]
When the class-based selector is used (i.e. in the default case when
the "scan_all_node" configuration element is not set), the selector
includes the classes for each widget-type's resize containers as well
as for the widget elements themselves.

Fixes bug MKWS-187 ("Resizing has broken")

10 years agojasmine-popup.html now undefined $ after loading MKWS.
Mike Taylor [Thu, 15 May 2014 10:39:29 +0000 (11:39 +0100)]
jasmine-popup.html now undefined $ after loading MKWS.
Enables it to test the fix for MKWS-185 ("MKWS fails if $ is unset")

10 years agoUse mkws.$(x) throughout in place of $(x).
Mike Taylor [Thu, 15 May 2014 10:38:52 +0000 (11:38 +0100)]
Use mkws.$(x) throughout in place of $(x).
Enables tests to run correctly when $ has been redefined.
Fixes the last part of MKWS-185 ("MKWS fails if $ is unset")

10 years agoUndefine $ immediately after including MKWS.
Mike Taylor [Thu, 15 May 2014 10:24:57 +0000 (11:24 +0100)]
Undefine $ immediately after including MKWS.

10 years agoVarious widgets now use w.jqnode instead of $(w.node), and remaining uses of $(x...
Mike Taylor [Thu, 15 May 2014 10:15:52 +0000 (11:15 +0100)]
Various widgets now use w.jqnode instead of $(w.node), and remaining uses of $(x) are changed to mkws.$(x)

10 years agoWidget constructor saves $(node) as the new jqnode member.
Mike Taylor [Thu, 15 May 2014 10:12:09 +0000 (11:12 +0100)]
Widget constructor saves $(node) as the new jqnode member.
Use w.jqnode in place of $(w.node) in a couple of places.

10 years agoUse mkws.$ to access to toJSON method, as some applications that use
Mike Taylor [Thu, 15 May 2014 10:11:19 +0000 (11:11 +0100)]
Use mkws.$ to access to toJSON method, as some applications that use
their own jQuery might reassign the global $ to be a jQuery object
that doesn't have the JSON extension.

10 years agowidgetNode uses w.jqnode rather than $(w.node)
Mike Taylor [Thu, 15 May 2014 10:10:28 +0000 (11:10 +0100)]
widgetNode uses w.jqnode rather than $(w.node)

10 years agoStash a local copy of $ (the jQuery object) in the mkws object.
Mike Taylor [Wed, 14 May 2014 13:52:00 +0000 (14:52 +0100)]
Stash a local copy of $ (the jQuery object) in the mkws object.
Thereafter, we can use mkws.$ to know we're getting the right jQuery
object even if another jQuery version (or other library) redefines $.

When showing and hiding widgets, use w.jqnode instead of $(w.node).

Contributes to the fix of MWKS-185.

10 years agoUndefine $, for testing on bug MKWS-185.
Mike Taylor [Wed, 14 May 2014 12:13:19 +0000 (13:13 +0100)]
Undefine $, for testing on bug MKWS-185.