(Scott Phillips) SF#1908952 - Office 2007 formats cannot be added to FormatRegistry

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2793 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Scott Phillips
2008-03-07 17:33:32 +00:00
parent e2d567bb2b
commit 87e777afe0
5 changed files with 47 additions and 2 deletions

View File

@@ -112,6 +112,15 @@
<extension>doc</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mimetype>
<short_description>Microsoft Word XML</short_description>
<description>Microsoft Word XML</description>
<support_level>1</support_level>
<internal>false</internal>
<extension>docx</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/vnd.ms-powerpoint</mimetype>
<short_description>Microsoft Powerpoint</short_description>
@@ -121,6 +130,15 @@
<extension>ppt</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/vnd.openxmlformats-officedocument.presentationml.presentation</mimetype>
<short_description>Microsoft Powerpoint XML</short_description>
<description>Microsoft Powerpoint XML</description>
<support_level>1</support_level>
<internal>false</internal>
<extension>pptx</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/vnd.ms-excel</mimetype>
<short_description>Microsoft Excel</short_description>
@@ -130,6 +148,17 @@
<extension>xls</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mimetype>
<short_description>Microsoft Excel XML</short_description>
<description>Microsoft Excel XML</description>
<support_level>1</support_level>
<internal>false</internal>
<extension>xlsx</extension>
</bitstream-type>
<bitstream-type>
<mimetype>application/marc</mimetype>
<short_description>MARC</short_description>

View File

@@ -118,7 +118,7 @@ CREATE SEQUENCE group2groupcache_seq;
CREATE TABLE BitstreamFormatRegistry
(
bitstream_format_id INTEGER PRIMARY KEY,
mimetype VARCHAR(48),
mimetype VARCHAR(256),
short_description VARCHAR(128) UNIQUE,
description TEXT,
support_level INTEGER,

View File

@@ -62,6 +62,14 @@ alter table bundle drop column mets_bitstream_id; -- totally unused column
-------------------------------------------------------------------------------
ALTER TABLE workspaceitem ADD page_reached INTEGER;
-------------------------------------------------------------------------
-- Increase the mimetype field size to support larger types, such as the
-- new Word 2007 mimetypes.
-------------------------------------------------------------------------
ALTER TABLE BitstreamFormatRegistry ALTER COLUMN mimetype TYPE VARCHAR(256);
-------------------------------------------------------------------------
-- Tables to manage cache of item counts for communities and collections
-------------------------------------------------------------------------

View File

@@ -79,7 +79,7 @@ CREATE SEQUENCE group2groupcache_seq;
CREATE TABLE BitstreamFormatRegistry
(
bitstream_format_id INTEGER PRIMARY KEY,
mimetype VARCHAR2(48),
mimetype VARCHAR2(256),
short_description VARCHAR2(128) UNIQUE,
description VARCHAR2(2000),
support_level INTEGER,

View File

@@ -66,6 +66,14 @@ alter table bundle drop column mets_bitstream_id;
-------------------------------------------------------------------------------
ALTER TABLE workspaceitem ADD page_reached INTEGER;
-------------------------------------------------------------------------
-- Increase the mimetype field size to support larger types, such as the
-- new Word 2007 mimetypes.
-------------------------------------------------------------------------
ALTER TABLE BitstreamFormatRegistry MODIFY (mimetype VARCHAR(256));
-------------------------------------------------------------------------
-- Tables to manage cache of item counts for communities and collections
-------------------------------------------------------------------------