Hello everyone,
I'm new to the list and Dspace. I have recently been charged with managing
and customizing my organization's digital library which uses DSpace 3.1 (
http://www2.senado.gov.br/bdsf).
I've joined the list in order to ask for help in one piece of customization.
There is a community (newspaper clippings) that has a very large number of
items. I need to filter this community out by default, and only search in
it when I mark a checkbox beneath the search form.
What I did for now is add a default search query in
dspace/config/spring/api/discovery.xml
<property name="defaultFilterQueries">
<list>
<!--Only find items-->
<value>search.resourcetype:2</value>
<!-- Eliminando Jornais e Revistas por padrao -->
<value>NOT(location.comm:5)</value>
</list>
</property>
That filters the community by default. And then I created a new
configuration without this default filter, mapping it to the community id
in DiscoveryConfigurationService <entry key="id/5"
value-ref="configuracaoJornais"/>. The checkbox beneath the search field
sets the value of scope to "id/5", which removes the default search query,
but only searches in this community.
The downside of this method is that I have to map the configuration
manually for every collection inside this community, or else no items will
be shown. It is also impossible to search every community in my repository.
I'd like to know if there is a better way of accomplish this. How can I
filter a community using discovery?
I know I could insert NOT(location.comm:5) to the user search query, but my
client does not accept that.
Ats,
Alcides Carlos de Moraes Neto
"We live in a society exquisitely dependent on science and technology, in
which hardly anyone knows anything about science and technology." -Carl
Sagan
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette