<div dir="ltr">En la sección "preguntas más frecuentes" del Wiki se incluyó esta respuesta. Gracias Egbert<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 5:03 AM, De Smet Egbert <span dir="ltr"><<a href="mailto:egbert.desmet@uantwerpen.be" target="_blank">egbert.desmet@uantwerpen.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Let me explain how in the patrons (users) database the picture is shown, without the use of the 'show_image.php' script as an alternative :<br>
<br>
1. I created an 'Alias' in Apache virtual host configuration for ABCD (actually by copying/editing the example of ScriptAlias in the existing configuration httpd-vhosts-abcd.conf) :
<br>
Alias /docs/ "/ABCD/www/bases/" <br>
<Directory "/ABCD/www/bases/"><br>
AllowOverride None<br>
Options None<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
2. After restarting Apache, now it will substitute all occurrences of '/docs/' in the URL by the full path as defined : /ABCD/www/bases/.<br>
3. So in the PFT now you only have to refer to the pictures by putting '/docs/' followed by the database-name (users) and then the repository subfolder-name, followed finally by the actual name of the picture (which is taken from v620<br>
Thus the PFT becomes : <br>
'<img src="/docs/users/dr/'v620'"</img>'<br>
where the path for the image will actually be /ABCD/www/bases/users/dr/.<br>
So you have to put the pictures there.<br>
It is outside the Apache DocumentRoot (or domain), but by creating the Alias it can still work (as that is the purpose of Aliases).<br>
<br>
I hope this clarifies things and allows you to solve the problem.<br>
<div><br>
<div><font><span style="font-size:10pt">
<div>Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> isis-users [isis-users-bounces+egbert.desmet=<a href="mailto:ua.ac.be@iccisis.org" target="_blank">ua.ac.be@iccisis.org</a>] on behalf of De Smet Egbert [<a href="mailto:egbert.desmet@uantwerpen.be" target="_blank">egbert.desmet@uantwerpen.be</a>]<br>
<b>Sent:</b> Tuesday, December 02, 2014 10:28 AM<br>
<b>To:</b> bhowa tg; ISIS Users List<br>
<b>Subject:</b> Re: [Isis-users] Photo/Image display<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi,<br>
<br>
the obvious answer is another question : where are your pictures stored ?<br>
<div>There are two options here :<br>
- either you store in /ABCD/www/htdocs/bases/[yourdb], so this is the 'DocumentRoot' (of Apache) followed by the 'bases' folder and in there the subfolder named with your database-name<br>
- or you define in the main database-folder for your database (e.g. /ABCD/www/bases/[yourdb]) a file named 'dr_path.def' (for 'digital repository path definition') in which you put the path where you want your 'repository' to be, which then can also be outside
the DocumentRoot, e.g. your bases-folder itself.<br>
You will see an example of this for the CEPAL (biblo) demo-database.<br>
<br>
<div><font><span style="font-size:10pt">
<div>Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> isis-users [isis-users-bounces+egbert.desmet=<a href="mailto:ua.ac.be@iccisis.org" target="_blank">ua.ac.be@iccisis.org</a>] on behalf of bhowa tg [<a href="mailto:bhowatg@gmail.com" target="_blank">bhowatg@gmail.com</a>]<br>
<b>Sent:</b> Tuesday, December 02, 2014 10:02 AM<br>
<b>To:</b> ISIS Users List<br>
<b>Subject:</b> [Isis-users] Photo/Image display<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">Colleagues'<br>
<br>
</div>
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">in my display format is not showing the photo/picture.. format am using is this<br>
</div>
<div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br>
'<td rowspan=21 valign=top width=150><img src=../common/show_image.php?image='v60'&base=photos></td>'<br>
<br>
</div>
<div class="gmail_default" style="font-family:comic sans ms,sans-serif">sos<br clear="all">
</div>
<br>
-- <br>
<div>
<div dir="ltr"><br>
<span style="font-family:comic sans ms,sans-serif">bhowa tg<br>
Infoprenuer, abcdZim.org<br>
<a href="mailto:bhowatg@gmail.com" target="_blank">bhowatg@gmail.com</a> IM & skypeID: bhowatg<br>
blog: <a href="http://bhowatg.blogspot.com" target="_blank">http://bhowatg.blogspot.com</a><br>
<a href="http://facebook.com/groups/abcdzim/" target="_blank">http://facebook.com/groups/abcdzim/</a>;
<a href="http://twitter.com/bhowatg" target="_blank">http://twitter.com/bhowatg</a><br>
<a href="http://www.abcdZim.co.cc" target="_blank">www.abcdZim.co.cc</a><br>
</span><br>
<br>
<span style="font-family:comic sans ms,sans-serif">"there are two equally dangerous extremes-<br>
to shut reason out and to let nothing else in"<br>
Pascal, 1670</span><br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
isis-users mailing list<br>
<a href="mailto:isis-users@iccisis.org">isis-users@iccisis.org</a><br>
To manage your own subscription options go to: <a href="http://lists.iccisis.org/listinfo/isis-users" target="_blank">http://lists.iccisis.org/listinfo/isis-users</a><br>
Or contact Henk Rutten: <a href="mailto:hlrutten@xs4all.nl">hlrutten@xs4all.nl</a><br>
<br></blockquote></div><br></div>