Configurable descriptor Card
Make the Descriptor Card configurable by adding flags to the <DescriptorCard
that control display of specific elements.
-
textLength=200
would trim description to 200 characters -
owner
will force display of owner information crop
vocabulary
classification
version
dataType
The component should have two preset modes: complete and brief. The complete mode sets all flags to true, while brief sets most flags to false. The mode should default to full.
Then each flag provided to the component toggles the state of the mode: When in complete
mode and providing owner
like this <DescriptorCard full owner descriptor={ d } />
it would include all information, but toggle the owner to false.