Thanks Terry (and Hilton who contacted me off list), 

Your contributions both confirmed that I was at least taking the right approach 
and that what I'd done should have worked (all things being equal), thus 
suggesting I was just missing something simple . . .

> I'm obviously doing something wrong or have missed something trying to create 
> this sidebar facet

Well, it is amazing what a good night’s sleep and a fresh cup of coffee can do 
– I had, indeed done something wrong/stupid that I just couldn’t see yesterday, 
but which jumped off the page and slapped me in the face as soon as I looked at 
it again this morning - I had spurious white space at the end of the metadata 
field name in the line:

<value>dc.contributor.other </value>

[OMG! Face palm! Etc, etc!]

Once I'd removed this, restarted Tomcat and rebuilt the Discovery index, it all 
worked as hoped and the new Funder Facet appeared on my Homepage :-).

As an aside (and for the archives), Hilton's notes pointed me to the following 
useful utility which can be used to display how the Discovery system thinks it 
is configured (might be a useful addition to the Discovery documentation page?):

[dspace]/bin/dspace dsrun 
org.dspace.discovery.configuration.DiscoveryConfigurationService

- which in my case suggested that the config was (generally!) OK, which was 
helpful to know:

80
default
Facets:
        author
                dc.contributor.author
                dc.creator
        subject
                dc.subject.*
        funder
                dc.contributor.other
Search filters
                dc.title
                dc.contributor.author
                dc.creator
                dc.subject.*
                dc.contributor.other
Recent submissions configuration:
        Metadata sort field: dc.date.accessioned
        Max recent submissions: 20
site
Facets:
        author
                dc.contributor.author
                dc.creator
        subject
                dc.subject.*
        funder
                dc.contributor.other
Search filters
                dc.title
                dc.contributor.author
                dc.creator
                dc.subject.*
                dc.contributor.other
Recent submissions configuration:
        Metadata sort field: dc.date.accessioned
        Max recent submissions: 5

Regards,

Mike

Michael White
eLearning Developer
Information Services

T: (01786) 466877
E: michael.wh...@stir.ac.uk
A: S8, Library, University of Stirling, Stirling, FK9 4LA 

From: Terry Brady [mailto:terry.br...@georgetown.edu] 
Sent: 28 July 2015 18:03
To: Michael White <michael.wh...@stir.ac.uk>
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Replacing Date Issued sidebar Facet with Funder

Mike,

It sounds like you are following all of the right steps.  I find it trickier 
than I would expect to successfully make changes to the facets.

If it is helpful, I have posted a copy of our discovery.xml file: 
https://gist.github.com/terrywbrady/d31fc1bcb9567204470f

We have created a number of collection-specific sidebar facets.

I have found it necessary to define a search filter each time that I need to 
add a new sidebar facet.  

I have also found it tricky to apply different custom facets at different 
levels of the hierarchy (collection vs sub-community).

Terry

-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)

-- 
The University is ranked in the QS World Rankings of the top 5% of universities 
in the world (QS World University Rankings, 2014)
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to