-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
SemApps instance for UTT/Tech-cico #458
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/semapps/website/hi3rvmtzs |
<UriArrayField label="Organisations" filter={{ '@type': 'pair:Organization' }} reference="Organization" source="pair:topicOf"> | ||
<SingleFieldList linkType="show"> | ||
<ChipField source="pair:label" color="secondary" /> | ||
</SingleFieldList> | ||
</UriArrayField> | ||
<UriArrayField label="Evénements" filter={{ '@type': 'pair:Event' }} reference="Event" source="pair:topicOf"> | ||
<SingleFieldList linkType="show"> | ||
<ChipField source="pair:label" color="secondary" /> | ||
</SingleFieldList> | ||
</UriArrayField> |
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.
Pour info, le paramètre filter
permet, dans ce cas, de séparer les organisations des événements, qui sont les deux dans la liste des pair:topicOf
du thème. Cela permet aussi de s'assurer que le lien vers la ressource sera correct.
<UriArrayInput label="Sujets" reference="Subject" source="pair:topicOf"> | ||
<AutocompleteArrayInput | ||
optionText="pair:label" | ||
shouldRenderSuggestions={value => value.length > 1} | ||
fullWidth | ||
/> | ||
</UriArrayInput> |
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.
Pour l'input, le mieux c'est d'utiliser une classe Subject qui regroupe tous les types de ressources "sujets". On se conforme ainsi à l'ontologie PAIR...
…-instance # Conflicts: # src/frontend/boilerplates/archipelago/src/resources/organization-types/index.js # src/frontend/boilerplates/archipelago/src/resources/organizations/OrganizationShow.js
Do not merge, nor delete