Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:user:gs3_format_statements [2018/02/05 12:32]
kjdon [Adding new srcicons]
en:user:gs3_format_statements [2018/03/13 10:11] (current)
kjdon [Adding new srcicons]
Line 128: Line 128:
 ==== Adding new srcicons ==== ==== Adding new srcicons ====
  
-If you have used source documents, such as mp4, where greenstone doesn'​t have an icon for it, you may see _iconmp4_ instead of an icon in the display. If this happens, you need to add an appropriate icon into web/​interfaces/​default/​images,​ and define a mapping for the macro in web/​sites/​localsite/​siteConfig.xml. For example, if we copy the mp3 example and add an icon for mp4, we would add imp4.gif into images folder, and add the following ​lines into siteConfig.xml:​+If you have used source documents, such as mp4, where greenstone doesn'​t have an icon for it, you may see _iconmp4_ instead of an icon in the display. If this happens, you need to add an appropriate icon into web/​interfaces/​default/​images,​ and define a mapping for the macro in web/​sites/​localsite/​siteConfig.xml. For example, if we copy the mp3 example and add an icon for mp4, we would add imp4.gif into images folder, and add the following ​line into siteConfig.xml, into the <​replaceList>​ element:
 <​code>​ <​code>​
     <replace macro="​_iconmp4_"​ scope="​metadata"​ text="&​lt;​img src='​interfaces/​default/​images/​imp4.gif'​ border='​0'/&​gt;"​ resolve="​false"/>​     <replace macro="​_iconmp4_"​ scope="​metadata"​ text="&​lt;​img src='​interfaces/​default/​images/​imp4.gif'​ border='​0'/&​gt;"​ resolve="​false"/>​