Hi, thanks, I've tried removing those lines from the homepageConfiguration, it 
does indeed remove the facets from the home page. However, it also removes all 
facets from everything. Which is not my intention.

I've also tried something more elaborate: continue as described above, with the 
"site" using the "homepage" config (no facets), and then set all top level 
communities to the default config (facets, please). This also hides facets 
everywhere except on the top level community home pages.

I suspect what I'll have to do is modify the Java, or possibly my theme's xslt, 
to conditionally not show facets on the home page.

This is a bit more work than I anticipated, so I'm putting it off for now, to 
focus on other things. If anyone on this mail list has successfully hidden 
pre-search facets, while allowing post-search facets, please let me know. 
Thanks!

--Hardy

________________________________
From: [email protected] [[email protected]] on behalf of 
Mariangels [[email protected]]
Sent: Thursday, November 19, 2015 6:13 AM
To: DSpace Technical Support
Cc: [email protected]
Subject: Re: [dspace-tech] Re: Facets and DSpace 5.3

Hola Hardy,

I'm sorry for my late reply.
Finally I could hide the facets in homepage editing the file discovery.xml and 
commeting out some lines. I have this file here 
/usr/local/dspace-source/dspace/target/dspace-installer/config/spring/api
I have now this inside discovery.xml:

    <!--The Homepage specific configuration settings for discovery-->
    <bean id="homepageConfiguration" 
class="org.dspace.discovery.configuration.DiscoveryConfiguration" 
scope="prototype">
        <!--Which sidebar facets are to be displayed (same as 
defaultConfiguration above)-->
         <property name="sidebarFacets">
            <list>
                <!-- <ref bean="searchFilterAuthor" />
                <ref bean="searchFilterContributor" />
                <ref bean="searchFilterSubject" />
                <ref bean="searchFilterIssued" />
                <ref bean="searchFilterType" />
                <ref bean="searchFilterLanguage" /> -->
            </list>
        </property>

After do these changes I did this:

1. Compile
2. dspace/bin/dspace index-discovery –b

I hope this information will help you!
Good luck!!!
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]







El dimarts, 17 novembre de 2015 23:29:20 UTC+1, Hardy Pottinger va escriure:
Hi, sorry to revive an old thread, but I suspect the configuration referenced 
below is specific to JSPUI:

plugin.sequence.org.dspace.plugin.CommunityHomeProcessor

So, I'm wondering if you ever found a solution? I'm trying to turn off 
pre-search facets, and not having any luck. I've tried the configuration 
mentioned below. I have also tried commenting out these lines:

https://github.com/DSpace/DSpace/blob/master/dspace/config/spring/api/discovery.xml#L203-L205

Neither of which disables sidebar facets on the home page.

I'm using XMLUI.

--Hardy

________________________________
From: [email protected]<UrlBlockedError.aspx> 
[[email protected]<UrlBlockedError.aspx>] on behalf of Mariangels 
[[email protected]<UrlBlockedError.aspx>]
Sent: Monday, September 28, 2015 6:01 AM
To: DSpace Technical Support
Subject: [dspace-tech] Re: Facets and DSpace 5.3

Thank you very much Humberto. I will try your solution.

El dilluns, 21 setembre de 2015 16:28:03 UTC+2, Humberto Blanco Castillo va 
escriure:
Hi Mariangels,
You can hide facets comment in the dspace.cfg file  (text in red color) 
remember restart tomcat after changing this file.

#### Sidebar Facets ####
# to show facets on the site home page, community, collection  comment out the 
following lines if you disable Discovery or don't want  to show facets on side 
bars
plugin.sequence.org.dspace.plugin.CommunityHomeProcessor = \
        org.dspace.app.webui.components.RecentCommunitySubmissions,\
        org.dspace.app.webui.discovery.SideBarFacetProcessor

plugin.sequence.org.dspace.plugin.CollectionHomeProcessor = \
        org.dspace.app.webui.components.CollectionItemList,\
        org.dspace.app.webui.discovery.SideBarFacetProcessor
#        org.dspace.app.webui.components.RecentCollectionSubmissions,\

plugin.sequence.org.dspace.plugin.SiteHomeProcessor = \
        org.dspace.app.webui.components.TopCommunitiesSiteProcessor,\
        org.dspace.app.webui.components.RecentSiteSubmissions,\
#        org.dspace.app.webui.discovery.SideBarFacetProcessor



El viernes, 18 de septiembre de 2015, 4:34:14 (UTC-5), Mariangels escribió:
Hello,

Recentlly we are working with DSpace 5.3.
We need to hide the facets at home page and at item-viem page.
Can you help me how to do this in DSpace 5.3?

In DSpace 1.7.2 we could do with this configuration:

solr.facets.item=dc.contributor.author,dc.contributor,dc.subject.other,dc.date.created_dt,dc.type,dc.language.iso

Thank you very much in advance.

--
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]<UrlBlockedError.aspx>.
To post to this group, send email to 
[email protected]<UrlBlockedError.aspx>.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

--
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]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to