Hi Peter,

Sorry I forgot to mention, I'm using JSPUI. I think the way it works is
different in JSPUI. Any Idea?

Also I need to record no result searches in the database for reporting
purposes.

Masha

On Tue, Feb 14, 2012 at 1:54 AM, Peter Dietz <[email protected]> wrote:

> Hi Masha,
>
> Here's one way to find where in the code this happens.
>
> Search for your fake string, and find the exact string it says for no
> search results.
>
> "Search produced no results."
>
> Look for this string in the code.
>
> <message key="xmlui.ArtifactBrowser.AbstractSearch.no_results">Search
> produced no results.</message>
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/i18n/messages.xml#L94
>
> Then look for usages of xmlui.ArtifactBrowser.AbstractSearch.no_results in
> the code.
>     private static final Message T_no_results =
>         message("xmlui.ArtifactBrowser.AbstractSearch.no_results");
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/AbstractSearch.java#L84
>
> Then, find usages of T_no_results in that class.
>             else
>             {
>                 results.addPara(T_no_results);
>             }
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/AbstractSearch.java#L326
>
> You then have your entry point where you have a chance to do an action
> where there are no results. For starters, you can write a message to
> log.info.
>
>
>
> Peter Dietz
>
>
>
> On Mon, Feb 13, 2012 at 2:42 AM, Masha Watts <[email protected]>wrote:
>
>>
>> Dear All,
>>
>> I'm new to DSpace and I have a requirement of record and display zero
>> search results. Eg:- If you search items by "Test", if the search result is
>> zero, I have to record it and should be able to generate a report.
>>
>> Any possibility of doing that with configurations or is there any one
>> developed such kind of a module? Please Help.
>>
>> Best Regards,
>>
>> Masha
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>>
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to