Thanks helix84:

Yes, I am JSPUI...sorry, I should have said that.  Thanks for the tip on 
editing the ItemTag file. I thought it was somewhere in the Java Code, but  I 
wasn't sure if this was a flag that I was missing in the Config file.  
Again, Thank you!

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: Tuesday, September 11, 2012 10:11 AM
To: George S Kozak
Cc: [email protected]
Subject: Re: [Dspace-tech] Bitstreams being viewed

On Tue, Sep 11, 2012 at 3:57 PM, George S Kozak <[email protected]> wrote:
> I am using DSpace 1.8.2.  I have been asked if there is a way of 
> controlling the viewing of a bitstream.  Currently, when one clicks on 
> a bitstream, it opens up in a new browser window.  Is there an option 
> to have the bitstream open up in the same window?  I don’t think so, 
> but I have been wrong in the past J

Hi George,

I'd guess you're using JSPUI, not XMLUI (please, always list this information 
along with your DSpace version). As you can see on the demo site which 
illustrates the defaults without any customization, clicking on a bitstream in 
XMLUI opens the bitstream in the same window, whereas in JSPUI it opens it in a 
new window. However, this is easy to change (although I didn't test it). Edit 
dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java,
line 817 and remove the target attribute, so the line should read:
                    out.print("<a href=\""); Then rebuild and redeploy DSpace 
and restart your servlet container.

Regards,
~~helix84
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to