Hi Mckeane,
This is done in Discovery's i18n configuration, a messages.xml file just
like the one you will have edited under the main XMLUI module.
Have a look in
[dspace-src]/dspace-discovery/dspace-discovery-xmlui-api/src/main/resources/aspects/Discovery/i18n/messages.xml
and you'll see the default labels for the _filter types that are configured
with Discovery out of the box.
You can add your own labels here, eg.
xmlui.ArtifactBrowser.AdvancedSearch.type_dc.format.extent_filter
or
xmlui.ArtifactBrowser.AdvancedSearch.type_var_filter (if you choose to
configure this as a facet)
You can also merge this file with your existing (non-discovery) XMLUI i18n
configuration so it's a bit easier to manage and overlay.
I'm not entirely sure what the function of your "var" field is since you're
wanting to use dc.format.extent as the facet in dspace-solr-search.cfg
anyway... you don't really need the copyField in there if you're not using
the destination field for anything.
(I do note that you've given a type of "int" rather than the dspaceFilter
default, so I assume you're planning something there...)
Hope this helps!
Cheers,
Kim
On 18 February 2011 10:51, Mckeane Thomas <[email protected]> wrote:
> Hello,
> I was reading Mr. Shepherd's blog on
> Dspace-solr-tips+tricks<http://kim-shepherd.blogspot.com/2010/11/discovering-discovery-dspace-solr-tips.html%20>.
> I have added the following fields to [dspace]/solr/search/conf schema.xml
> file
> <field name = "var" type = "int" indexed ="true" stored ="true" multiValued
> ="true" omitNorms ="true" />
> <field name = "dc.format.extent" type = "int" indexed = "true" stored =
> "true" multiValued = "true"/>
> <copyField source="dc.format.extent" dest="var"/>
>
> Also I added dc.format.extent to the line
> "solr.facets.site=dc.contributor.author,dc.subject,dc.date.issued_dt,dc.coverage.spatial,dc.format.extent"
> in the [dspace]/conf dspace-solr-search.cfg file. On the browser page I got
> the following:
> "xmlui.ArtifactBrowser.AdvancedSearch.type_dc.format.extent_filter" and
> the items in that category.
>
> How do I create the labels to represent
> "xmlui.ArtifactBrowser.AdvancedSearch.type_dc.format.extent_filter" as a
> Category such as what is done for "Author", "Subject" and "Date Issued" .
>
> Any help would be appreciated
>
>
> Mckeane
>
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech