Re: [Dspace-tech] How to get ingested pdfs to keep their names?
Right, that wasn't ever an option on the PDF "packager". That class was really written as a demonstration of the package ingester and a proof-of-concept, but it was allowed to escape. The package ingester never sees the original filename; it is given an open InputStream created by the Packager application. Package ingesters run from a stream so they don't have to care if their input is from a file or a network connection, that way remote ingestion just works. However, you've already figured out most of what is needed to add the option you want. Just add some code to look for the "name" option and if found, set the bitstream's name to that. Make sure the disseminator will find custom-named PDFs, perhaps by looking for the first bitstream with a name ending in ".pdf" if there is no "package.pdf". Please submit the change as a patch through Sourceforge, so it can get adopted into the source, see the wiki page "How to contribute". -- Larry > I'm trying to ingest a whole bunch of pdf's using the packager. > > The syntax used is /dspace/bin/dsrun org.dspace.app.packager.Packager -c > hp/548 -e b > [EMAIL PROTECTED] -w -t PDF /home/dspace/HPL-2007-2.pdf > > The problem is that the files get renamed to "package.pdf" > (even if I add -o "name=blah.pdf" to the command.). > > This seems to happen in the class > org.dspace.content.packager.PDFPackager > > > bs = original.createBitstream(pkg); > pkg.close(); > bs.setName("package.pdf"); > > > Does anyone have a workaround that keeps the original pdf file name? is > there something I'm not doing quite right? > Thanks, > Ben Weinberg > HP Digital Library > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] blank page at point of submission
I had no luck with the blank page problem - despite checking settings & several complete reinstallations (including a fresh linux installation). However when I tried installing on a Windows 2003 server the problem didn't occur. Fortunately this installation is simply to support examination of customisation features around forms, metadata schemas & the controlled vocabularies - so it isn't meant to operate in a production environment. Its very puzzling that I kept on having problems on my linux installation that didn't appear on windows. Rowan Brownlee Digital Project Analyst University of Sydney Library NSW 2006 Australia Phone: +61 2 9036 6450 Fax: +61 2 9351 3689 http://escholarship.usyd.edu.au/dpa/ -Original Message- From: [EMAIL PROTECTED] on behalf of Rowan Brownlee Sent: Thu 14/06/2007 10:33 PM To: dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] blank page at point of submission I've just installed dSpace (1.4.2) for the first time. I created a community, collection and custom submission form. Everything works fine until I upload a file. At that point I see a blank page. I don't recognise any hints in the dspace.log. (I also get a blank page at file upload if I use the default submission form) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] How to get ingested pdfs to keep their names?
I'm trying to ingest a whole bunch of pdf's using the packager. The syntax used is /dspace/bin/dsrun org.dspace.app.packager.Packager -c hp/548 -e b [EMAIL PROTECTED] -w -t PDF /home/dspace/HPL-2007-2.pdf The problem is that the files get renamed to "package.pdf" (even if I add -o "name=blah.pdf" to the command.). This seems to happen in the class org.dspace.content.packager.PDFPackager bs = original.createBitstream(pkg); pkg.close(); bs.setName("package.pdf"); Does anyone have a workaround that keeps the original pdf file name? is there something I'm not doing quite right? Thanks, Ben Weinberg HP Digital Library - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] 1.4.2 Oracle Upgrade Problem
Graham, I should have added to my previous message, this is a test server, and if need be, I can lose all the data without a problem. My fear of course, is that I will encounter the identical issue when I attempt to upgrade the production instance because there, I cannot lose any of the data. Thus what I need to understand is what isn't/wasn't working/correct in the upgrade instruction and, can whatever it is/was be avoided? Brian A. Helstien, SISD, MLS, Director, Special Technologies Initiatives, IDM, University Libraries x06913 University of Southern California, (213) 740-6913 Los Angeles, California, 90089 [EMAIL PROTECTED] Information is independent of media or format -Original Message- From: Graham Triggs [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 2:13 AM To: Brian Helstien Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] 1.4.2 Oracle Upgrade Problem It look's like it can't find the registrationdata_seq. Try running: SELECT registrationdata_seq.nextval FROM dual; it probably won't work, in which case you will need to create the sequence. First, run: SELECT MAX(registrationdata_id) FROM registrationdata; to see if there are any IDs already in the table - if there are, you need to create the sequence starting with a higher number (at least 1 larger than the number returned). Then run: CREATE SEQUENCE registrationdata_seq START WITH 1; although change that 1 to a higher number if the previous command showed that it was necessary. G On Thu, 2007-06-14 at 12:35 -0700, Brian Helstien wrote: > Wednesday, I noted that following the directions to modify the Oracle > database schema didn't succeed. In trying to actually run the > application, I am getting Oracle database errors, such as the > following from the DEBUG dspace.log. The Oracle database is on a > different server than Dspace (if that makes any difference) and my > question is, and how exactly should I go about correctly modifying the > schema to support 1.4.2? Help, please? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] 1.4.2 Oracle Upgrade Problem
Graham, You were correct that the SELECT registrationdata did not work. The SELECT MAX returned MAX(REGISTRATIONDATA_ID) So I performed the CREATE starting with 1 and received a "Sequence Created" response. I was following the upgrade instructions from http://dspace.cvs.sourceforge.net/*checkout*/dspace/dspace/docs/update.h tml?revision=1.10&pathrev=MAIN, and the real problem here is that I cannot successfully execute @database_schema_13-14.sql. Are those instructions correct, or do I need to execute other sql schema modifications first? I'm sure we can fix this one procedure at a time, but ... After following your directions, the "forgot password" now works. Trying to create a new user gets the following; - URL Was: http://cassandra.usc.edu:8180/dspace/register -- Method: POST -- Parameters were: -- password: "XXXxxxXXX" -- submit: "Register" -- netid: "bhelstien" -- email: "[EMAIL PROTECTED]" -- step: "1" Exception: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterS ervlet.java:332) at org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.ja va:209) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Thread.java:595) AND attempting to run the database_schema_13-14.sql produces SQL> @database_schema_13-14.sql CREATE SEQUENCE group2group_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SEQUENCE group2groupcache_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SEQUENCE tasklistitem_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE TABLE Group2Group * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE TABLE Group2GroupCache * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SEQUENCE metadataschemaregistry_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SEQUENCE metadatafieldregistry_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE SEQUENCE metadatavalue_seq * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE TABLE MetadataSchemaRegistry * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE TABLE MetadataFieldRegistry * ERROR at line 1: ORA-00955: name is already used by an existing object CREATE TABLE MetadataValue * ERROR at line 1: ORA-00955: name is already used by an existing object INSERT INTO MetadataSchemaRegistry VALUES (1,'http://dublincore.org/documents/dcmi-terms/','dc') * ERROR at line 1: ORA-1: unique constraint (DSPACET.SYS_C002784) violated qualifier, scope_note FROM dctyperegistry * ERROR at line 4: ORA-00942: table or view does not exist SELECT item_id, dc_type_id, text_value, text_lang, place FROM dcvalue * ERROR at line 2: ORA-00904: "DC_TYPE_ID": invalid identifier DROP TABLE dcvalue * ERROR at line 1: ORA-00942: table or view does not exist CREATE VIEW dcvalue AS * ERROR at line 1: ORA-00955: name is already used by a
Re: [Dspace-tech] 1.4.2 Oracle Upgrade Problem
It look's like it can't find the registrationdata_seq. Try running: SELECT registrationdata_seq.nextval FROM dual; it probably won't work, in which case you will need to create the sequence. First, run: SELECT MAX(registrationdata_id) FROM registrationdata; to see if there are any IDs already in the table - if there are, you need to create the sequence starting with a higher number (at least 1 larger than the number returned). Then run: CREATE SEQUENCE registrationdata_seq START WITH 1; although change that 1 to a higher number if the previous command showed that it was necessary. G On Thu, 2007-06-14 at 12:35 -0700, Brian Helstien wrote: > Wednesday, I noted that following the directions to modify the Oracle > database schema didn't succeed. In trying to actually run the > application, I am getting Oracle database errors, such as the following > from the DEBUG dspace.log. The Oracle database is on a different server > than Dspace (if that makes any difference) and my question is, and how > exactly should I go about correctly modifying the schema to support > 1.4.2? Help, please? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] import item to DSpace but not show in workflow
Dear all, I use DSpace 1.3.2 on Linux (CentOS 4.4). I have some problem--when I import item by ItemImport.class with workflow. I can't see the task of new item that I just imported in the pool. But if I restart tomcat, I will see the task in the pool. Why? How to solve this problem? Thank you, Pannipa Saeueng Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech