Skip to content
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

feat: add History, Editorial, and Change notes #34

Merged
merged 1 commit into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions src/skosConcept.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import {AiFillTag, AiFillTags} from 'react-icons/ai'
import {defineType, defineField} from 'sanity'
import {PrefLabel} from './components/PrefLabel'
import {DescriptionDetail} from './styles'
import baseIriField from './modules/baseIriField'

export default defineType({
Expand Down Expand Up @@ -148,6 +149,101 @@ export default defineType({
description: 'An example of the use of the concept.',
rows: 3,
}),
defineField({
name: 'historyNote',
title: 'History Notes',
type: 'text',
description: (
<details>
<summary>Significant changes to the meaning of the form of this concept.</summary>
<DescriptionDetail>
<kbd>
Example: childAbuse
<br />
History Note: "Estab. 1975; heading was: Cruelty to children [1952 - 1975]."
</kbd>
<p>
For more information on the recommended usage of the SKOS documentation properties,
see
<a
href="https://www.w3.org/TR/2009/NOTE-skos-primer-20090818/#secdocumentation"
target="_blank"
rel="noreferrer"
>
{' '}
W3C SKOS Primer: 2.4 Documentary Notes
</a>
</p>
</DescriptionDetail>
</details>
),
rows: 3,
}),
defineField({
name: 'editorialNote',
title: 'Editorial Notes',
type: 'text',
description: (
<details>
<summary>
Information to aid in administrative housekeeping, such as reminders of editorial work
still to be done, or warnings in the event that future editorial changes might be made.
</summary>
<DescriptionDetail>
<kbd>
Example: doubleclick
<br />
Editorial Note: "Review this term after the company merger is complete."
</kbd>
<p>
For more information on the recommended usage of the SKOS documentation properties,
see
<a
href="https://www.w3.org/TR/2009/NOTE-skos-primer-20090818/#secdocumentation"
target="_blank"
rel="noreferrer"
>
{' '}
W3C SKOS Primer: 2.4 Documentary Notes
</a>
</p>
</DescriptionDetail>
</details>
),
rows: 3,
}),
defineField({
name: 'changeNote',
title: 'Change Notes',
type: 'text',
description: (
<details>
<summary>
Fine-grained changes to a concept, for the purposes of administration and maintenance.
</summary>
<DescriptionDetail>
<kbd>
Example: tomato
<br />
Change Note: "Moved from under 'fruits' to under 'vegetables' by Horace Gray"
</kbd>
<p>
For more information on the recommended usage of the SKOS documentation properties,
see
<a
href="https://www.w3.org/TR/2009/NOTE-skos-primer-20090818/#secdocumentation"
target="_blank"
rel="noreferrer"
>
{' '}
W3C SKOS Primer: 2.4 Documentary Notes
</a>
</p>
</DescriptionDetail>
</details>
),
rows: 3,
}),
defineField({
name: 'topConcept',
title: 'Top Concept',
Expand Down