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

Limit amount of relationships #148

Open
Eveltjen00 opened this issue Jun 28, 2024 · 3 comments
Open

Limit amount of relationships #148

Eveltjen00 opened this issue Jun 28, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@Eveltjen00
Copy link
Member

For example: storage location <> objects
You only want users to be able to select that a plantlot is stored in a plantlotSite, plantlotSitespot
You only want users to be able to select that seedlots, DNA samples are in a freezer, shelve, box, boxSpot..

Same goes for object <> object
From a soil sample you cannot derive a mammal sample etc...

@Eveltjen00
Copy link
Member Author

Executed for storage location
<placement code="ca_storage_location" typeRestrictions="livingPlant,forestTreePopulation"> <bundle>ca_storage_locations</bundle> <settings> <setting name="label" locale="en_US">Object is stored at</setting> <setting name="restrict_to_types">forestTreePopulationSite,forestTreePopulationSiteSpot</setting> <setting name="minRelationshipsPerRow">0</setting> <setting name="maxRelationshipsPerRow">1</setting> </settings> </placement> <placement code="ca_storage_location" typeRestrictions="animalObject,leafSample,littertrapSample,seedlot,dnaSample,waterObject,soilObject" includeSubtypes="1"> <bundle>ca_storage_locations</bundle> <settings> <setting name="label" locale="en_US">Object is stored at</setting> <setting name="restrict_to_types">room,cabinetFridgeFreezer,drawershelf,box,spot</setting> <setting name="minRelationshipsPerRow">0</setting> <setting name="maxRelationshipsPerRow">1</setting> </settings> </placement>

@Eveltjen00
Copy link
Member Author

Also tried for an animal sampling point with hierarchy_location, but not sure if type restriction will work here. To check
image

@Eveltjen00
Copy link
Member Author

We cannot test this yet for storage locations as we do not have the availability to add storage locations via the hierachy browser
image

We added both a lookup and hierarchy
image

You can still add everything under animal sampling point
image
image

@Eveltjen00 Eveltjen00 added the help wanted Extra attention is needed label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant