On Tue, 10 May 2011, Blanco, Jose wrote:

> I have been working lately on hiding items from search results that have 
>READ metadata restrictions for certain users.  So for example, item1 is 
>restricted to only one particular user, if that user is logged-in and 
>searches for a string in that item, he will get the item in the results 
>set, but if an anonymous user is logged in and searches for a string in 
>that item, the item will not show in the search results.  I am now trying 
>to restrict items like this in the browsing, but am having more 
>difficulty.  It sounds like you may have something that restricts items 
>from showing up when browsing.  Is that the case?  Could you share the 
>code that does that?

We do have code that does that, but it's quite an ugly hack -- it filters 
results from the browse pages (including search results) by checking 
authorization as the browse list is created. This does mess up pagination.

Sadly, our developer is indisposed at the moment, and I wouldn't know 
where to find all the changes, so sharing it isn't really possible at the 
moment. Sorry.

However, I do gather that to Do It Properly, changes would be needed to 
the actual browse system.


Best,

--
Tom De Mulder <td...@cam.ac.uk> - Cambridge University Computing Service
+44 1223 3 31843 - New Museums Site, Pembroke Street, Cambridge CB2 3QH
-> 10/05/2011 : The Moon is Waxing Crescent (46% of Full)

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to