To apply the code change, either manually make your code look like what I
write in the wiki, or use a patch I just uploaded.
In the spirit of RERO, here's the quick-and-dirty patch for jspui:
http://wiki.dspace.org/static_files/d/d4/DocumentPreviewJSPUI.patch
<http://wiki.dspace.org/static_files/d/d4/DocumentPreviewJSPUI.patch>and
from your [dspace-source] directory, you can patch it with:
patch -p0 < /path/to/DocumentPreviewJSPUI.patch
Also, if you're running this on a development machine, that is not web
routable (private network) you'll need to change the Util.js to rewrite the
url to another server that is.
then of course the full rebuild, mvn, ant, restart...
I'll check out doing the same for XMLUI, there's no reason it wouldn't work
there, save for the fact that I'll still getting my sea-legs with xmlui.
i.e. easily understanding some query that matches the area I'm customizing,
as opposed to a file that is the area I'm customizing.
On Mon, Mar 15, 2010 at 5:57 AM, konstantinos mpalasis
<kmpala...@gmail.com>wrote:
> Hi Stuart,
>
> that's exactly what i was looking for ! Thank you!
>
> Can you help me with smth else?
>
> From the page you send me ->
> http://peterpants.blogspot.com/2010/02/document-preview-in-dspace-using-google.html
>
>
> i went to ->
> http://wiki.dspace.org/index.php/Document_Preview_with_Google_Docs_viewer
>
> where it has the code and the instructions. My question is: how am i
> "patching" ? i don't know the procedure!
>
> Is it smth like that: patch -p0 < /path/to/ ?
>
> sorry,about the silly question..
>
> Costas--
>
>
>
> On Mon, Mar 15, 2010 at 10:42 AM, <
> dspace-tech-requ...@lists.sourceforge.net> wrote:
>
>> Send DSpace-tech mailing list submissions to
>>
>> dspace-tech@lists.sourceforge.net
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> or, via email, send a message with subject or body 'help' to
>> dspace-tech-requ...@lists.sourceforge.net
>>
>> You can reach the person managing the list at
>> dspace-tech-ow...@lists.sourceforge.net
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of DSpace-tech digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: Dspace - preview content (Stuart Lewis)
>> 2. Re: Append bitstream to existing item (Kostas Maistrelis)
>> 3. Dspace help (Kumara SS)
>> 4. Re: Dspace help (Hilton Gibson)
>> 5. Re: Dspace help (Oriol Oliv? Comadira. Biblioteca UdG)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 15 Mar 2010 13:43:46 +1300
>> From: Stuart Lewis <s.le...@auckland.ac.nz>
>>
>> Subject: Re: [Dspace-tech] Dspace - preview content
>> To: Konstantinos Mpalasis <mpala...@uop.gr>
>>
>> Cc: "dspace-tech@lists.sourceforge.net"
>> <dspace-tech@lists.sourceforge.net>
>> Message-ID: <6216e4d9-b012-4b4a-a33e-439ca5083...@auckland.ac.nz>
>> Content-Type: text/plain; charset="us-ascii"
>>
>>
>> Hi Costas,
>>
>> > I'm working @ the University of Peloponnese in Greece and recently i
>> build Dspace. I want in XMLUI to have "content preview" besides the ability
>> of downloading the content. Is it possible that? And if it is,how can i
>> accomplish that?
>>
>> Is this the sort of thing you are looking for?
>>
>>
>> http://peterpants.blogspot.com/2010/02/document-preview-in-dspace-using-google.html
>>
>> Thanks,
>>
>>
>> Stuart Lewis
>> IT Innovations Analyst and Developer
>> Te Tumu Herenga The University of Auckland Library
>> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
>> Ph: 64 9 373-7599 x81928
>> http://www.library.auckland.ac.nz/
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 15 Mar 2010 09:21:44 +0200
>> From: Kostas Maistrelis <kos...@amalou.net>
>> Subject: Re: [Dspace-tech] Append bitstream to existing item
>> To: dspace-tech@lists.sourceforge.net
>> Message-ID: <20100315092144.0f837...@kosa>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> On Sun, 14 Mar 2010 19:11:16 -0400
>> Richard Rodgers <rrodg...@mit.edu> wrote:
>>
>> Hi all,
>>
>> Gary, in case the ItemUpdate tool doesn't suit you,
>> you could try a groovy script I've written (it updates the database,
>> directly).
>> If you are interested, I could send it so that you give it a try.
>>
>> > Hi Gary:
>> >
>> > You didn't specify which version of DSpace you are using, but for the
>> just released 1.6 version the answer is "way, mate" using the ItemUpdate
>> tool (see the doc).
>> >
>> > Hope this helps,
>> >
>> > Richard R.
>> >
>> > On Mar 14, 2010, at 7:00 PM, Gary Browne wrote:
>> >
>> > > Hi all,
>> > >
>> > > I asked this question in 2007 with no replies. But I'd still like an
>> answer, even if it's "No way mate.". I'd like to append a bitstream to an
>> existing item, without removing any existing bitstreams.
>> > >
>> > > The "add" and "replace" options of the ItemImport class don't seem to
>> > > cover this useful possibility. I'd like to be able to do this
>> programmatically if possible.
>> > >
>> > > Thanks
>> > > Gary
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: signature.asc
>> Type: application/pgp-signature
>> Size: 197 bytes
>> Desc: not available
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Mon, 15 Mar 2010 13:31:59 +0530
>> From: Kumara SS <kumarass2...@gmail.com>
>> Subject: [Dspace-tech] Dspace help
>> To: dspace-tech@lists.sourceforge.net
>> Message-ID:
>> <47ab2e1b1003150101m777eabdbk5cc18a544ed42...@mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi all,
>>
>>
>> I have installed dspace-1.6.0-src-release on mac os x 10.4.
>>
>> But when i go to localhost:8080/jspui or localhost:8080/dspace, i am
>> getting
>> "HTTP Status 404" error.
>>
>>
>> Apache tomcat 5.5.28 is also working fine and java 1.5 is installed.
>>
>>
>> I have installed apache maven-2.2.1 and got target/dspace-1.6.0-build.dir
>> folder.
>>
>> The steps i followed were:
>>
>>
>> /usr/local/dspace-1.6.0-src-release/dspace> mvn install
>>
>> All were successful.
>>
>>
>> /usr/local/dspace-1.6.0-src-release/dspace/target/dspace-1.6.0-build.dir>
>> ant fresh_install
>>
>> Build was successful
>>
>>
>> After this i am not able to understand, what to do next?
>>
>>
>> Whether i need to change dspace config file in dspace-1.6.0-build,dir or
>> dspace config file in dspace directory.
>>
>>
>> Please reply..
>>
>>
>> Thanks in advance
>>
>>
>> With regards
>>
>> Kumara SS
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Mon, 15 Mar 2010 10:29:43 +0200
>> From: Hilton Gibson <hilton.gib...@gmail.com>
>> Subject: Re: [Dspace-tech] Dspace help
>> To: Kumara SS <kumarass2...@gmail.com>
>>
>> Cc: dspace-tech@lists.sourceforge.net
>> Message-ID:
>> <fae618891003150129y2e062e0vb48e86b4a3a3...@mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi Kumara
>>
>> Sounds like Apache Jakarta is not redirecting to the Apache2 Tomcat55
>> server.
>> See:
>> http://ir.sun.ac.za/wiki/index.php/Prepare_Ubuntu#Step_6._Setup_Apache2_Tomcat_5.5_Jakarta_Connector
>>
>> Cheers
>>
>> hg.
>>
>>
>> On 15 March 2010 10:01, Kumara SS <kumarass2...@gmail.com> wrote:
>> > Hi all,
>> >
>> >
>> >
>> > ????????? I have installed dspace-1.6.0-src-release on mac os x 10.4.
>> >
>> > But when i go to localhost:8080/jspui or localhost:8080/dspace, i am
>> getting
>> > "HTTP Status 404" error.
>> >
>> >
>> > Apache tomcat 5.5.28 is also working fine and java 1.5 is installed.
>> >
>> >
>> > I have installed apache maven-2.2.1 and got
>> target/dspace-1.6.0-build.dir
>> > folder.
>> >
>> > The steps i followed were:
>> >
>> >
>> > /usr/local/dspace-1.6.0-src-release/dspace> mvn install
>> >
>> > All were successful.
>> >
>> >
>> >
>> /usr/local/dspace-1.6.0-src-release/dspace/target/dspace-1.6.0-build.dir>
>> > ant fresh_install
>> >
>> > Build was successful
>> >
>> >
>> > After this i am not able to understand, what to do next?
>> >
>> >
>> > Whether i need to change dspace config file in dspace-1.6.0-build,dir or
>> > dspace config file in dspace directory.
>> >
>> >
>> > Please reply..
>> >
>> >
>> > Thanks in advance
>> >
>> >
>> > With regards
>> >
>> > Kumara SS
>>
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Download Intel® Parallel Studio Eval
>> > Try the new software tools for yourself. Speed compiling, find bugs
>> > proactively, and fine-tune applications for parallel performance.
>> > See why Intel Parallel Studio got high marks during beta.
>> > http://p.sf.net/sfu/intel-sw-dev
>> > _______________________________________________
>> > DSpace-tech mailing list
>> > DSpace-tech@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> >
>> >
>>
>>
>>
>> --
>> Systems Administrator
>> Library and Information Services
>> Stellenbosch University
>>
>> http://www.sun.ac.za
>> http://library.sun.ac.za
>> http://scholar.sun.ac.za
>> http://ubuntu.sun.ac.za
>>
>>
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Mon, 15 Mar 2010 09:41:50 +0100
>> From: "Oriol Oliv? Comadira. Biblioteca UdG" <oriol.ol...@udg.edu>
>> Subject: Re: [Dspace-tech] Dspace help
>> To: dspace-tech@lists.sourceforge.net
>> Message-ID: <4b9df2ce.6030...@udg.edu>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hi Kumara SS,
>>
>> It was a not found error.
>> You've edited server.xml?
>> Else you can copy webapps dirs inside tomcat webapps dir.
>>
>> Best,
>>
>> Al 15/03/2010 09:01, En/na Kumara SS ha escrit:
>> >
>> > Hi all,
>> >
>> > I have installed dspace-1.6.0-src-release on mac os x 10.4.
>> > But when i go to localhost:8080/jspui or localhost:8080/dspace, i am
>> > getting "HTTP Status 404" error.
>> > Apache tomcat 5.5.28 is also working fine and java 1.5 is installed.
>> > I have installed apache maven-2.2.1 and got
>> > target/dspace-1.6.0-build.dir folder.
>> > The steps i followed were:
>> >
>> > /usr/local/dspace-1.6.0-src-release/dspace> mvn install
>> >
>> > All were successful.
>> >
>> >
>> /usr/local/dspace-1.6.0-src-release/dspace/target/dspace-1.6.0-build.dir>
>> > ant fresh_install
>> >
>> > Build was successful
>> > After this i am not able to understand, what to do next?
>> > Whether i need to change dspace config file in dspace-1.6.0-build,dir
>> > or dspace config file in dspace directory.
>> > Please reply..
>> > Thanks in advance
>> >
>> > With regards
>> >
>> > Kumara SS
>>
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Download Intel® Parallel Studio Eval
>> > Try the new software tools for yourself. Speed compiling, find bugs
>> > proactively, and fine-tune applications for parallel performance.
>> > See why Intel Parallel Studio got high marks during beta.
>> > http://p.sf.net/sfu/intel-sw-dev
>> >
>> >
>> > _______________________________________________
>> > DSpace-tech mailing list
>> > DSpace-tech@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> >
>>
>>
>> --
>> Oriol Oliv? Comadira
>> *Biblioteca Universitat de Girona*
>> /Projectes/
>> DUGi: Repositori Digital de la Universitat de Girona <http://dugi.udg.edu
>> >
>> DUGiDoc: Repositori Digital de Documents de la Universitat de Girona
>> <http://dugi-doc.udg.edu>
>> DUGiMedia: Repositori Digital d'?udio i V?deo de la Universitat de
>> Girona <http://diobma.udg.edu>
>> DUGiFonsEspecials: Repositori dels Fons Especials de la Biblioteca de la
>> Universitat de Girona <http://dugifonsespecials.udg.edu>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>>
>> ------------------------------
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>>
>> ------------------------------
>>
>> _______________________________________________
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>>
>> End of DSpace-tech Digest, Vol 47, Issue 40
>> *******************************************
>>
>
>
>
> --
> //CB Costas Balasis
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
--
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech