4Science / DSpace

This repository contains the 4Science optimized DSpace & DSpace-CRIS distribution.
https://wiki.lyrasis.org/display/DSPACECRIS/
BSD 3-Clause "New" or "Revised" License
42 stars 61 forks source link

Create Entity Button is missing when SherpaAuthority is used #378

Closed olli-gold closed 10 months ago

olli-gold commented 1 year ago

Describe the bug When SherpaAuthority is used for authority control of a journal field, the "Create Entity" Button in the lookup dialog is missing.

To Reproduce Configuration to reproduce the behavior:

authority.cfg / local.cfg:

choices.plugin.dc.relation.ispartof = SherpaAuthority
choices.presentation.dc.relation.ispartof = suggest
choises.externalsource.dc.relation.ispartof = journalAuthority
authority.controlled.dc.relation.ispartof = true

external-services.xml:

    <bean id="authorityJournalDataProvider" class="org.dspace.external.provider.impl.AuthorityImportDataProvider">
        <property name="supportedAuthority" value="SherpaAuthority" />
        <property name="authorityMetadata" value="dc.relation.ispartof" />
        <property name="sourceIdentifier" value="journalAuthority" />
        <property name="supportedEntityTypes">
            <list>
                <value>Journal</value>
            </list>
        </property>
    </bean>

Steps to reproduce the behavior:

  1. Put the configuration listed above into the two files config/modules/authority.cfg (or config/local.cfg) and config/srping/api/external-services.xml.
  2. Configure the field dc.relation.ispartof into your submission form (if necessary)
  3. Restart the DSpace 7 backend
  4. Get a submission form including the field dc.relation.ispartof with the DSpace 7 UI

You will not find the option "Create entity" at the field.

Expected behavior The submission form should contain a "create entity" button for the entered journal

Related work None I am aware of