[dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-08 Thread DSpace Technical Support
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 aro...@gmail.com 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 <
> dspace...@googlegroups.com> 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 aro...@gmail.com 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 dspace-devel...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dspace-devel/68c65dd7-4830-4273-9dab-d1e731b428f1n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/cb238c5a-efa9-45cb-a478-0b0909442c1bn%40googlegroups.com.


Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-08 Thread DSpace Technical Support
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 aro...@gmail.com 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 <
> dspac...@googlegroups.com> 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 aro...@gmail.com 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 
>>>  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 aro...@gmail.com 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 dspace-devel...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/dspace-devel/68c65dd7-4830-4273-9dab-d1e731b428f1n%40googlegroups.com
  
 

Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-08 Thread Aroldo Rique
Olá Tim.

Base reindexada, sem erros.

[image: imagem.png]

Mas o novo filtro ainda não aparece.

Em seg., 8 de mai. de 2023 às 14:29, DSpace Technical Support <
dspace-tech@googlegroups.com> escreveu:

> 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 aro...@gmail.com 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 <
>> dspac...@googlegroups.com> 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 aro...@gmail.com 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  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 aro...@gmail.com 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 dspace-de

Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-08 Thread Aroldo Rique
Hi, Tim

Reindexed base, no errors.

[image: image.png]

But the new filter still does not appear.

Aroldo

Em seg., 8 de mai. de 2023 às 14:29, DSpace Technical Support <
dspace-tech@googlegroups.com> escreveu:

> 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 aro...@gmail.com 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 <
>> dspac...@googlegroups.com> 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 aro...@gmail.com 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  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 aro...@gmail.com 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

Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-09 Thread darryl....@usask.ca
| That said, maybe someone else on this list can help verify that they've 
added custom filters/facets to DSpace 7.

We're running DSpace 7.5 on a dev and test server, and have successfully 
made changes to the filters.  We re-ordered a couple, removed one or two we 
didn't want, and added 3 or 4 based on ETDms metadata (department, program, 
degree, etc).  Changes were made to dspace/config/spring/api/discovery.xml

I'm never sure what changes DSpace will pick up on the fly and which 
require a restart, so now I just always restart Tomcat after every config 
change.  In this case I edited discovery.xml, restarted Tomcat, ran the 
re-index, restarted Tomcat, then checked the browser to see if the filters 
changes were there (they were).

I made my changes to both the sidebarFacets and searchFilters sections of 
the defaultConfiguration. I wasn't 100% clear on what the difference 
between those 2 sections was, but the default Author, Subject (etc) filters 
were defined in both places, so I replicated that behaviour.

- Darryl



On Monday, May 8, 2023 at 1:16:47 PM UTC-6 Aroldo Rique wrote:

> Hi, Tim
>
> Reindexed base, no errors.
>
> [image: image.png]
>
> But the new filter still does not appear.
>
> Aroldo
>
> Em seg., 8 de mai. de 2023 às 14:29, DSpace Technical Support <
> dspac...@googlegroups.com> escreveu:
>
>> 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 aro...@gmail.com 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 <
>>> dspac...@googlegroups.com> 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 aro...@gmail.com 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  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 aro...@gmail.com 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 

Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-09 Thread Aroldo Rique
Thank you, Darryl!

Please could you send me a copy of your discovery.xml?

You can send it to aro...@gmail.com

Em ter., 9 de mai. de 2023 às 13:51, darryl@usask.ca <
darryl.frie...@usask.ca> escreveu:

> | That said, maybe someone else on this list can help verify that they've
> added custom filters/facets to DSpace 7.
>
> We're running DSpace 7.5 on a dev and test server, and have successfully
> made changes to the filters.  We re-ordered a couple, removed one or two we
> didn't want, and added 3 or 4 based on ETDms metadata (department, program,
> degree, etc).  Changes were made to dspace/config/spring/api/discovery.xml
>
> I'm never sure what changes DSpace will pick up on the fly and which
> require a restart, so now I just always restart Tomcat after every config
> change.  In this case I edited discovery.xml, restarted Tomcat, ran the
> re-index, restarted Tomcat, then checked the browser to see if the filters
> changes were there (they were).
>
> I made my changes to both the sidebarFacets and searchFilters sections of
> the defaultConfiguration. I wasn't 100% clear on what the difference
> between those 2 sections was, but the default Author, Subject (etc) filters
> were defined in both places, so I replicated that behaviour.
>
> - Darryl
>
>
>
> On Monday, May 8, 2023 at 1:16:47 PM UTC-6 Aroldo Rique wrote:
>
>> Hi, Tim
>>
>> Reindexed base, no errors.
>>
>> [image: image.png]
>>
>> But the new filter still does not appear.
>>
>> Aroldo
>>
>> Em seg., 8 de mai. de 2023 às 14:29, DSpace Technical Support <
>> dspac...@googlegroups.com> escreveu:
>>
>>> 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 aro...@gmail.com 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 <
 dspac...@googlegroups.com> 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 aro...@gmail.com 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  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 aro...@gmail.com wrote:
>>>
 Hey guys!

>>

Re: [dspace-tech] Re: [dspace-devel] Re: discovery.xml (dspace 7.5)

2023-05-09 Thread darryl....@usask.ca
I've emailed Aroldo my revised discovery.xml directly, but for anyone who 
may come across this thread and be interested, I also created a gist:

https://gist.github.com/g011um/28af989e18e4602d2df63e112cd4428d

- Darryl


On Tuesday, May 9, 2023 at 11:05:33 AM UTC-6 Aroldo Rique wrote:

> Thank you, Darryl!
>
> Please could you send me a copy of your discovery.xml?
>
> You can send it to aro...@gmail.com
>
> Em ter., 9 de mai. de 2023 às 13:51, darryl@usask.ca <
> darryl@usask.ca> escreveu:
>
>> | That said, maybe someone else on this list can help verify that they've 
>> added custom filters/facets to DSpace 7.
>>
>> We're running DSpace 7.5 on a dev and test server, and have successfully 
>> made changes to the filters.  We re-ordered a couple, removed one or two we 
>> didn't want, and added 3 or 4 based on ETDms metadata (department, program, 
>> degree, etc).  Changes were made to dspace/config/spring/api/discovery.xml
>>
>> I'm never sure what changes DSpace will pick up on the fly and which 
>> require a restart, so now I just always restart Tomcat after every config 
>> change.  In this case I edited discovery.xml, restarted Tomcat, ran the 
>> re-index, restarted Tomcat, then checked the browser to see if the filters 
>> changes were there (they were).
>>
>> I made my changes to both the sidebarFacets and searchFilters sections 
>> of the defaultConfiguration. I wasn't 100% clear on what the difference 
>> between those 2 sections was, but the default Author, Subject (etc) filters 
>> were defined in both places, so I replicated that behaviour.
>>
>> - Darryl
>>
>>
>>
>> On Monday, May 8, 2023 at 1:16:47 PM UTC-6 Aroldo Rique wrote:
>>
>>> Hi, Tim
>>>
>>> Reindexed base, no errors.
>>>
>>> [image: image.png]
>>>
>>> But the new filter still does not appear.
>>>
>>> Aroldo
>>>
>>> Em seg., 8 de mai. de 2023 às 14:29, DSpace Technical Support <
>>> dspac...@googlegroups.com> escreveu:
>>>
 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 aro...@gmail.com 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 <
> dspac...@googlegroups.com> 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 aro...@gmail.com 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  escreveu:
>>>
 Hi Aroldo,

 As far as I'm aware, adding filters in DSpace 7 should be the same 
 as in DSpace 6.  While there ha