majlis-erc / manuForma

The manuForma application is designed to make TEI data creation and distributed editing faster and easier.
6 stars 1 forks source link

Persons: Display alternate side menus for person and institutions #640

Open mMoliere opened 2 months ago

mMoliere commented 2 months ago

@wsalesky Users can choose between two templates for this entity type: natural persons and institutions. This should also be reflected in the side menues. At the moment, manuForma displays the menus for both variants which is not appropriate.

This example is from 35.xml

Screenshot 2024-08-27 at 16-03-23 Edit Person TEI records

"Heritage Data" is part of both entry variants, so it should be displayed regardless.

From a TEI perspective, the major difference is that the listPerson element contains an element org instead of person. (This is allowed by the TEI guidelines.) Therefore a possible switch in manuForma could check if the element org is a childelement of listPerson and then display the institution side menus. Otherwise, display the person side menues.