Hi Aroldo, Make sure that you perform a reindex after adding the new configuration. You must reindex (./dspace index-discovery -b) all content before new filters/facets will show up.
Developers have added new filters to the codebase during the DSpace 7 development process. As you can see in your screenshots, there's a large number of new filters we've added to support Configurable Entities. So, this should all work. That said, maybe someone else on this list can help verify that they've added custom filters/facets to DSpace 7. You may also want to verify that no errors are being thrown in the dspace.log when you perform a reindex, etc. Tim On Monday, May 8, 2023 at 12:18:00 PM UTC-5 [email protected] wrote: > Hello Tim. > > Thanks for your help. In dspace6, I can easily add filters, but in dspace > 7.5, even performing the settings you indicated, the new filter still > doesn't appear. Below is the changes I made to my discovery.xml: > > [image: image.png] > > I also created the searchFilterUnidade, with the metadata I want and the > bean sortUnidade: > > [image: image.png] > > [image: image.png] > > > Even so, the filter still does not appear on the screen. > > Has anyone already working with dspace 7.x successfully added filters? > > Aroldo > > > > > > > Em seg., 8 de mai. de 2023 às 13:03, DSpace Technical Support < > [email protected]> escreveu: > >> Hi, >> >> I believe you need to change the "sidebarFacets" under the >> "defaultConfiguration" (which is the one used by default on the search >> page) around here in the discovery.xml: >> >> https://github.com/DSpace/DSpace/blob/main/dspace/config/spring/api/discovery.xml#L166-L174 >> >> The docs on this are here: >> https://wiki.lyrasis.org/display/DSDOC7x/Discovery#Discovery-ConfiguringlistsofsidebarFacetsandsearchFilters >> And here's how to create a brand new filter/facet: >> https://wiki.lyrasis.org/display/DSDOC7x/Discovery#Discovery-Searchfilters&sidebarfacetsCustomization >> >> (There are plenty of examples in the discovery.xml near the bottom) >> >> Keep in mind, as it says in the documentation, you will need to do a >> *full reindex of all content* before the changes will take effect. >> >> Tim >> On Saturday, May 6, 2023 at 2:46:02 PM UTC-5 [email protected] wrote: >> >>> In short, Tim: after searching for a term (blue), where in the >>> discovery.xml (which section) should I change to include a filter (red)? >>> [image: image.png] >>> >>> >>> >>> >>> Em sex., 5 de mai. de 2023 às 12:59, 'Tim Donohue' via DSpace Developers >>> <[email protected]> escreveu: >>> >>>> Hi Aroldo, >>>> >>>> As far as I'm aware, adding filters in DSpace 7 should be the same as >>>> in DSpace 6. While there have been new sections added to the >>>> discovery.xml, the structure of that file is unchanged. So, the existing >>>> documentation *should still be accurate* for DSpace 7. If you are finding >>>> it is *not* accurate, then please do let us know and we can look into it >>>> further. >>>> >>>> Tim >>>> >>>> On Thursday, May 4, 2023 at 8:47:09 PM UTC-5 [email protected] wrote: >>>> >>>>> Hey guys! >>>>> >>>>> I'm having trouble inserting new filters into dspace 7.5 search. We >>>>> are migrating a digital repository from version 6 to version 7.5 and, one >>>>> of our demands is the addition of filters to the filters that already >>>>> exist, by default, in dspace 7.5. >>>>> >>>>> I checked the dspace 6 discovery.xml docs, which is linked >>>>> https://wiki.lyrasis.org/display/DSDOC6x/Discovery#Discovery-GeneralDiscoverysettings(config/modules/discovery.cfg) >>>>> >>>>> with the discovery docs. xml of dspace 7, which is in the link >>>>> https://wiki.lyrasis.org/display/DSDOC7x/Discovery#Discovery-GeneralDiscoverysettings(config/modules/discovery.cfg) >>>>> >>>>> and I realized that both are very close. It looks like the dsapce 7.x >>>>> discovery.xml docs haven't been updated yet. The dspace 7.x discovery.xml >>>>> is quite different from the dspace 6.x discovery.xml. The presentation of >>>>> the filters is also quite different. >>>>> >>>>> dspace 6: >>>>> >>>>> [image: image.png] >>>>> >>>>> dspace 7: >>>>> >>>>> [image: image.png] >>>>> >>>>> Are there any dspace 7 specific documents about filters? Is it >>>>> possible to add new filters in dspace 7? >>>>> >>>>> Aroldo Rique >>>>> >>>> -- >>>> All messages to this mailing list should adhere to the Code of Conduct: >>>> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "DSpace Developers" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/dspace-devel/68c65dd7-4830-4273-9dab-d1e731b428f1n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/dspace-devel/68c65dd7-4830-4273-9dab-d1e731b428f1n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> All messages to this mailing list should adhere to the Code of Conduct: >> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx >> --- >> > You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dspace-tech/cb238c5a-efa9-45cb-a478-0b0909442c1bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dspace-tech/cb238c5a-efa9-45cb-a478-0b0909442c1bn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/dea680a8-6c08-490d-98c3-84e7bfa15fd2n%40googlegroups.com.
