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

Add business logic for MOTs #4982

Closed
Tracked by #4640
grantfitzsimmons opened this issue Jun 3, 2024 · 0 comments · Fixed by #5248
Closed
Tracked by #4640

Add business logic for MOTs #4982

grantfitzsimmons opened this issue Jun 3, 2024 · 0 comments · Fixed by #5248
Assignees
Labels
1 - Request A request made by a member of the community geospecify
Milestone

Comments

@grantfitzsimmons
Copy link
Member

grantfitzsimmons commented Jun 3, 2024

Component of #4640

Review the full business logic described in the main topic and let me know if there are any questions.

Business Logic & Requirements

  • Each collectionobjecttype would be scoped to a particular collection

  • An objectType would be chosen from a pick list on the Collection Object form

  • When creating a new Determination record, the system should check the objectType.taxonTreeDef field to find the tree to search for the user's entered name when searching in the taxon or preferredTaxon query combo boxes

  • objectType should not be a required field but can be made to be using the form editor.

  • Conditional forms must be able to use the value from the objectType field to determine the layout in an intuitive way for users

    • If the user can define a form definition as follows:
      <cell type="panel" coldef="100px,2px,76px" colspan="6">
        <rows>
          <!-- This view definition will be displayed in Specify 6, or if all other conditions don't match -->
          <row>
            <cell type="label" label="Without any object type, this will display." />
          </row>
        </rows>
        <rows condition="objectType=Rock">
          <row>
            <cell type="label" label="This is a rock!" />
          </row>
        </rows>
        <rows condition="objectType=Mineral">
          <row>
            <cell type="label" label="This is a mineral!" />
          </row>
        </rows>
      </cell>

    That would be satisfactory. This would enable users to create forms or display subviews based on the value, which would also enable users to create specific determination forms or collection object attribute forms based on the value of objectType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request A request made by a member of the community geospecify
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants