|
Hi Don, On 10/28/2016 02:20 AM, Donald Bynum
wrote:
What theme are you using? The format text shown on item pages at least in the Mirage / Mirage 2 themes doesn't come from the bitstream format registry. For Mirage 2, you can see how it works here: https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui-mirage2/src/main/webapp/xsl/aspect/artifactbrowser/item-view.xsl#L733 The getFileTypeDesc template takes the mimetype and concatenates it to form an i18n key. The value for these keys (where they exist) are in the main messages.xml file, see https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/webapp/i18n/messages.xml#L2278 -- you can see the .docx one here: https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/webapp/i18n/messages.xml#L2296 <message key="xmlui.dri2xhtml.mimetype.application/vnd.openxmlformats-officedocument.wordprocessingml.document">Microsoft Word 2007</message> So you'd just add your own entry to messages.xml for the zip file mimetype if you'd like that to be shown on the item page. As always, if you've copied the [dspace-src]/dspace-xmlui/src/main/webapp/i18n/messages.xml file to the corresponding directory under [dspace-src]/dspace/modules/xmlui, edit the copy rather than the original. cheers, Andrea -- Dr Andrea Schweer Lead Software Developer, ITS Information Systems The University of Waikato, Hamilton, New Zealand +64-7-837 9120 -- |
- [dspace-tech] Bitstream format display Donald Bynum
- Re: [dspace-tech] Bitstream format display Andrea Schweer
