I’ve just released version 0.8 of MLJS, the Node.js and Browser Widget API I’ve created for MarkLogic server. Read on for details…
As I’ve recently alluded to, this is the biggest version I’ve created. It was meant to be a June release, and is now an August release!
There have been many improvements. Some of these have been for demonstrations I’ve done in my role as a Senior Pre-Sales Engineer at MarkLogic UK, others are features to close the gap with the OOTB Visualisation Widgets in MarkLogic’s Application Builder.
The biggest changes are around how a search is orchestrated or shared between visual widgets, or indeed components of a Node.js application. On the visual side, I’ve added a co-occurence widget in pure HTML+JS. Previously we’ve used an aging shockwave flash component to do this. I’ve also added version 7 widgets to allow semantic enrichment and search on the Early Access version of MarkLogic Server which is due to be released in September/October.
I’ve added a pie chart to the list of chart options, and allowed charts to use facet information rather than just introspecting JSON document results.
I’ve also created an extensive Search Options builder helper object. This means you won’t have to understand any of the JSON structure of a MarkLogic options object – just call simple methods on an object and the JSON configuration will be created for you!
I’ve also added default rendering support for all XML, SVG, JSON, XHTML, plain text and snippet results in the search results widget. This makes standing up a new search demo very easy, and without requiring an XSLT transform as would normally be the case.
I’ve also extended this to check for common result title and summary elements in the JSON and XML documents that are returned. Examples include title, name, summary, synopsis, description.
I’ve also fixed the more… all… and less… links on the facets widget, and reworked the search sorter widget to have more useful options for sorting.
Documentation has also been updated and extended, with all new core functions documented (widget functions coming soon…), and builds for download and npm node.js packages updated.
Please comment on this page if you think it’s cool!