change the way, size, height, OID, etc is entered in the DB: do it via the Entity...
[mir.git] / templates-dist / producer / content.template
index a78e1bf..b63fc81 100755 (executable)
               <tr> 
                 <td width="100%" valign="top">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
-                    <tr> 
+
+       <if config.generateFO=="yes">
+         <tr><td align="right">          
+         <if config.generatePDF=="yes">
+           <a href="${data.content.id}.pdf">Print this article</a>
+          <else>
+            <a href="${config.openAction}?do=getpdf&id=${data.content.id}">Print this article</a>
+         </if>
+         </td></tr>
+       </if>
+            <tr> 
                       <td> 
                         <h2>${data.content.title}</h2>
                         <h4><i>${data.content.creator}, ${data.content.webdb_create_formatted}</i></h4>
@@ -73,7 +83,7 @@
               <p>
                 <img src="/img/${media["big_icon"]}" border="0" alt="">
                 <a href="${audio["publish_server"]}${audio["publish_path"]}">
-                ${audio["title"]} - ${media["descr"]}</a>
+                ${audio["title"]} - ${media["media_descr"]} - ${media["human_readable_size"]} </a>
               </p>
             </list>
           </list>
@@ -82,7 +92,7 @@
               <p>
                 <img src="/img/${media["big_icon"]}" border="0" alt="">
                 <a href="${video["publish_server"]}${video["publish_path"]}">
-                ${video["title"]} - ${media["descr"]}</a>
+                ${video["title"]} - ${media["media_descr"]} - ${media["human_readable_size"]} </a>
               </p>
             </list>
           </list>
               <p>
                 <img src="/img/${media["big_icon"]}" border="0" alt="">
                 <a href="${other["publish_server"]}${other["publish_path"]}">
-                ${other["title"]} - ${media["descr"]}</a>
+                ${other["title"]} - ${media["media_descr"]} - ${media["human_readable_size"]}</a>
               </p>
             </list>
           </list>
               <p>
                 <img src="${image["publish_server"]}${image["publish_path"]}"
                  border="0" width="${image["img_width"]}"
-                 height="${image["img_width"]}" alt="${image["title"]}">
+                 height="${image["img_height"]}" alt="${image["title"]}">
                  <br><i>${image["title"]}</i>
               </p>
             </list>