Sue, If I remember correctly (others may have more detailed info), I had to set up the appropriate information in the Bitstream Format Registry (In the Administer section) for the files that we were importing. In our case, it was MP3 files and adding a new entry allowed the import to automatically choose the proper format (based on the file extension, I presume.)
I know for certain that the "contents" file of the -import- directory does not like anything more than a filename in there. I know I had to go back with a SQL query to update the descriptions of the bitstreams because the import doesn't support it, but the format type was chosen automatically. This might help, too, but isn't much different than what I mention above. http://wiki.dspace.org/confluence/display/DSPACE/Add+a+new+format+to+the+bitstream+registry --Joel Joel Richard IT Specialist, Web Services Division Smithsonian Institution Libraries | http://www.sil.si.edu/ (202) 633-1706 | (202) 786-2861 (f) | richar...@si.edu ________________________________ From: "Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]" <susan.m.thorn...@nasa.gov> Date: Thu, 6 May 2010 12:44:15 -0400 To: "dspace-tech@lists.sourceforge.net" <dspace-tech@lists.sourceforge.net> Cc: "Warren, Douglas Lewis (LARC-B7)[NCI]" <douglas.l.war...@nasa.gov> Subject: [Dspace-tech] How does the bitstream_format_id get set in a DSpace 1.5.1 import? [cid:3355995558_35504712] I just noticed in one of our DSpace instances that all of the rows in the bitstream table have column "bitstream_format_id" set to "1" - Unknown. All the documents are either .pdf files or their equivalent .pdf.txt files (from filter-media). The strange thing is that all the .pdf files are in ORIGINAL bundles and all the .pdf.txt files are in TEXT bundles. What is the proper way to set the value of "bitstream_format_id" during an import? Is it a field you have to include in the Contents file? Or is it supposed to be set programmatically in DSpace? I guess I can write a query to "update" the bitstream_format_id based on the document names, i.e., .pdf files are bitstream_format_id = "3" and .pdf.txt files should be "5". Thanks in advance, Sue Sue Walker-Thornton NASA Langley Research Center Integrated Library Systems Developer, Application & Database Administrator ConITS Contract ~ NCI Information Systems, Inc. 130 Research Drive Hampton, VA 23666 Office: (757) 224-4074 ~ Mobile: (757) 506-9903 ~ Fax: (757) 224-4001 email: susan.m.thorn...@nasa.gov <mailto:susan.m.thorn...@nasa.gov>
<<inline: image.png>>
<<inline: image.gif>>
------------------------------------------------------------------------------
_______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech