[ptsefton.com] | [CV & Bio]

Unfinished: Editing MODS metadata using XForms


In a similar vein to my previous post, here's a bit of unfinished exploration. This time, relevant to the RUBRIC project.

Thinking about repository ingestion services, I began to wonder if there was a better way of mapping from an XML schema to an HTML form?

I like the idea of using configuration files for this kind of work, as they are easy to version control, and typically more robust than elaborate interface code.

A bit of poking around led me to XForms, a W3C recommendation with very limited support.

Even though browser support is still a way off  XForms does have ways of expressing mapping rues from an example data document to a forms interface. I used the free FormFaces software which is a single Javascript file that magically turns your browser into an XForms engine.

Here's my unfinished simple demo. The html page loads a mods data file and rules in the page map it to form widgets. You can't save the data anywhere, but there are buttons there that allow you to add new subjects – and yes it does deal with hierarchy, so it should be OK with the affiliation issue. Worth exploring, if anyone has the time.