[Isis-users] isis-users Digest, Vol 146, Issue 10
Miriam García Hernández
mgarciah at uci.cu
Mon Feb 13 16:11:40 CET 2023
No necesito esta información. Por favor no enviar más. Gracias.
----- Mensaje original -----
De: "isis-users-request" <isis-users-request en iccisis.org>
Para: isis-users en iccisis.org
Enviados: Lunes, 13 de Febrero 2023 6:22:38
Asunto: isis-users Digest, Vol 146, Issue 10
Send isis-users mailing list submissions to
isis-users en iccisis.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.iccisis.org/listinfo/isis-users
or, via email, send a message with subject or body 'help' to
isis-users-request en iccisis.org
You can reach the person managing the list at
isis-users-owner en iccisis.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of isis-users digest..."
Today's Topics:
1. Re: [DKIM] External PHP (Roger Guilherme)
----------------------------------------------------------------------
Message: 1
Date: Sun, 12 Feb 2023 10:51:32 -0300
From: Roger Guilherme <memoria.info en gmail.com>
To: Francisco Tamor <fttamor en yahoo.com>
Cc: Isis-users <isis-users en iccisis.org>
Subject: Re: [Isis-users] [DKIM] External PHP
Message-ID:
<CACRofd1ZnCsLHQqY90gikUaNebj9LVNOY6=FXpNBU-+yn9X3VA en mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Dear Francisco,
O the iAH results are all displayed inside a <form>, it is possible that
some <form> is open inside iah (I will check).
Quick fix for your code that worked for me:
'</form><form action="/viewer.php" name="viewpdf'mfn'" method="POST"
target="_blank">
<input type="hidden" name="pdffile" value="/bases/theses/pdf/'v990*4'";>
<input type="submit" value="View PDF">'
'</form>'
I removed the HTML elements that didn't add much.
I added a dynamic name to the form, because multiple identical forms can
cause problems in the future.
Best regards,
Roger
Em dom., 12 de fev. de 2023 às 04:08, Francisco Tamor <fttamor en yahoo.com>
escreveu:
> Dear Roger,
>
> I captured the codes upon doing inspection of the button. Attached are the
> codes - the first 3 are from the first record which is not responding, the
> next 2 are from the 2nd button etc.
>
> Thanks again,
> Francisco
>
>
>
>
>
>
>
>
>
>
> Sent from Yahoo Mail on Android
> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
>
> On Sat, Feb 11, 2023 at 22:49, Roger Guilherme
> <memoria.info en gmail.com> wrote:
> Dear Francisco
>
> I am suspicious that the problem is in the content of <input type="hidden"
> name="pdffile" value="/bases/theses/pdf/'*v990*4*'">.
>
> Can you inspect this button by pressing F12 in the browser to see what is
> contained within it?
>
> From what I saw in the video the button is not sending the form. This
> usually happens because something is breaking the form.
>
> Best regards,
>
> Roger
>
>
>
>
> Em sáb., 11 de fev. de 2023 às 11:04, Francisco Tamor <fttamor en yahoo.com>
> escreveu:
>
> Hi Roger,
>
> I have attached the full PFT and PHP files together with the video of the
> entire search activity.
>
> Thank you.
>
> Francisco
>
> On Saturday, 11 February 2023 at 02:38:44 pm GMT+8, Francisco Tamor <
> fttamor en yahoo.com> wrote:
>
>
> Hi Roger,
>
> My apologies, it,s not *"if npost(['theses'], but actually "if
> nocc(['theses'],,'PD_'v990*4)=1 then" .*
>
> Regards,
>
> Francisco
>
> On Saturday, 11 February 2023 at 02:19:59 am SGT, Roger Guilherme <
> memoria.info en gmail.com> wrote:
>
>
>
> Hi, Francisco
>
> Something tells me that the problem is in this line *"if
> npost(['theses'],'PD_'v990*4)=1 then"*, but only by seeing the result of
> *'PD_'v990*4* to be sure.
>
> Another thing that catches my eye is the "display:none" in the pdffile
> input. My opinion: change the input to "hidden" and remove the inline css.
>
> Here is my version of the code and let me know if it improves anything.
>
>
> '<form action="/viewer.php" method="POST" target="_blank">
> <input type="hidden" name="pdffile" value="/bases/theses/pdf/'v990*4'">
> <font face=arial size=2 align="left"><b> View PDF: </b><input
> type="submit" value="'v990*4'"></font>
> </form>'
>
> Best regards,
>
> Roger
>
>
>
> Em sex., 10 de fev. de 2023 às 13:25, Francisco Tamor <fttamor en yahoo.com>
> escreveu:
>
> Guillermo,
>
> Yes, PHP is not triggered on the first result but others starting from the
> second result display the pdf in a viewerr I made.
>
> Sent from Yahoo Mail on Android
> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
>
> On Fri, Feb 10, 2023 at 17:59, Roger Guilherme
> <memoria.info en gmail.com> wrote:
>
>
> Dear Francisco
>
> I don't think I quite understand what is going on. Correct me if I got it
> wrong.
>
> - In the result list, isn't the link to the PDF displayed from the second
> result?
>
> - In the first result of the list PHP is not being triggered?
>
> best regards,
>
> Roger
>
>
>
>
> -------- Doorgestuurd bericht --------
> Onderwerp: [DKIM] [Isis-users] External PHP
> Datum: Thu, 9 Feb 2023 06:40:04 +0000 (UTC)
> Van: Francisco Tamor <fttamor en yahoo.com> <fttamor en yahoo.com>
> Aan: Isis-users <isis-users en iccisis.org> <isis-users en iccisis.org>
>
> Dear Colleagues;
>
> I have created and external PHP file to view my pdf filest. However, all
> the first records after the search result do not display the pdf file.
> Other file will show the pdf but not the first record. Hope somebody could
> help me in this. Attached are the display format and PHP code I used.
>
> Thank you.
>
>
> ----------------
> Viewer.php
>
> <?php
> session_start();
> $_SESSION=array();
> include("central/config.php");
> include("$app_path/common/get_post.php");
> $new_window=time();
> //foreach ($arrHttp as $var=>$value) echo "$var = $value<br>";
>
> if (isset($_SESSION["lang"])){
> $arrHttp["lang"]=$_SESSION["lang"];
> }else{
> $arrHttp["lang"]=$lang;
> $_SESSION["lang"]=$lang;
> }
> include ("$app_path/lang/admin.php");
> include ("$app_path/lang/lang.php");
> ?>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>>
>
> <html lang="pt-br" xmlns="http://www.w3.org/1999/xhtml"
> <http://www.w3.org/1999/xhtml> xml:lang="pt-br">
>
> <head profile="http://www.w3.org/2005/10/profile"
> <http://www.w3.org/2005/10/profile>>
> <meta http-equiv="Expires" content="-1" />
> <meta http-equiv="pragma" content="no-cache" />
> <META http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1">
> <meta http-equiv="Content-Language" content="pt-br" />
> <meta name="robots" content="all" />
> <meta http-equiv="keywords" content="" />
> <meta http-equiv="description" content="" />
> <link rel="shortcut icon" href="/favicon.ico"
> type="image/x-icon" sizes="16x16">
>
> <title>PDF View</title>
>
>
>
> </head>
> <body onload="disableContextMenu();" oncontextmenu="return false">
> <div class="wrapper">
> <div id="result"></div>
>
> <iframe id="pdfframe" src=<?php if(isset($_POST["pdffile"])) {
> echo $_POST["pdffile"].'#toolbar=0';} ?> width="100%"
> height="800px"></iframe>
>
> <div class="embed-cover"></div>
> </div>
>
>
> </body>
> </html>
>
>
> ----------------------------------
> Dislpay Format (opac.pft) - for v990
>
>
> if npost(['theses'],'PD_'v990*4)=1 then
> '<form action="/viewer.php" method="POST" target="_blank"><font face=arial
> size=2 color="#000080"><b><input type="text" name="pdffile"
> value="/bases/theses/pdf/'v990*4'" style="display:none";></b><font
> face=arial size=2 align="left"><b> View PDF: </b><input type="submit"
> value="'v990*4'"></form>'
> fi, '<br><br>'
>
>
>
>
> Search Result Display
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230212/91fd22c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_20230212_150000.jpg
Type: image/jpeg
Size: 5067992 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230212/91fd22c6/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_20230212_150017.jpg
Type: image/jpeg
Size: 5378045 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230212/91fd22c6/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_20230212_150101.jpg
Type: image/jpeg
Size: 4154000 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230212/91fd22c6/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_20230212_150138.jpg
Type: image/jpeg
Size: 5439904 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20230212/91fd22c6/attachment-0003.jpg>
------------------------------
Subject: Digest Footer
_______________________________________________
isis-users mailing list
isis-users en iccisis.org
To manage your own subscription options go to: http://lists.iccisis.org/listinfo/isis-users
Or contact Henk Rutten: hlrutten en xs4all.nl
------------------------------
End of isis-users Digest, Vol 146, Issue 10
*******************************************
V Convención Científica Internacional de la Universidad de las Ciencias Informáticas, UCIENCIA 2023
Del 3 al 5 de octubre de 2023. Varadero, Cuba.
uciencia.uci.cu - #UCIENCIA2023
More information about the isis-users
mailing list