First draft for public mail journal view - demo but not yet working

Petter Reinholdtsen pere at hungry.com
Mon May 22 14:00:03 CEST 2017


I had a look at how to create a public mail journal view for the API,
and pushed web/postliste.html to test this.  The javascript code is in
javascript/client.js alongside the the code for the API browser.

It will show a HTML select option for fonds (arkiv) and series
(arkivdel), and show files for the selected fonds and series as a simple
table.

I tried to show the case file list instead, but the endpoint for the
http://rel.kxml.no/noark5/v4/api/sakarkiv/saksmappe/ relation is not
working for series, so I could not get the relevant case files for a
given series.

A more serious problem is that I actually want to show the latest
registry entry (journalpost) set, but did not figure a sensible way to
get that list for a given fonds or series.  The only way I could think
of is to ask for all files, check their 'self' link to see if it is a
sakarkiv/saksmappe href, and then look up all journalpost entries
associated with a given case file.  This stranded because
.../sakarkiv/saksmappe/<id>/journalpost/ do not work, so I do not know
how to find all registry entries for a given case file.

Input needed. :)

-- 
Happy hacking
Petter Reinholdtsen


More information about the nikita-noark mailing list