Hi! 

Just modified the showCommunity method in community-list JSP page
including the "/browse-title" section. This modification directly takes
the hyperlink from communities/collections to item titles rather than to
the browse screen for Titles, Authors, subjects etc. 

(1) IS it advisable to modify the code like this?
(2) Will this develop any broken links for future submissions?

Please suggest.

Thanks,
Jayan

        out.println( "<strong><a href=\"" + request.getContextPath() +
"/handle/" + c.getHandle() + "/browse-title"+ "\">" +
c.getMetadata("name") + "</a></strong>");

        // Get the collections in this community
                out.println("<a href=\"" + request.getContextPath() +
"/handle/" + cols[j].getHandle() + "/browse-title" + "\">" +
cols[j].getMetadata("name") +"</a>");
                                



On 2/3/07 09:57, "Jayan Chirayath Kurian" <[EMAIL PROTECTED]> wrote:

> Hi! Stuart,
> 
> Tried including "browse-title" in the JSP file as given below, but
still
> the browse menu with "Title", "Author" and "subject" appears. Could
you
> please suggest whether I have made the correct modifications? Any
other
> suggestions to redirect from step1 (fig) to step3 (fig) eliminating
> step2(fig).
> 
> Have a nice weekend.
> 
> Thanks,
> Jayan
> 
>    <li class="communityLink">
>             <%-- HACK: <strong> tags here for broken Netscape 4.x CSS
> support --%>
>             <strong><a href="<%= request.getContextPath()
%>/handle/<%=
> communities[i].getHandle() %>browse-title"><%=
> communities[i].getMetadata("name") %></a></strong>
>    <ul>
> <%
>             // Get the collections in this community from the map
>             Collection[] cols = (Collection[]) collectionMap.get(
>                 new Integer(communities[i].getID()));
> 
>             for (int j = 0; j < cols.length; j++)
>             {
> %>
>                 <li class="collectionListItem">
>                 <a href="<%= request.getContextPath() %>/handle/<%=
> cols[j].getHandle() %>browse-title"><%= cols[j].getMetadata("name")
> %></a>
> <%
>                 if
> (ConfigurationManager.getBooleanProperty("webui.strengths.show"))
> 
> -----Original Message-----
> From: Stuart Lewis [sdl] [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 26, 2007 5:30 PM
> To: Jayan Chirayath Kurian; [email protected]
> Subject: RE: [Dspace-tech] Skipping the Browse screen
> 
> Hi Jayan,
>  
> I've not tried it, but this can probably be achieved by editing
> [dspace-src]/jsp/community-list.jsp and editing line 213:
> 
> <a href="<%= request.getContextPath() %>/handle/<%=
cols[j].getHandle()
> %>"><%= cols[j].getMetadata("name") %></a>
> 
> To something like:
> 
> <a href="<%= request.getContextPath() %>/handle/<%=
cols[j].getHandle()
> %>browse-title"><%= cols[j].getMetadata("name") %></a>
> 
> And then do something similar for line 203.
> 
> Hope this helps,
> 
> 
> Stuart
> _________________________________________________________________
> 
> Gwasanaethau Gwybodaeth                      Information Services
> Prifysgol Cymru Aberystwyth       University of Wales Aberystwyth
> 
>             E-bost / E-mail: [EMAIL PROTECTED]
>                  Ffon / Tel: (01970) 622860
> _________________________________________________________________
>   
> 
> ________________________________
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jayan
> Chirayath Kurian
> Sent: 26 February 2007 05:55
> To: [email protected]
> Subject: [Dspace-tech] Skipping the Browse screen
> 
> 
> 
> Hi!
> 
>  
> 
> (1) In the browse menu (left section of Dspace home page), clicking
the
> communities & Collections takes to the community list
> 
> http://localhost:8080/dspace/community-list
> 
>  
> 
> (2) Clicking on a collection takes to the collection home page with
the
> Browse menu for Titles, Authors, subjects etc.
> 
> http://localhost:8080/dspace/handle/123456789/8
> 
>  
> 
> (3) Clicking on "Titles" button takes to the browse title page with
> items displayed.
> 
> http://localhost:8080/dspace/handle/123456789/8/browse-title
> 
>  
> 
> Is there a way to skip step (2) and directly go to step (3) from step
> (1). Which file needs to be modified for this? Will this create broken
> links in future creation of collections/communities? Please suggest.
> 
>  
> 
> Thanks,
> 
> Jayan
> 
>  
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to