[ http://jira.dspace.org/jira/browse/DS-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10825#action_10825 ]
Stuart Lewis edited comment on DS-295 at 12/6/09 6:03 AM: ---------------------------------------------------------- Having chatted about this on IRC (#dspace) we've concluded that the RDF should really be stored as 'application/rdf+xml'. So the additional sql would be: INSERT INTO bitstreamformatregistry (bitstream_format_id, mimetype, short_description, description, support_level, internal) VALUES (nextval('bitstreamformatregistry_seq'), 'application/rdf+xml; charset=utf-8', 'RDF XML', 'RDF serialized as XML', '1', false); UPDATE bitstream SET bitstream_format_id = (SELECT bitstream_format_id FROM bitstreamformatregistry WHERE short_description = 'RDF XML') WHERE name = 'license_rdf' AND source = 'org.dspace.license.CreativeCommons'; (Along with the original SQL of: INSERT INTO bitstreamformatregistry (bitstream_format_id, mimetype, short_description, description, support_level, internal) VALUES (nextval('bitstreamformatregistry_seq'), 'text/html; charset=utf-8', 'CC License', 'Item-specific Creative Commons license agreed upon to submission', '1', true); UPDATE bitstream SET bitstream_format_id = (SELECT bitstream_format_id FROM bitstreamformatregistry WHERE short_description = 'CC License') WHERE name = 'license_text' AND source = 'org.dspace.license.CreativeCommons'; ) was (Author: stuartlewis): Having chatted about this on IRC (#dspace) we've concluded that the RDF should really be stored as 'application/rdf+xml'. So the additional sql would be: INSERT INTO bitstreamformatregistry (bitstream_format_id, mimetype, short_description, description, support_level, internal) VALUES (nextval('bitstreamformatregistry_seq'), 'application/rdf+xml; charset=utf-8', 'RDF serialized as XML', 'RDF XML', '1', false); UPDATE bitstream SET bitstream_format_id = (SELECT bitstream_format_id FROM bitstreamformatregistry WHERE short_description = 'RDF XML') WHERE name = 'license_rdf' AND source = 'org.dspace.license.CreativeCommons'; (Along with the original SQL of: INSERT INTO bitstreamformatregistry (bitstream_format_id, mimetype, short_description, description, support_level, internal) VALUES (nextval('bitstreamformatregistry_seq'), 'text/html; charset=utf-8', 'CC License', 'Item-specific Creative Commons license agreed upon to submission', '1', true); UPDATE bitstream SET bitstream_format_id = (SELECT bitstream_format_id FROM bitstreamformatregistry WHERE short_description = 'CC License') WHERE name = 'license_text' AND source = 'org.dspace.license.CreativeCommons'; ) > CC License being assigned incorrect Mime Type during submission. > ---------------------------------------------------------------- > > Key: DS-295 > URL: http://jira.dspace.org/jira/browse/DS-295 > Project: DSpace 1.x > Issue Type: Bug > Components: DSpace API > Affects Versions: 1.6.0 > Reporter: Steven Williams > Assignee: Larry Stone > Attachments: bitstream-format.patch, CreativeCommons.patch, > DS-295-updated.patch > > > The Creative Commons License is sharing the Default License Format with a > mime type of text/plain, but the CC License bitstream should have a mime type > of text/html. Browsers that render the CC License depending on the mime type > will display the raw HTML/CSS making the CC License unreadable for the > average user. To correct this issue a new format needs to be created for the > Creative Commons License and the submission process needs to assign the new > format. The attached CreativeCommons.patch replaces the assigned "License" > format with a "CC License" form. > Location to apply patch: > dspace-api/src/main/java/org/dspace/license/CreativeCommons.java > The attached bitstream-formats.xml adds the new CC License format with mime > type text/html. This will insure the format is created when dspace is > installed. > Location to apply patch: dspace/config/registries/bitstream-formats.xml > > Credit also goes to Ladd Hanson -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel