MLJS 1.4 March Release now available…

Latest MLJS release is now available. Read on for more details…

I’ve finally gotten around to releasing the latest MLJS code. Been really busy lately so it’s not a massive release.

Most impressive changes are:-

  • Updated the API and Tutorial docs webpage template to make it more accessible. Now supports method search in the browser.
  • Added various documentation about MLJS design to the tutorials section
  • Added a 1 day Intro to MLJS course (some bugs to iron out – especially in viewing HTML in the tutorial online!)
  • Added support for advanced rendering to the Search Results widget
  • Added heat maps to the OpenLayers widget
  • Address lookup using Google geocode search
  • Continued working on the MLJS Workplace (now 75% complete)

You can grab the latest code from GitHub.

Advanced Rendering in Search Results

Originally MLJS allowed you to plug in a single function to customise how a search result looked. This was useful, but in many instances the title, links, and action buttons would always be the same.

I’ve now made this a pluggable area, allowing custom layouts to be used, as well as several sections with sensible defaults.

Now all you need to do is add code to override the individual parts (E.g. summary or metadata areas), and MLJS will manage the rendering. Much less code now for custom rendering.

Examples to follow in May of how to make your search pages look like Google/Amazon/Springer websites.

Geospatial improvements

I’ve added a google backed address lookup. This can be used either purely to move a map’s center, or to generate a radius geospatial query as well.

The Core API now also supports a geocontext context object to manage interactions between geo based widgets.

The OpenLayers widget has been updated to support the generation of heatmaps on the backend. All you need to do is add the heatmap to your search options, and tell the widget to render them.

MLJS Workplace

Still working on the drag/drop Workplace concept. Not far to go now. Just need to complete the Save operation.

This will allow you to deploy a generic MLJS project, then simply click, drag, drop and configure widgets in a wizard like interface.

Think Application Builder but with support for multiple pages, and custom widgets.

Other changes

I’ve written a Node.js server app that can take any MarkLogic REST Server project and run it in Node.js instead.

This proxies all REST requests to /v1/*. It also supports WebSockets for alert pushing. (Although I haven’t got the UI widgets to accept these yet – watch the mljs.alertcontext for changes).

See the mljs-webserver.js file and the run-webserver.sh file for how to use this.

The future

The April release is all about the MLJS Workplace. Watch this space…

About these ads

Tags: , , , , , , , , , ,

About adamfowleruk

I'm a Principal Sales Engineer with MarkLogic in the UK. Big NoSQL geek, but not a mindless fanboi! Author of the upcoming 'NoSQL for Dummies' book from Wiley. Also love Node.js, particularly for real time situational awareness application stacks where timely information is a must. Love Node.js packages to run http servers, supporting WebSockets on HTML5 apps, and linking to IM platforms like Jabber. I'm the creator of MLJS and MLDotNet, wrappers in JavaScript and .NET, respectively, for the MarkLogic REST API.

Trackbacks / Pingbacks

  1. MLJS 1.4 March Release now available... | Real ... - March 25, 2014

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 722 other followers

%d bloggers like this: