On Fri, Dec 19, 2008 at 9:24 AM, mikan.d.dspace listmail <
[email protected]> wrote:

> Actually i found a simple solution for this problem of mine. Just
> testing whether the user is authenticated or not.
> I added the following lines to my template.xsl:
>
>  <xsl:template match="dri:options">
>  <xsl:choose>
>  <xsl:when test="/dri:document/dri:meta/dri:userMeta/@authenticated =
> 'yes'">
>  ... all the search boxes are created...
>  </xsl:when>
>  </xsl:choose>
>
> I removed the front page search box with a code gotten from this list
> few days ago:
>
> <!-- remove search area on home page -->
> <xsl:template match="dri:d...@n='front-page-search']">
>  <xsl:apply-templates select="@pagination">
>  <xsl:with-param name="position">bottom</xsl:with-param>
>  </xsl:apply-templates>
> </xsl:template>


thanks for that, I might be able to use it for what I want.....


> >> Im running DSpace with access restriction set to registered users
> >> only. This means, that accessing communities, collections, items and
> >> bitstreams is limited to specified group.
> >>
> >> The problem is, that with DSpace search anyone can see items in the
> >> system, even with access restrictions set. One cannot actually access
> >> the bitsreams, but they are listed as search results, which in my case
> >> exposes too much information. Im looking for a solution that would
> >> display the results only if the user is logged in. The other option
> >> would be to show search fields only after logging in.


This is close to the way I want it to work for me. I would like to see all
the results but with indicators against those to which I do not have access.

-- 
Regards,

Andrew M.
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to