Skip to content

Commit

Permalink
grscicll feat: remove fields gbif/registry#545
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenHofft committed Apr 12, 2024
1 parent 7251c6e commit 41acb77
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
37 changes: 0 additions & 37 deletions src/components/Institution/Details/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,30 +584,6 @@ const InstitutionForm = props => {
disabled={isLockedByMaster('foundingDate')} />
</FormItem>

<FormItem originalValue={diff.geographicDescription}
name='geographicDescription'
lockedByMasterSource={isLockedByMaster('geographicDescription')}
label={<FormattedMessage id="geographicDescription" defaultMessage="Geographic description" />}
helpText={
<FormattedMessage
id="help.institution.geographicDescription"
/>}
>
<Input.TextArea rows={4} disabled={isLockedByMaster('geographicDescription')} />
</FormItem>

<FormItem originalValue={diff.taxonomicDescription}
name='taxonomicDescription'
lockedByMasterSource={isLockedByMaster('taxonomicDescription')}
label={<FormattedMessage id="taxonomicDescription" defaultMessage="Taxonomic description" />}
helpText={
<FormattedMessage
id="help.institution.taxonomicdescription"
/>}
>
<Input.TextArea rows={4} disabled={isLockedByMaster('taxonomicDescription')} />
</FormItem>

<FormItem originalValue={diff.numberSpecimens}
name='numberSpecimens'
lockedByMasterSource={isLockedByMaster('numberSpecimens')}
Expand All @@ -621,19 +597,6 @@ const InstitutionForm = props => {
disabled={isLockedByMaster('numberSpecimens')} />
</FormItem>

<FormItem originalValue={diff.indexHerbariorumRecord}
name='indexHerbariorumRecord'
valuePropName='checked'
lockedByMasterSource={isLockedByMaster('indexHerbariorumRecord')}
label={<FormattedMessage id="indexHerbariorumRecord" defaultMessage="Herbariorum record" />}
helpText={
<FormattedMessage
id="help.institution.indexHerbariorumRecord"
/>}
>
<Checkbox disabled={isLockedByMaster('indexHerbariorumRecord')} />
</FormItem>

<FormItem originalValue={diff.logoUrl}
name='logoUrl'
rules={[{
Expand Down
11 changes: 0 additions & 11 deletions src/components/Institution/Details/Presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,9 @@ const InstitutionPresentation = ({ institution }) => {
<PresentationItem label={<FormattedMessage id="foundingDate" defaultMessage="Founding date" />}>
{institution.foundingDate}
</PresentationItem>
<PresentationItem
label={<FormattedMessage id="geographicDescription" defaultMessage="Geographic description" />}>
{institution.geographicDescription}
</PresentationItem>
<PresentationItem
label={<FormattedMessage id="taxonomicDescription" defaultMessage="Taxonomic description" />}>
{institution.taxonomicDescription}
</PresentationItem>
<PresentationItem label={<FormattedMessage id="numberSpecimens" defaultMessage="Number specimens" />}>
{institution.numberSpecimens}
</PresentationItem>
<PresentationItem label={<FormattedMessage id="indexHerbariorumRecord" defaultMessage="Herbariorum record" />}>
<BooleanValue value={institution.indexHerbariorumRecord} />
</PresentationItem>
<PresentationItem label={<FormattedMessage id="logoUrl" defaultMessage="Logo URL" />}>
{institution.logoUrl}
</PresentationItem>
Expand Down

0 comments on commit 41acb77

Please sign in to comment.