Are you attempting to create a query or to create a facet?

If you are building a query, who will run the query?  Does it need to be
run through the DSpace UI, or can it be run in the background?

Reading your initial note, it sounds like you would like to define a
facet.  Your initial plan to add a bean to discovery.xml should accomplish
what you need.

Assuming you want to create a facet, here are some suggestions.

   - If you wish to create a sidebar facet, add your new bean to the list
   of filters and to the list of sidebar facets.
   - After you deploy your updated discovery.xml file, you must re-index
   your repository for the filter/facet to take effect

The following gist file illustrates a number of custom facets and filters
that we have defined in our repository:
https://gist.github.com/terrywbrady/d31fc1bcb9567204470f

Terry

On Wed, Dec 21, 2016 at 1:26 AM, Evgeni Dimitrov <dimitrove....@gmail.com>
wrote:

> Hi helix84,
>
> My thoughts are rather in this direction:
>
> To add somewhere? some code? so that only when the search filter
> "relation" is applied (with value XXX), to have:
> - a new temporary field relation_kind added - with value isformatof - for
> every record with (relation.isformatof XXX)
> - a new temporary field relation_kind added - with value isreferencedby -
> for every record with (relation.isreferencedby XXX)
>
> And to have a facet over relation_kind.
>
> Anyway, if you think that this is not a viable option, could you please
> elaborate on your initial suggestion. Where and how to use this query. And
> where is this notation described. I have not seen anything similar. Thank
> you again.
>
> Best regards
> Evgeni
>
>
> On Tuesday, December 20, 2016 at 6:23:04 PM UTC+2, helix84 wrote:
>>
>> The query you want is:
>>
>> (relation.isbasedon:[* TO *] OR relation.isformatof:[* TO *] OR
>>  relation.isreferencedby:[* TO *]) AND your_identifier:123
>>
>> Then use faceting as usual.
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>>
>> On Tue, Dec 20, 2016 at 3:29 PM, Evgeni Dimitrov <dimitr...@gmail.com>
>> wrote:
>>
>>> I am wondering - is it possible to have a search like this:
>>>
>>> - to find all items, which have in any of
>>> relation.isbasedon, relation.isformatof, relation.isreferencedby etc.
>>>
>>> certain value (the identifier of certain item);
>>>
>>> - then to have a facet "relation" with values
>>> isbasedon (1)
>>> isformatof (1)
>>> isreferencedby (3)
>>>
>>> I mean - is it possible to have this without too much coding? I am using
>>> xmlui - Mirage.
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to dspac...@googlegroups.com.
>>> Visit this group at https://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 dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>



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

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

Reply via email to