<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Dear Colleagues;</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I was trying to do a work around with the pdf viewer that would display the pdf file without the download capabilities. I was able to do it with the use of post-submit method incorporated in the opac.pft and calling/loading the viewer.php. However, I've noticed that all results would display the pdf with ease but the first record would not display the file(no reaction at all). </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Any help would be greatly appreciated.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">===============</div><div dir="ltr" data-setdir="false"><div><div>** VIEWER.PHP **</div><div><br></div><div><body onload="disableContextMenu();" oncontextmenu="return false"></div><div>    <div class="wrapper"></div><div><span style="white-space: pre-wrap;">      </span><div id="result"></div></div><div>        <!--<embed id="pdfframe" src="/bases/theses/pdf/UT_32.pdf#toolbar=0" width="100%" height="2000px" ></embed>--></div><div><span style="white-space: pre-wrap;">               </span><iframe onload="myFunction()" id="pdfframe" src=<?php echo $_POST["pdf"].'#toolbar=0';?>  width="100%" height="800px"></iframe></div><div><span style="white-space: pre-wrap;">               </span></div><div><span style="white-space: pre-wrap;">               </span><!--<embed></embed>--></div><div>        <div class="embed-cover"></div></div><div>    </div></div><div><span style="white-space: pre-wrap;">      </span></div><div></body></div><div></html></div><div><br></div><div>============================================</div><div>** OPAC PFT **</div><div><br></div><div>if nocc(v990)=1 then </div><div>'<form action="/viewer.php" method="POST" target="_blank"><font face=arial size=2 color="#000080"><b><input type="text" name="pdf" value="/bases/article/'v990'" style="display:none";></b><font face=arial size=2 align="left"><b>&emsp; PDF File : &nbsp;</b><input type="submit" value="View PDF"></form>' </div><div>fi, '<br><br>'</div></div><div><br></div><div><br></div><br></div></div></body></html>