Skip to content

ediarum.WEB Version 1.9.6

Compare
Choose a tag to compare
@MartinFechner MartinFechner released this 16 Oct 09:29

October 2020 (version 1.9.6)

Welcome to the new release of ediarum.WEB. There are a number of new features and other improvements. Every new version is also published at zenodo.org as shown on the new badge DOI.

Search Endpoints

Now it is possible to search within the backend. For this the search
indexes and optional search routines must be defined in the appconf.xml.
With a new search parameter searches within the object list are possible.
A new API call is defined to search with the search routine.

See Searching

API for Views Output

For every object type different views can be declared in the appconf.xml.
The related XSLT transformation can now be triggered within the backend
by new API calls.

The listing of views in the JSON output are now ordered by id instead of
randomly.

See Get Object - GET-Parameters

More:

  • Add order view output by position
  • Add order by pos for object views

Endpoint of all IDs

API call "/api?id=all" can be used now with "/api?id-type=all". Because
there were sideeffects with the request-attribute "id" to some frontend
detail pages (with functions like edweb:load-current-object).

See List of all IDs

Updated cache mechanism

See Caching

Updates in Object and Object-Type Endpoints

See List of Objects and Relations and Get Object

  • Add object/subject filter to relation-list and improve performance
  • Allow xpath for filter labels, add fallback label
  • Restrict using normalize-space to non node filters
  • Add default limit of 10000 objects to object list because of performance
  • Allow xpath functions for filter labels
  • Add warning for empty labels
  • Normalize space at filter values by default
  • Allow all literals as ID
  • Make single resources as source for objects available
  • Add object id as id property

Fontend Library

See edweb.xql

  • Add edweb:insert-xml-string for parsing xml text
  • edweb:insert-xml-string can return a string or a node
  • The processed node in edweb:template-switch uses now normalize-spaces()
    to avoid malfunctioning due to xml whitespace formatting causes.

Changes in the Backend and Controller Libraries

See edweb-api.xql and edweb-controller.xql

  • Bugfix clear attributes for edwebcontroller:api-get
  • Bugfix in function call edwebapi:get-relation-list
  • Separating eval-base/filter-object functions from get-list and add filter to get-object
  • Add console log for edwebcontroller:api-get calls