Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. As before, created a new web-context for the GUI in the existing NAS tomcat - although any web-server will do
  2. Enabling jQuery just means adding some scripts in your html body and some css in your html head

    Code Block
        <meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="//">
        <link rel="stylesheet" href="//">
    <script src="//"></script>
    <script src="//"></script>
    <script src=""></script>
    <script type="text/javascript" charset="utf8" src=""></script>
    <script src="site.js"></script>

  3. The html for the Status page now looks like this

    Code Block
    <table id="status_table">

    ... literally, that's the whole thing, because all the action happens in the site.js:

    Code Block
    $(document).ready(function() {
          load: function( event, ui ) {
              if(event.currentTarget != null && event.currentTarget.firstChild.textContent === "Status") {
                  $('#status_table').DataTable( {
                      ajax: {
                          url: '../rest/rest/status/all',
                          dataSrc: ''
                      columns: [
                          { data: 'physicalLocation' },
                          { data: 'applicationName' },
                          { data: 'logMessage'}
                  } );

    What matters here is that we are leveraging the entire functionality of the jQuery-UI DataTable plugin to format the JSON we get from the REST service.

  4. And here's what it looks like

Image AddedImage Added

Note that even with absolutely minimal configuration and styling we get

  • Pagination
  • Column sorting
  • Search

None of which we have now.

So Where To Now

... or can I really ask the Steering Committee for permission to start a complete frontend rewrite?

The Good Stuff

  1. This is the result of three days' work by one developer, of which two days were on the backend. Getting started with this web-development stuff isn't as hard as I expected.
  2. We can leverage a universe of existing solutions to instead of having to reinvent the wheel.
  3. A clean API should make testing NAS much easier.
  4. This is already way more fun than hacking through a mess of servlets & jsp and should make it easier to integrate new developers in the project.

The Challenges (not all technical!)

  1. Known unknowns and unknown unknowns - we need a much longer pilot-program to be able to present a really convincing case. We haven't even looked at interactions yet.
  2. Is jQuery the right technology?
  3. How much reskilling do we need to do in the NAS developer group?
  4. What about "higher level" skills  - how to manage, structure, test, standardise a web-development project? These are not skills we currently have in NAS.

Code for this project is available in a branch of the main netarchivesuite github. As of presentation-day, see this commit: