[Dspace-tech] Bitstreams being viewed

2012-09-11 Thread George S Kozak
Hi...

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 :)

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

--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bitstreams being viewed

2012-09-11 Thread helix84
On Tue, Sep 11, 2012 at 3:57 PM, George S Kozak g...@cornell.edu 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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bitstreams being viewed

2012-09-11 Thread George S Kozak
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: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: Tuesday, September 11, 2012 10:11 AM
To: George S Kozak
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Bitstreams being viewed

On Tue, Sep 11, 2012 at 3:57 PM, George S Kozak g...@cornell.edu 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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech