[Dspace-tech] PDF puzzle

2014-09-08 Thread Keir Vaughan-Taylor
I have a number of publication submissions in some case where there are
multiple PDFs in one submission. Normally when accessing PDFs they
appear in the browser which is what I want.

In once instance there are multiple PDFs in a submission all of which
appear in a browser correctly but one of them instead presents an
external dialogue requesting what PDF reader should be used.

The format for all the PDFs is Adobe PDF The dublin_core.xml

There is a similar problem in the forums but no satisfactory answer
http://sourceforge.net/p/dspace/mailman/message/31873185/

Extractin strings from the offending PDF and comparing it to a well
behaved PDF elicits no obvious differences.

Has anyone discovered a reason for this?


-- 
Keir Vaughan-Taylor
ERA DSpace Administrator
Rm:123 Fisher Library University of Sydney
k...@physiol.usyd.du.au
ph:+61 2 9351 7408
mb:+61 434 606 885


--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF puzzle

2014-09-08 Thread Andrea Schweer
Hi Keir,

On 09/09/14 16:53, Keir Vaughan-Taylor wrote:
> In once instance there are multiple PDFs in a submission all of which
> appear in a browser correctly but one of them instead presents an
> external dialogue requesting what PDF reader should be used.

Is the file that presents the dialogue the largest file of them all, by
any chance? You don't say what version of DSpace you're using, but have
a look at this configuration option for DSpace 4.2:
https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1447

You might like to read up on the Content-Disposition HTTP header:
http://stackoverflow.com/questions/1395151/content-dispositionwhat-are-the-differences-between-inline-and-attachment
Essentially, the DSpace setting decides from which size onwards it will
send disposition=attachment rather than disposition=inline

I believe some browsers / browser plug-ins ignore the
content-disposition flag and make their own decision on which one to use.

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand



--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] PDF puzzle

2014-09-08 Thread Sebastian Danisch
Hi Keir,

i would guess that the file in question exceeds 8MB which is the default inline 
disposition threshold

https://wiki.duraspace.org/display/DSDOC4x/Configuration+Reference#ConfigurationReference-ContentInlineDispositionThreshold

if that is the case, you can easilly adjust this value.

Am Dienstag 09 September 2014, 14:53:46 schrieb Keir Vaughan-Taylor:
> I have a number of publication submissions in some case where there are
> multiple PDFs in one submission. Normally when accessing PDFs they
> appear in the browser which is what I want.
> 
> In once instance there are multiple PDFs in a submission all of which
> appear in a browser correctly but one of them instead presents an
> external dialogue requesting what PDF reader should be used.
> 
> The format for all the PDFs is Adobe PDF The dublin_core.xml
> 
> There is a similar problem in the forums but no satisfactory answer
> http://sourceforge.net/p/dspace/mailman/message/31873185/
> 
> Extractin strings from the offending PDF and comparing it to a well
> behaved PDF elicits no obvious differences.
> 
> Has anyone discovered a reason for this?

-- 
Sebastian Danisch
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abt. Contentbasierende Dienste
78457 Konstanz
+49 7531 88-5407

--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] PDF puzzle

2014-09-09 Thread Keir Vaughan-Taylor
You were exactly right.
Altering the dspace.cfg line to be 
webui.content_disposition_threshold = -1
xmlui.content_disposition_threshold = -1

resulted in the PDF opening in-line
Thank you


On Tue, 2014-09-09 at 17:07 +1200, Andrea Schweer wrote:
> Hi Keir,
> 
> On 09/09/14 16:53, Keir Vaughan-Taylor wrote:
> > In once instance there are multiple PDFs in a submission all of which
> > appear in a browser correctly but one of them instead presents an
> > external dialogue requesting what PDF reader should be used.
> 
> Is the file that presents the dialogue the largest file of them all, by
> any chance? You don't say what version of DSpace you're using, but have
> a look at this configuration option for DSpace 4.2:
> https://github.com/DSpace/DSpace/blob/master/dspace/config/dspace.cfg#L1447
> 
> You might like to read up on the Content-Disposition HTTP header:
> http://stackoverflow.com/questions/1395151/content-dispositionwhat-are-the-differences-between-inline-and-attachment
> Essentially, the DSpace setting decides from which size onwards it will
> send disposition=attachment rather than disposition=inline
> 
> I believe some browsers / browser plug-ins ignore the
> content-disposition flag and make their own decision on which one to use.
> 
> cheers,
> Andrea
> 

-- 
Keir Vaughan-Taylor
ERA DSpace Administrator
Rm:123 Fisher Library University of Sydney
k...@physiol.usyd.du.au
ph:+61 2 9351 7408
mb:+61 434 606 885


--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette