[Dspace-tech] Pdf problems
Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Mika Stenberg IT-asiantuntija Terveystieteiden Keskuskirjasto Lääketieteellinen tdk PL 61 (Haartmaninkatu 4) Helsingin Yliopisto 00290 Helsinki puh. +358-9-191 26807 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Pdf problems
What exactly is the problem? The pdf opens in my browser just fine in Opera 9 Firefox 2 on linux. cheers, Jim On Thu, Sep 20, 2007 at 12:57:43PM +0300, Mika Stenberg wrote: Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Mika Stenberg IT-asiantuntija Terveystieteiden Keskuskirjasto Lääketieteellinen tdk PL 61 (Haartmaninkatu 4) Helsingin Yliopisto 00290 Helsinki puh. +358-9-191 26807 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- James Rutherford | Hewlett-Packard Limited registered Office: Research Engineer | Cain Road, HP Labs | Bracknell, Bristol, UK | Berks +44 117 312 7066 | RG12 1HN. [EMAIL PROTECTED] | Registered No: 690597 England The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as HP CONFIDENTIAL. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Does DSpace support links in metadata values?
Hi, i want to create some links from parts of the metadata text. Does anyone know if DSpace support this functionality or is a simple way to implement it? Thanks.- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Does DSpace support links in metadata values?
Thanks, it will be very usefull to give me some instructions how to use it. Is the LinkOut solution now part of DSpace distribution? - Original Message - From: Dupriez Christophe To: Hlias Stavrakis Sent: Thursday, September 20, 2007 3:44 PM Subject: RE : [Dspace-tech] Does DSpace support links in metadata values? Hi Hlias! I have developed a LinkOut solution for DSpace Metadata. You can look at an example of the result at: http://www.destin.be/dspace/handle/443803704/1292 (internal links are blue, external links are green) This was done for DSpace 1.4.1 / 1.4.2. I can prepare instructions for installation if you are interested. Please look below at parameters added to dspace.cfg when using our LinkOut class... (As I am not in front of my personnal computer, I cannot write to the DSpace Developper list: please answer to this message there if you find it useful for you) Have a nice day! Christophe Dupriez Belgium Poison Centre [EMAIL PROTECTED] webui.itemdisplay.default = dc.title=title, dc.title.alternative, dc.date.issued=date, dc.contributor.author=author, \ dc.contributor.email=email, dc.contributor.Affiliation=email, dc.description.sponsorship, \ dc.relation.ispartofseries, dc.type, \ dc.description.abstract=abstract, dc.description=localdata, dc.relation[linkages], \ dc.subject.mesh[mesh], dc.subject.substance[mesh], dc.subject=subject, \ dc.identifier.citation, dc.publisher, dc.relation.ispartofseries, dc.identifier.issn=issn, \ dc.identifier.volume, dc.identifier.issue, dc.identifier.pagination, \ dc.coverage.references, dc.identifier.other, dc.identifier.govdoc, \ dc.identifier.pmid=id, dc.identifier.isbn, dc.identifier.ismn, dc.identifier, dc.language \ dc.copy.requested, dc.date.requested=date, \ dc.copy.obtained, dc.date.obtained=date, dc.copy.licencee, dc.copy.uri=link, \ dc.date.indexed=date, dc.user.indexed linkout.html.field = [value] linkout.html.localdata = i style=color:Orange;[value]/i linkout.html.linkages = [linkage] linkout.html.link = a href=[PLAINvalue] target=link[value]/a linkout.html.date = [datevalue] linkout.html.email = [valueEMAILS] linkout.html.mesh = a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMedterm=%22[URLvalue]%22%5BMeSH%5D; title=[value] style=text-decoration:none;font-size:66%;color:MediumSeaGreen target=pubmedM/aa href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMedterm=%22[URLvalue]%22%5BMeSH+Major+Topic%5D; title=+[value] target=pubmed style=text-decoration:none;font-size:66%;color:MediumSeaGreen;font-weight:bold+/anbsp;a href=[root]/simple-search?query=keyword:[URLvalue][value]/a [linkage] linkout.html.cas = nbsp;a href=http://chem.sis.nlm.nih.gov/chemidplus/direct.jsp?regno=[URLvalue]; title=[value] style=text-decoration:none;color:MediumSeaGreen target=toxnetCAS [value]/a linkout.html.subject = a href=[root]/simple-search?query=keyword:[URLvalue][value]/a linkout.html.issn = a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=Journalsterm=[URLvalue]%5Bissn%5D; title=[value] style=text-decoration:none;font-size:66%;color:MediumSeaGreen;font-weight: bold target=pubmedJ/anbsp;a href=[root]/simple-search?query=identifier:[URLvalue][value]/anbsp;nbsp;a href=http://www.sherpa.ac.uk/romeo.php?jrule=ISSNsearch=[PLAINvalue]; title=Sherpa RoMEO target=romeo style=text-decoration:none;font-size:66%;color:MediumSeaGreen;font-weight: boldS/R/a linkout.html.abstract = [valueHEADINGS] [ORIGINAL] linkout.html.author = a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMedterm=%22[URLvalue]%22%5BFullAuthor%5D; title=[value] style=text-decoration:none;font-size:66%;color:MediumSeaGreen target=pubmedP/anbsp;a href=http://scholar.google.com/scholar?q=author:%22[URLvalue]%22; target=google style=text-decoration:none;font-size:66%;color:MediumSeaGreenG/anbsp;a href=[root]/simple-search?query=author:[URLvalue][value]/a linkout.html.title = a href=http://scholar.google.com/scholar?as_q=[URLvalue]as_eq=as_occt=titleas_allsubj=alllr=safe=active; title=[value] style=text-decoration:none;font-size:66%;color:MediumSeaGreen target=googleG/a b[value]/b linkout.html.id = a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMedterm=[value]; title=PMID [value]%5Buid%5D target=pubmed style=text-decoration:none;color:MediumSeaGreen;font-weight: bold[value]/a linkout.html.commentin = (Commentednbsp;bynbsp;a href=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMedterm=[value]; title=PMID [value]%5Buid%5D style=text-decoration:none;font-size:66%;color:MediumSeaGreen
Re: [Dspace-tech] Pdf problems
The way pdf is opened depends on adobe-reader and the browser, not on the server. The setting can be adjusted per browser I believe. Reinstall the reader if in doubt. Den 20.09.2007 14:13, James Rutherford skrev: What exactly is the problem? The pdf opens in my browser just fine in Opera 9 Firefox 2 on linux. cheers, Jim On Thu, Sep 20, 2007 at 12:57:43PM +0300, Mika Stenberg wrote: Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Mika Stenberg IT-asiantuntija Terveystieteiden Keskuskirjasto Lketieteellinen tdk PL 61 (Haartmaninkatu 4) Helsingin Yliopisto 00290 Helsinki puh. +358-9-191 26807 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Vennlig hilsen Rune Pettersen *** Hgskolen i Telemark Hallvard Eikas plass 3800 B Tlf.: 35 95 25 33 / 35 95 25 00 [EMAIL PROTECTED] http://home.hit.no/~petterse/historier/ *** - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Extra characters spontaneously littering pages
We were unable to diagnose the exact issue that caused the problem, but a server reboot fixed the issue. Ah, technology. Thanks to those that tried to help. Shane Beers Digital Repository Services Librarian George Mason University [EMAIL PROTECTED] 703-993-3742 On Sep 19, 2007, at 10:35 AM, Shane Beers wrote: Something quite unexpected greeted me this morning. I pulled up our repository page (http://mars.gmu.edu) to find characters on our pages where formerly there were none. They seem to exist at the end of some lines, such as the left navbar text and inside picklists. We didn't change a thing on our production server and I'm kind of at a loss. If anyone has any ideas please feel free to let me know! Thanks much. Shane Beers Digital Repository Services Librarian George Mason University [EMAIL PROTECTED] 703-993-3742 http://mars.gmu.edu -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Introducing myself...
Hello, I'm a student of computer science engineering from Roma Tre university in Rome, my name is Daniele Ninfo. I will work on Dspace for my thesis, Andrea Bollini from CILEA will be my mentor. My objective is the introduction of Hibernate and Spring Framework, as Andrea wrote in one of his past mails. I'm at the beginning, today I started studying some documentation about Dspace, I hope to start working soon. I hope I will do a good job, and not to bore you all with my questions! I'm glad to get in touch with this community and to work for an important project as Dspace. Best regards, Daniele - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Extra characters spontaneously littering pages
Glad it resolved itself, I was scratching my head trying to come up with an explanation that would be helpful. Cheers, Mark Diggory On Sep 20, 2007, at 12:51 PM, Shane Beers wrote: We were unable to diagnose the exact issue that caused the problem, but a server reboot fixed the issue. Ah, technology. Thanks to those that tried to help. Shane Beers Digital Repository Services Librarian George Mason University [EMAIL PROTECTED] 703-993-3742 On Sep 19, 2007, at 10:35 AM, Shane Beers wrote: Something quite unexpected greeted me this morning. I pulled up our repository page (http://mars.gmu.edu) to find characters on our pages where formerly there were none. They seem to exist at the end of some lines, such as the left navbar text and inside picklists. We didn't change a thing on our production server and I'm kind of at a loss. If anyone has any ideas please feel free to let me know! Thanks much. Shane Beers Digital Repository Services Librarian George Mason University [EMAIL PROTECTED] 703-993-3742 http://mars.gmu.edu - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- --- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Introducing myself...
Welcome, Do not hesitate to ask questions. We love to go on and on about DSpace and will not find them a bore. As for your work and interacting with the DSpace community, I'd recommend dropping in on the DSpace IRC channel and introducing yourself there as well. irc://irc.freenode.net/dspace Cheers, Mark Diggory On Sep 20, 2007, at 1:11 PM, Daniele Ninfo wrote: Hello, I'm a student of computer science engineering from Roma Tre university in Rome, my name is Daniele Ninfo. I will work on Dspace for my thesis, Andrea Bollini from CILEA will be my mentor. My objective is the introduction of Hibernate and Spring Framework, as Andrea wrote in one of his past mails. I'm at the beginning, today I started studying some documentation about Dspace, I hope to start working soon. I hope I will do a good job, and not to bore you all with my questions! I'm glad to get in touch with this community and to work for an important project as Dspace. Best regards, Daniele - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] DSpace SRB Storage using Oracle
Hi all, I'm new to DSpace and i'm evaluating configuration options for best platform availability. I have read SRB documentation and i reach some interesting point: The Storage Resource Broker (SRB) is a client/server middleware that provides clients with a set of uniform interfaces to distributed and heterogeneous storage resources Storage resources handled by the the SRB include the UNIX file system, archival storage systems such as UNITREE and HPSS, and database Large Objects managed by various DBMS including DB2, Oracle and Illustra. It seems that i can use my Oracle database as an storage for DSpace content (not only metadata). That's great for me, but i was unable to locate documentation or examples showing how to configure DSpace with SRB working with an Oracle content storage... Please, anyone can give me some directions on this topic? Thanks a lot!! -- Salut, Ricardo Borillo Domenech http://xml-utils.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] OutOfMemory errors during large PDF indexing
All, I'm curious if anyone out there has run into strange OutOfMemory errors while full-text indexing larger (10MB) PDF files in DSpace. It usually appears as either: Exception in thread main java.lang.OutOfMemoryError: Java heap space OR Exception in thread main java.lang.OutOfMemoryError: GC Overhead limit exceeded I've located the main problem PDF in our DSpace instance: http://hdl.handle.net/2142/2050 I've also done a large amount of searching/testing based on recommendations from various sites. In particular, I've done a memory dump using JHat (http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html), and it looks like the problem may reside with a potential memory leak in the 3rd party PDFBox tool used by DSpace 1.4.2. (In particular, it *looks* like PDFBox is attempting to load most/all of the textual content into a giant HashMap) Here's the latest settings I've been testing on: RHEL 4 Java 1.6.0_02 Postgres 8.1.9 DSpace 1.4.2 We also have the following JAVA_OPTS settings in place for our JVM: JAVA_OPTS=-Xmx1024M -Xms1024M -XX:NewRatio=2 -Dfile.encoding=UTF-8 (We initially had Xmx and Xms at 512MB, but I bumped it up and we're still getting the OutOfMemory exception at 1GB!) Anyone have any hints/tips or JVM settings to share? I personally don't see why PDFBox would need so much JVM memory to parse a 15MB PDF. But, the JHat analysis seemed to be pointing to PDFBox. - Tim P.S. an example of the full error stack trace is below: Exception in thread main java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.resize(Unknown Source) at java.util.HashMap.addEntry(Unknown Source) at java.util.HashMap.put(Unknown Source) at org.fontbox.cmap.CMap.addMapping(CMap.java:132) at org.fontbox.cmap.CMapParser.parse(CMapParser.java:153) at org.pdfbox.pdmodel.font.PDFont.parseCmap(PDFont.java:535) at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:387) at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325) at org.pdfbox.util.operator.ShowText.process(ShowText.java:64) at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452) at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215) at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174) at org.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:336) at org.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:259) at org.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:216) at org.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:149) at org.dspace.app.mediafilter.PDFFilter.getDestinationStream(PDFFilter.java:114) at org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilterManager.java:602) at org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilterManager.java:513) at org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterManager.java:461) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilterManager.java:428) at org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(MediaFilterManager.java:391) at org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.java:342) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] ETD-MS management
For those of us using DSpace 1.4+ to store electronic theses and dissertations: If you're using ETD-MS metadata, how are you managing your DSpace metadata registry? Are you placing the non-Dublin-Core ETD-MS metadata (e.g. degree information) inside the Dublin Core schema or in a separate one? If you use a separate one, are you putting the Dublin Core metadata used in ETD-MS inside the new schema, or are you mixing schemas on your ingest and display pages? I'm about to go change my metadata registry to make ETD-MS work as part of the Manakin-based redesign I'm working on, and I'd like to do it in accord with best practices (or at least experience!). Dorothea -- Dorothea Salo[EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Pdf problems
Mika, you didn't say what the problem was exactly, so it's hard to comment. One problem I know of is that large PDF files may not display in Acrobat Reader when used as a plugin to a browser. In this case, you get a message from Acrobat saying that the file is damaged and couldn't be opened. However, if you download the PDF and then open it in Acrobat Reader then it works OK. If this is your problem, then you should be aware that these problems are caused by bugs in the interface between Acrobat Reader and the browsers in which it is embedded, and are not bugs in DSpace. My guess would be that the bug is actually in Acrobat Reader, in fact, since I have seen the same problem in quite different browsers. Although it's not really a bug in DSpace, there is a patch available to work around the problem, by getting DSpace to send a hint to the browser that the file should be downloaded (rather than displayed in a browser plugin). So if this is your problem, you might like to look at this patch: http://tinyurl.com/2pr3u7 This is part of DSpace since 2007-07-20 (SVN revision 2073) On Thu, 2007-09-20 at 12:57 +0300, Mika Stenberg wrote: Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Conal Tuohy New Zealand Electronic Text Centre www.nzetc.org - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Pdf problems
Dear Rune Pettersen, We have that problem with some pdf files and in some computers. Sometimes the file opens in IE explorer but not in firefox or mozilla in the same computer! One way to solve this is to set the browser preferences to open the file with the acrobat reader and not the plugin. Then the files open without any problem. But this has to be done individually by the user at his end. I don't know if this is the right solution. Best wishes, Girija Srinivasan --- Girija Srinivasan, Raman Research Institute Library, Tel: +91 80 2361 0122 C V Raman Avenue, Sadashivanagar, Fax: +91 80 2361 0492 Bangalore 560 080, India. Email: [EMAIL PROTECTED] On Thu, 20 Sep 2007, Rune Pettersen wrote: The way pdf is opened depends on adobe-reader and the browser, not on the server. The setting can be adjusted per browser I believe. Reinstall the reader if in doubt. Den 20.09.2007 14:13, James Rutherford skrev: What exactly is the problem? The pdf opens in my browser just fine in Opera 9 Firefox 2 on linux. cheers, Jim On Thu, Sep 20, 2007 at 12:57:43PM +0300, Mika Stenberg wrote: Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Mika Stenberg IT-asiantuntija Terveystieteiden Keskuskirjasto LACURACURketieteellinen tdk PL 61 (Haartmaninkatu 4) Helsingin Yliopisto 00290 Helsinki puh. +358-9-191 26807 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Vennlig hilsen Rune Pettersen *** Hogskolen i Telemark Hallvard Eikas plass 3800 Bo Tlf.: 35 95 25 33 / 35 95 25 00 [EMAIL PROTECTED] http://home.hit.no/~petterse/historier/ *** - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Pdf problems
We have introduced a setting in the dspace.cfg that will be available in dspace 1.5 and also 1.4.x branch (so it might be available if we do decide to do a 1.4.3 release). It is only in the JSPUI at the moment and allows for the control of the disposition header on Bitstreams being downloaded, it will inform the browser to switch to treating the bitstream as a download to the file system vs. opening it in the plugin or application. the parameter in dspace.cfg would be: webui.content_disposition_threshold=size-in-bytes I you have experience with working in the source /** * Threshold on Bitstream size before content-disposition will be set. */ private int threshold = ConfigurationManager .getIntProperty (webui.content_disposition_threshold); ... in method ... protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException ... // Response length response.setHeader(Content-Length, String .valueOf(bitstream.getSize())); if(threshold != -1 bitstream.getSize() = threshold) { setBitstreamDisposition(bitstream.getName(), request, response); } later in the class... ... /** * Evaluate filename and client and encode appropriate disposition * * @param uri * @param request * @param response * @throws UnsupportedEncodingException */ private void setBitstreamDisposition(String filename, HttpServletRequest request, HttpServletResponse response) { String name = filename; Matcher m = p.matcher(name); if (m.find() !m.group().equals()) { name = m.group(); } try { String agent = request.getHeader(USER-AGENT); if (null != agent -1 != agent.indexOf(MSIE)) { name = URLEncoder.encode(name, UTF8); } else if (null != agent -1 != agent.indexOf(Mozilla)) { name = MimeUtility.encodeText(name, UTF8, B); } } catch (UnsupportedEncodingException e) { log.error(e.getMessage(),e); } finally { response.setHeader(Content-Disposition, attachment;filename= + name); } } -Mark On Sep 20, 2007, at 11:45 PM, Girija S wrote: Dear Rune Pettersen, We have that problem with some pdf files and in some computers. Sometimes the file opens in IE explorer but not in firefox or mozilla in the same computer! One way to solve this is to set the browser preferences to open the file with the acrobat reader and not the plugin. Then the files open without any problem. But this has to be done individually by the user at his end. I don't know if this is the right solution. Best wishes, Girija Srinivasan -- - Girija Srinivasan, Raman Research Institute Library, Tel: +91 80 2361 0122 C V Raman Avenue, Sadashivanagar, Fax: +91 80 2361 0492 Bangalore 560 080, India. Email: [EMAIL PROTECTED] On Thu, 20 Sep 2007, Rune Pettersen wrote: The way pdf is opened depends on adobe-reader and the browser, not on the server. The setting can be adjusted per browser I believe. Reinstall the reader if in doubt. Den 20.09.2007 14:13, James Rutherford skrev: What exactly is the problem? The pdf opens in my browser just fine in Opera 9 Firefox 2 on linux. cheers, Jim On Thu, Sep 20, 2007 at 12:57:43PM +0300, Mika Stenberg wrote: Hi, We are experiencing increasing difficulties in opening pdf- files via Dspace / Manakin. This is beginning to look like a serious problem which affects the overall usability of the software. The problem exists both in Manakin UI and Dspace UI. If someone has any suggestions how to make pdf files open in browser, please let me know. You can see a demo of such problem at: http://hdl.handle.net/2455/131898 Thanks, Mika -- Mika Stenberg IT-asiantuntija Terveystieteiden Keskuskirjasto LACURACURketieteellinen tdk PL 61 (Haartmaninkatu 4) Helsingin Yliopisto 00290 Helsinki puh. +358-9-191 26807 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Vennlig hilsen Rune Pettersen ***