added a link at the top of the page for printing an article.
authorjohn <john>
Thu, 6 Jun 2002 12:10:50 +0000 (12:10 +0000)
committerjohn <john>
Thu, 6 Jun 2002 12:10:50 +0000 (12:10 +0000)
the link is smart, in that it asks the config if you are generating
printable versions as pdf, or pre-printable versions as fo.  if neither,
no link.  if fo but not pdf, it links to the pdf-generating servlet
function of OpenMir, if fo and pdf, it links directly to the static pdf
file.

templates-dist/producer/content.template

index 58f41c8..6b6fcb5 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>