-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow other constraint to be filled #356
base: 3.12.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ | |
<SecurityNoteMismatchedBothLang>Value mismatched for Security User Note in both languages</SecurityNoteMismatchedBothLang> | ||
<SecurityClassificationUserNote>Security User Note is not valid for the classification code selected. Valid values are:</SecurityClassificationUserNote> | ||
<SecurityClassificationUserNoteEmpty>Security User Note should be empty for the classification code selected</SecurityClassificationUserNoteEmpty> | ||
<OtherConstraintsNote>If you indicate 'Other Restrictions' in the 'Access Constraints' or 'Use Constraints' fields, the other constraints for accessing or using the resource should be explained here.</OtherConstraintsNote> | ||
<OtherConstraintsNote>If you have indicated 'Other Restrictions' in either the 'Access Constraints' or 'Use Constraints' fields, the ‘Other constraints' text box must be completed.</OtherConstraintsNote> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should " text box must be completed" changed to " text box must be filled". I don't believe completed the the correct term for filling in a form? Or it could be rewritten to the following
|
||
<OtherConstraintsNoteEmpty>If you did not indicate 'Other Restrictions' in either the 'Access Constraints' or 'Use Constraints' fields, the ‘Other constraints’ text box must be empty.</OtherConstraintsNoteEmpty> | ||
<UseLimitation>Value is required for Use Limitation in both languages</UseLimitation> | ||
|
||
<ContactOrganisationName>Contact - Organization name is required in both languages</ContactOrganisationName> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -741,13 +741,22 @@ | |
and (../gmd:accessConstraints/gmd:MD_RestrictionCode/@codeListValue = 'RI_609' | ||
or ../gmd:useConstraints/gmd:MD_RestrictionCode/@codeListValue = 'RI_609')) or | ||
|
||
(../gmd:accessConstraints/gmd:MD_RestrictionCode/@codeListValue != 'RI_609' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand the extra I believe the user can only add other constraints if they specify other constraints in 'Access Constraints' or 'Use Constraints' |
||
and ../gmd:useConstraints/gmd:MD_RestrictionCode/@codeListValue != 'RI_609' | ||
)" /> | ||
<sch:let name="emptyFine" value="( | ||
(not(string(gco:CharacterString)) and not(string(gmd:PT_FreeText/gmd:textGroup/gmd:LocalisedCharacterString[@locale=concat('#', $altLanguageId)])) | ||
and (../gmd:accessConstraints/gmd:MD_RestrictionCode/@codeListValue != 'RI_609' | ||
and ../gmd:useConstraints/gmd:MD_RestrictionCode/@codeListValue != 'RI_609') | ||
)" /> | ||
or ../gmd:useConstraints/gmd:MD_RestrictionCode/@codeListValue != 'RI_609') | ||
) or | ||
(../gmd:accessConstraints/gmd:MD_RestrictionCode/@codeListValue = 'RI_609' | ||
or ../gmd:useConstraints/gmd:MD_RestrictionCode/@codeListValue = 'RI_609'))" /> | ||
<sch:assert | ||
test="$filledFine" | ||
>$loc/strings/OtherConstraintsNote</sch:assert> | ||
<sch:assert | ||
test="$emptyFine" | ||
>$loc/strings/OtherConstraintsNoteEmpty</sch:assert> | ||
|
||
</sch:rule> | ||
|
||
|
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.
Should not use MS special characters for quote