Create customised Metadata Issue

65 views
Skip to first unread message

Raja muthukrishnan Ramanujam

unread,
Jan 24, 2024, 7:03:09 AM1/24/24
to DSpace Community
Hello Team,

I have created the customised metadata field in dc schema, while saving getting some issue, Can you pls help to resolve this.

I have added the configuration in dspace.cfg also.
webui.browse.index.1 = dateissued:item:dateissued
webui.browse.index.2 = author:metadata:dc.contributor.*\,dc.creator:text
webui.browse.index.3 = title:item:title
webui.browse.index.4 = subject:metadata:dc.subject.*:text
webui.browse.index.5 = level:metadata:dc.feyenoord.level:text

have added the configuration in discovery.xml also.
<bean id="searchFilterlevel" class="org.dspace.discovery.configuration.DiscoverySearchFilterFacet">
        <property name="indexFieldName" value="level"/>
        <property name="metadataFields">
            <list>
                <value>dc.feyenoord.level</value>
            </list>
        </property>
    </bean>
----------
<property name="sidebarFacets">
            <list>
                <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterIssued" />
                <ref bean="searchFilterContentInOriginalBundle"/>
                <ref bean="searchFilterEntityType"/>
                <ref bean="searchFilterlevel" />
            </list>
        </property>
LOG:
2024-01-24 17:07:18,203 ERROR ec3fdca0-2a1f-4bda-918c-466707f27df2 21d61290-b031-40a4-ac44-2aeb0ad1380d org.dspace.app.rest.RestResourceController @ There was no metadataField found in path of operation
org.dspace.app.rest.exception.DSpaceBadRequestException: There was no metadataField found in path of operation
at org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataPatchUtils.checkMetadataFieldNotNull(DSpaceObjectMetadataPatchUtils.java:157) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.add(DSpaceObjectMetadataAddOperation.java:63) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.perform(DSpaceObjectMetadataAddOperation.java:47) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.patch.operation.DSpaceObjectMetadataAddOperation.perform(DSpaceObjectMetadataAddOperation.java:34) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.patch.ResourcePatch.performPatchOperation(ResourcePatch.java:58) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.patch.ResourcePatch.patch(ResourcePatch.java:42) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.DSpaceObjectRestRepository.patchDSpaceObject(DSpaceObjectRestRepository.java:64) ~[classes/:7.6-SNAPSHOT]
at org.dspace.app.rest.repository.ItemRestRepository.patch(ItemRestRepository.java:142) ~[classes/:7.6-SNAPSHOT]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:799) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:61) ~[spring-security-core-5.6.5.jar:5.6.5]


Reply all
Reply to author
Forward
0 new messages