You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, license type has a rather specific (post)processing logic: a rather limited set of concepts have their values mapped directly. If no value is mapped, the value of availability is adopted. This allows for explicit 'overrides' of the availability level (pub/aca/res). See LicenseTypePostNormalizer.java:
publicList<String> process(finalStringvalue, CMDIDatacmdiData) {
if (value != null) {
finalStringnormalizedVal = normalize(value);
//Availability variants can be normalized with multiple values, in vocabulary they are separated with ;if (normalizedVal != null) {
returnArrays.asList(normalizedVal.split(";"));
}
}
//no (normalized) value - get from availability facetreturntransferValuesFromAvailability(cmdiData);
}
To reduce the complexity of the new value mapping implementation (see clarin-eric/VLO#93), we would like to get rid of the option to 'map if no match' (controlled by the doesProcessNoValue method of AbstractPostNormalizer)
With the new value mapping implementation, we can achieve the following with a cross-facet mapping from availability to licenseType with:
Map values 'pub', 'aca' and 'res' in availability to the same values in licenseType
Remove source value: NO
Override existing value: NO
Implement this to see if this actually works.
The text was updated successfully, but these errors were encountered:
Currently, license type has a rather specific (post)processing logic: a rather limited set of concepts have their values mapped directly. If no value is mapped, the value of
availability
is adopted. This allows for explicit 'overrides' of the availability level (pub/aca/res). SeeLicenseTypePostNormalizer.java
:To reduce the complexity of the new value mapping implementation (see clarin-eric/VLO#93), we would like to get rid of the option to 'map if no match' (controlled by the
doesProcessNoValue
method ofAbstractPostNormalizer
)With the new value mapping implementation, we can achieve the following with a cross-facet mapping from
availability
tolicenseType
with:availability
to the same values inlicenseType
Implement this to see if this actually works.
The text was updated successfully, but these errors were encountered: