-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate display decorated data (#943)
A first stab at generating "display decorated" data Changes * Add utility classes VocabUtil and DisplayUtil that wrap vocab, context and display data and operations * Make singletons of these preloaded with vocab/display data available on the server side * Option to load display.jsonld from local filesystem definitions repo (placed beside lxlvewer repo) for testing * USE_LOCAL_DISPLAY_JSONLD=true * Data structure for search results * Example of using decorated data in entity page and search page * Rename /search route to /find. So that it matches XL search API) * Token for e.g. Identifier "<@type> <value>" e.g . "ISBN 9783833148408" * ISNI/ORCID formatting TODO: * TESTS (I postponed this until we're happy with the design of the decorate data) * "mappings" in SearchResult, i.e. representation of the active query * transliterated values (e.g. titles) in language containers * type coercion (code, langCode, langCodeFull -> code^^ISO639-2, code^^ISO639-3 etc.) * fresnel:allProperties? We can split/move/rename "xl.ts" (e.g. to lxljs) when it has become more stable
- Loading branch information
Showing
13 changed files
with
1,121 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
SVELTE_INSPECTOR_TOGGLE=shift-alt | ||
API_URL= | ||
ID_URL= | ||
USE_LOCAL_DISPLAY_JSONLD=false |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.