[Isis-users] Photo/Image display

De Smet Egbert egbert.desmet at uantwerpen.be
Tue Dec 2 11:03:02 CET 2014


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<mailto: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<http://www.abcdZim.co.cc>


"there are two equally dangerous extremes-
to shut reason out and to let nothing else in"
                                     Pascal, 1670


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20141202/13fe9355/attachment.html>


More information about the isis-users mailing list