Hello Eustachio, I saw you also asked this question on StackOverflow. I've answered it there: https://stackoverflow.com/a/53504190/3750035 Currently, this isn't possible in DSpace, as "DiscoverySortFieldConfiguration" only supports a single metadataField, and not a list of metadataFields.
- Tim On Tue, Nov 27, 2018 at 7:45 AM Eustachio Maselli <[email protected]> wrote: > 0 down vote favorite > <https://stackoverflow.com/questions/53498119/dspace-xmlui-discovery-sorting-items-with-a-combination-of-metadata#> > > I would need to sort the items displayed on the XMLUI discovery page using > a combination of metadata, because the type of ordering required > (specifically for size) uses a different metadata for media type of > reference (see images, audio, video ...) . > > Wanting to act, as per documentation, on the file "discovery.xml" but > specifying a bean of this type: > > > <bean id="sortSize" > class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration"> > <property name="metadataFields"/> > <list> > <value>METADATA_NAME_1</value> > <value>METADATA_NAME_2</value> > ... > </list> > </property> > </bean> > > > Indexing is not successful. This is because it is only possible to > indicate a sort bean of this type: > > > <bean id="sortSize" > class="org.dspace.discovery.configuration.DiscoverySortFieldConfiguration"> > <property name="metadataField" value="SINGLE_METADATA_NAME"/> > </bean> > > > Is it possible to create a type of combined ordering like the one > described? If so, how could I operate? > > Thank you in advance! > > -- > All messages to this mailing list should adhere to the DuraSpace Code of > Conduct: https://duraspace.org/about/policies/code-of-conduct/ > --- > You received this message because you are subscribed to the Google Groups > "DSpace Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/dspace-community. > For more options, visit https://groups.google.com/d/optout. > -- Tim Donohue Technical Lead for DSpace & DSpaceDirect DuraSpace.org | DSpace.org | DSpaceDirect.org -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-community. For more options, visit https://groups.google.com/d/optout.
