ediarum.WEB Version 1.11.0
August 2021
Welcome to the new release of ediarum.WEB. We are glad to announce the following features and changes:
Move Data-Cache from ediarum.WEB to Project App
A new collection cache
is added to the project app where the cache is
stored independently of ediarum.web ($app-target/cache
). The cache file
names now don't contain the app title (app-target) because it is the same
for a project.
IMPORTANT: Now the app-target must be the first parameter for all functions
using edwebapi:load-map-from-cache
.
- Remove unused variable
$edweb:cache-collection
Highlighting Feature for Links
If the website user follows a link build with $id/
the links to the first item are highlighted. If a link to an item is add with $id/
(in @href
or @src
) a referer is added to the link and the link is highlighted if the URL contains the referer.
- Update
ediarum.less
- Update
edweb.xql
-local:view-expand-links
- Added highlighting feature to next, prev, and detail links
More:
- Bugfix:
edweb:expand-links
didn't work if links contained an anchor#
Relation Handling
For all loaded relation items the key is
is added. It describes if the item is
subject
or object
of the relation.
- Update for all
edweb:load-relations-*
Now, it is possible to load relations not only for the current item but
also for an item with a defined ID.
- Added
edweb:load-relations-for-subject-with-id
- Added
edweb:load-relations-for-object-with-id
- Added
edweb:load-relations-for-subject-with-id-path
- Added
edweb:load-relations-for-object-with-id-path
- Added
edweb:load-relations-with-id
Relations of second degree (friend-of-a-friend) can now be loaded. They are
handled like other relations. The predicate contains the relation item of the
first degree:
- Added
edweb:load-second-degree-relations
More:
- Bugfix:
edweb:load-relations
due to sequence / array mix up - Bugfix:
edweb:load-relations
didn't work if there were no subject or object relations
Frontend Library
- Added
edweb:insert-count-of-groups
. Count objects after grouping, with parametersfrom
andgroup-by
- Added
edweb:template-detail-link
. Add a link with default label of the linked object (with paraneterfrom
). - Added
edweb:template-do-if-not-empty
. Processes nodes only if xpath in current xml is not empty (with parameter ``xpath`) - Added
edweb:template-for-each-group
equivalent totemplate:each
but including grouping with parametergroup-by
Backend Library
- Bugfix: relations didn't work if no object/subject was found
- Bugfix: problem with relation condition. The object and subject conditions for relations with
type=id
didn't work. - Add test for IDs containing
:
- Add
$internal-node-id
to relations. With$absolute-resource-id
and$internal-node-id
the relation xml within the tree can be accessed.
Other Changes
- Rename
main.less
toediarum.less
minimizing confusion of it's use in a app