Re: [Dspace-tech] Dspace - preview content

2010-03-16 Thread iacj



  Hi All

  about displaying a preview of the items in DSpace check www.jobim.org/xmlui

  this is just javascripts and xsl, in xmlui.

  usually we have a pdf for download of the complete item and jpg of  
each page so it can be viewed faster. In some cases we use also  
a"media-extractor" that extracts jpgs from the pages of a pdf. if  
someone wants to use it I can send the classes.


  Paulo Jobim

  - Mensagem de dietz...@osu.edu -
    Data: Mon, 15 Mar 2010 18:39:49 -0400
    De: Peter Dietz 
Endereço para Resposta (Reply-To): Peter Dietz 
Assunto: Re: [Dspace-tech] Dspace - preview content
      Para: konstantinos mpalasis , Dspace Tech  




There are no published API's for doing fancy things with the Google Document
Viewer, such as display page 15.
All I know of is: ?url=

If there is a tool/filter that can convert each page of your PDF to a jpeg,
you could display those single page images as the bitstream. You wouldn't
need this displayer then, you could just show that image on the page. So
upon submission of a new pdf to dspace, it runs a script that processes the
file, and adds those images to a bundle.

What is the goal of showing single page? To let people link directly to a
page, or to have statistics of which pages are used most.



On Mon, Mar 15, 2010 at 6:06 PM, konstantinos mpalasis
wrote:


Thank u Peter !

I have one more question. How can i create pagination in all items? let's
say all .pdf...in other words i don't want people to have the opportunity to
see the whole .pdf at once but to see it page by page (like this one ->
http://thesis.ekt.gr/content/index.jsp?id=0049&lang=en&p=1  , in this case
.pdf has been corvented to .jpg). Is it possible that??

Thank u again for any input,

Costas--

On Mon, Mar 15, 2010 at 5:46 PM, Peter Dietz  wrote:


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 

Subject: Re: [Dspace-tech] Dspace - preview content
To: Konstantinos Mpalasis 

Cc: "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 a

Re: [Dspace-tech] Dspace - preview content

2010-03-15 Thread Peter Dietz
There are no published API's for doing fancy things with the Google Document
Viewer, such as display page 15.
All I know of is: ?url=

If there is a tool/filter that can convert each page of your PDF to a jpeg,
you could display those single page images as the bitstream. You wouldn't
need this displayer then, you could just show that image on the page. So
upon submission of a new pdf to dspace, it runs a script that processes the
file, and adds those images to a bundle.

What is the goal of showing single page? To let people link directly to a
page, or to have statistics of which pages are used most.



On Mon, Mar 15, 2010 at 6:06 PM, konstantinos mpalasis
wrote:

> Thank u Peter !
>
> I have one more question. How can i create pagination in all items? let's
> say all .pdf...in other words i don't want people to have the opportunity to
> see the whole .pdf at once but to see it page by page (like this one ->
> http://thesis.ekt.gr/content/index.jsp?id=0049&lang=en&p=1  , in this case
> .pdf has been corvented to .jpg). Is it possible that??
>
> Thank u again for any input,
>
> Costas--
>
> On Mon, Mar 15, 2010 at 5:46 PM, Peter Dietz  wrote:
>
>> 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 

Re: [Dspace-tech] Dspace - preview content

2010-03-15 Thread Peter Dietz
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
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 
>>
>> Subject: Re: [Dspace-tech] Dspace - preview content
>> To: Konstantinos Mpalasis 
>>
>> Cc: "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 
>> 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  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 

Re: [Dspace-tech] Dspace - preview content

2010-03-15 Thread konstantinos mpalasis
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,  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 
> Subject: Re: [Dspace-tech] Dspace - preview content
> To: Konstantinos Mpalasis 
> Cc: "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 
> 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  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 
> 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 dspac

Re: [Dspace-tech] Dspace - preview content

2010-03-14 Thread Stuart Lewis
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/


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