[Isis-users] Photo/Image display

Guilda Ascencio gascencio at msinfo.info
Tue Dec 2 13:18:41 CET 2014


En la sección "preguntas más frecuentes"  del Wiki se incluyó esta
respuesta.  Gracias Egbert

On Tue, Dec 2, 2014 at 5:03 AM, De Smet Egbert <egbert.desmet at uantwerpen.be>
wrote:

>  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 :
>
> 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) :
> Alias /docs/ "/ABCD/www/bases/"
>  <Directory "/ABCD/www/bases/">
>  AllowOverride None
>  Options None
>  Order allow,deny
>   Allow from all
>  </Directory>
> 2. After restarting Apache, now it will substitute all occurrences of
> '/docs/' in the URL by the full path as defined : /ABCD/www/bases/.
> 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
> Thus the PFT becomes :
> '<img src="/docs/users/dr/'v620'"</img>'
> where the path for the image will actually be /ABCD/www/bases/users/dr/.
> So you have to put the pictures there.
> It is outside the Apache DocumentRoot (or domain), but by creating the
> Alias it can still work (as that is the purpose of Aliases).
>
> I hope this clarifies things and allows you to solve the problem.
>
>  Egbert de Smet
> Universiteit Antwerpen
>   ------------------------------
> *From:* isis-users [isis-users-bounces+egbert.desmet=ua.ac.be at iccisis.org]
> on behalf of De Smet Egbert [egbert.desmet at uantwerpen.be]
> *Sent:* Tuesday, December 02, 2014 10:28 AM
> *To:* bhowa tg; ISIS Users List
> *Subject:* Re: [Isis-users] Photo/Image display
>
>   Hi,
>
> the obvious answer is another question : where are your pictures stored ?
> There are two options here :
> - 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
> - 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.
> You will see an example of this for the CEPAL (biblo) demo-database.
>
>  Egbert de Smet
> Universiteit Antwerpen
>   ------------------------------
> *From:* isis-users [isis-users-bounces+egbert.desmet=ua.ac.be at iccisis.org]
> on behalf of bhowa tg [bhowatg at gmail.com]
> *Sent:* Tuesday, December 02, 2014 10:02 AM
> *To:* ISIS Users List
> *Subject:* [Isis-users] Photo/Image display
>
>   Colleagues'
>
>  in my display format is not showing the photo/picture.. format am using
> is this
>
> '<td rowspan=21 valign=top width=150><img
> src=../common/show_image.php?image='v60'&base=photos></td>'
>
>  sos
>
> --
>
> bhowa tg
> Infoprenuer, abcdZim.org
> bhowatg at gmail.com  IM & skypeID:  bhowatg
> blog: http://bhowatg.blogspot.com
> http://facebook.com/groups/abcdzim/; http://twitter.com/bhowatg
> www.abcdZim.co.cc
>
>
> "there are two equally dangerous extremes-
> to shut reason out and to let nothing else in"
>                                      Pascal, 1670
>
>
>
> _______________________________________________
> isis-users mailing list
> isis-users at iccisis.org
> To manage your own subscription options go to:
> http://lists.iccisis.org/listinfo/isis-users
> Or contact Henk Rutten: hlrutten at xs4all.nl
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20141202/80f5004d/attachment.html>


More information about the isis-users mailing list