-
Notifications
You must be signed in to change notification settings - Fork 1
Core module: update textValueHasMapping #87
Conversation
cf Knora PR#999 |
@kilchenmann @tobiasschweizer Could somebody please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to know, which Knora version is now required for these changes? Can someone add this information to the README of the module!?
It will be Knora 2.0.1 (not released yet). |
great! thanks. I will add it to the README before merging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add knora version to the readme (or somewhere). We have to do that for now on...
I have just noticed another JSON-LD string that should be an object:
should be
|
And another one: |
@tobiasschweizer I think I've changed the code here to accept JSON objects in |
Alternative way to filter out preview images from file values: filterOutPreviewImages(fileValue: ReadStillImageFileValue) {
const isPreview: boolean = fileValue.imageFilename.indexOf('.jpg') !== -1;
return !isPreview;
} This method can be passed to const fileValues: ReadStillImageFileValue[] = ...
fileValues.filter(filterOutPreviewImages); |
…ity level from file extension
@benjamingeer I think I found a good solution to determine whether a file value is a preview or not by looking at the file extension ( I will now add more test for JSON-LD conversion. |
@benjamingeer Ok, I added more test for Determining whether an image is a preview or not is now handled without |
I think the ontology test data has to be adapted too |
@kilchenmann added required Knora version in |
textValueHasMapping is not a string anymore, but an object
Files to update: