Yes, we have Emestger patch for 1.5.2 on.

I did also look at the patch file as described in the message you
referenced. Copied lines from 536 to 566
 ---
           // Iterate over the results list, and remove results that
are embargoed and not discoverable
           Iterator<BrowseItem> browseItemItr =
((List<BrowseItem>)results).iterator();
           final EmbargoService embargoSvc = getEmbargoService();
           final PolicyHandler ph = getPolicyHandler();
           while ( browseItemItr.hasNext() )
           {
               BrowseItem browseItem = browseItemItr.next();
               if ( embargoSvc.isEmbargoed( browseItem.getHandle() ) )
               {
                   try
                   {
                       Embargo embargo = embargoSvc.getEmbargo(
browseItem.getHandle() );
                       Item item = Item.find( context, browseItem.getID() );
                       boolean canBypass = item != null &&
ph.bypassEmbargo( item, context );
                       if ( ( !EmbargoUtil.isDiscoverable( embargo )
) && ( !canBypass ) )
                       {
                           log.debug( "Browse item [" +
browseItem.getHandle() + ", " + browseItem.getID() + "] is embargoed."
);
                           browseItemItr.remove();
                       }
                   }
                   catch ( EmbargoException e )
                   {
                       log.warn( "Unable to determine if browse item
[" + browseItem.getHandle() + "] is embargoed.  " +
                               "Assuming it is embargoed: " +
e.getMessage(), e );
                       browseItemItr.remove();
                   }
               }
           }

           total = results.size();

---

and placed at a similar place (line 366) in browseByItem method.
Commented out in the browseByValue method.
restarted Tomcat. Error message didn't go away.

I did also tried removing patch lines all together, it didn't help either.

Is there something else I might be overlooking.

Thanks
Fatih

- Show quoted text -



On Wed, Sep 2, 2009 at 7:54 AM, Sean Carte<[email protected]> wrote:
> 2009/9/2 fatih <[email protected]>:
>> Hi,
>>
>> We have been struggling with this problem for the past several days
>> and decided to another fresh install (1.5.2) from svn in the hopes of
>> fixing the problem, however, problem didn't go away.
>>
>> Author and Subject browse pages seem to work when there is no item in
>> the system. Once an item is submitted and archived, browse pages for
>> Authors and Subjects generate this error message
>> (http://vtext.valdosta.edu/xmlui/browse?type=author) on both XMLUI and
>> JSPUI. On the other hand, By Issue Date and Title pages display just
>> fine.
>>
>> Browse Author page displays when there is a "value" parameter in the
>> URL. (http://vtext.valdosta.edu/jspui/browse?type=author&value=Oguz,%20Fatih)
>>
>> I ran index-init but it didn't seem to help. No change has been made
>> in "Browse Settings" section in dspace.cfg file.
>>
>> Dspace (with embargo patch 1.5.2) runs on Solaris.
>>
>> Any suggestions in the right direction would be much appreciated.
>>
>> Thanks
>> Fatih
>
> You've got the Emestger Embargo patch installed, right?
>
> James Halliday pointed out a while ago that this patches the wrong
> method in the dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java
> class.
>
> Here's what I did:
>
> In the dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java
> class file, copy the patch lines (536-566) so a similar place in the
> preceding browseByItem method (line 366) and comment them out in the
> browseByValue method.
>
> Sean
> --
> Sean Carte
> esAL Library Systems Manager
> +27 72 898 8775
> +27 31 373 2490
> fax: 0866741254
> http://esal.dut.ac.za/
>

On Wed, Sep 2, 2009 at 7:54 AM, Sean Carte<[email protected]> wrote:
> 2009/9/2 fatih <[email protected]>:
>> Hi,
>>
>> We have been struggling with this problem for the past several days
>> and decided to another fresh install (1.5.2) from svn in the hopes of
>> fixing the problem, however, problem didn't go away.
>>
>> Author and Subject browse pages seem to work when there is no item in
>> the system. Once an item is submitted and archived, browse pages for
>> Authors and Subjects generate this error message
>> (http://vtext.valdosta.edu/xmlui/browse?type=author) on both XMLUI and
>> JSPUI. On the other hand, By Issue Date and Title pages display just
>> fine.
>>
>> Browse Author page displays when there is a "value" parameter in the
>> URL. (http://vtext.valdosta.edu/jspui/browse?type=author&value=Oguz,%20Fatih)
>>
>> I ran index-init but it didn't seem to help. No change has been made
>> in "Browse Settings" section in dspace.cfg file.
>>
>> Dspace (with embargo patch 1.5.2) runs on Solaris.
>>
>> Any suggestions in the right direction would be much appreciated.
>>
>> Thanks
>> Fatih
>
> You've got the Emestger Embargo patch installed, right?
>
> James Halliday pointed out a while ago that this patches the wrong
> method in the dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java
> class.
>
> Here's what I did:
>
> In the dspace-api/src/main/java/org/dspace/browse/BrowseEngine.java
> class file, copy the patch lines (536-566) so a similar place in the
> preceding browseByItem method (line 366) and comment them out in the
> browseByValue method.
>
> Sean
> --
> Sean Carte
> esAL Library Systems Manager
> +27 72 898 8775
> +27 31 373 2490
> fax: 0866741254
> http://esal.dut.ac.za/
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to