Re: [greenstone-users] Munged links

From Michael Dewsnip
DateWed, 16 Jun 2004 11:48:54 +1200
Subject Re: [greenstone-users] Munged links
In-Reply-To (40C6C92A-1030401-reltech-org)
Hi Tim,

Yes, unfortunately this bug was added into Greenstone 2.50 with the
Collage classifier functionality. It only affects linked images (ie.
those in <a href="..."></a> tags) -- plain images are not affected.

This has been fixed in Greenstone 2.51 (available at the end of the
week), or you can fix this yourself by editing
perllib/plugins/HTMLPlug.pm:

Line 356 says:

return $anchor_name . $front . $img_file . $back;

Change it to:

return $front . $img_file . $back . $anchor_name;

For some reason, putting the anchor after the <img> tag works where the
first one fails.

All the best,

Michael

Tim Finney wrote:

> I have a problem with GS 2.50: links that worked fine in GS 2.39 now
> get
> munged.
>
> E.g. The original HTML file includes this link:
>
> <a href="oxy.v066.4496.a.01.150dpi.jpg"><img
> src="oxy.v066.4496.a.01.thumb.jpg" alt="thumbnail 01a"/></a>
>
> Importing the file with GS 2.39 gives:
>
> <a
> href="/gsdl/collect/P.Oxy./index/assoc/HASHea40/d9151f13.dir/oxy.v066.4496.a.01.150dpi.jpg"><img
> src="/gsdl/collect/P.Oxy./index/assoc/HASHea40/d9151f13.dir/oxy.v066.4496.a.01.thumb.jpg"
> alt="thumbnail 01a"/></a>
>
>
> However, importing the same file with GS 2.50 gives me this:
>
> <a
> href="/gsdl/collect/P.Oxy./index/assoc/HASHea40.dir/oxy.v066.4496.a.01.150dpi.jpg"><a
> name="oxy.v066.4496.a.01.thumb.jpg"><img
> src="/gsdl/collect/P.Oxy./index/assoc/HASHea40.dir/oxy.v066.4496.a.01.thumb.jpg"
> alt="thumbnail 01a"/></a>
>
>
> Other links in the same page do work when imported with GS 2.50.
> Copies
> of the relevant files are attached. The system with 2.39 is RedHat
> 7.3
> and the one with 2.50 is Fedora.
>
> Best
>
> Tim Finney
>
>
> ----------------------------------------------------------------
> --------------------------------------------------------------------
>
> Images
>
> Reduced Full-sized
[thumbnail 01a] [thumbnail 01a]
[thumbnail 01b] [thumbnail 01b]
> --------------------------------------------------------------------
>
> Transcription
>
> ? Images Reduced Full-sized
[??????]???[???? ???????] xxvi 31
[???? ??]?????? ??? [?????]
[??????]? ? ?????? [?????]
[???????] ? ???? ?????[?]
5 [?? ?? ??]???????[? ?????] 32
[?? ??? ??]??? ????[??? ?]
[??????] ????? ??[????]
[. . . . . . ]. [. . ]. [
? Images Reduced Full-sized
[. . ???]?????[????? ?????] xxvii 6
[??? ??]?? ??????? ?[?????????]
[????] ??? ????? ???[?????] 7
[?????]?? ?? ?? ?????[??? ???]
5 [???? ???] ????? ???[??????]
[???? ?]?? ?????? [?? ????]
[?????]?? ????? ?[??
> --------------------------------------------------------------------
>
> Beta Code (with supplements)
>
> anaxwrhsantes elaloun pros allhlous oti ouden qanatou h desmwn
acion prassei o anqrwpos outos ei mh epekeklhto Kaisara kai outws
ekrinen o hgemwn auton anapemyai

Alecandrinon pleon eis thn Italian enebibasen hmas eis auto
braduploountes en de ikanais hmerais kai molis genomenoi kata thn
Knidon mh prosewntos hmas tou
> --------------------------------------------------------------------
>

[Image][Home page][Help page][Preferences page]
> [Search for specific terms][Image]
> [Browse alphabetical list of authors][Image]
> [Browse alphabetical list of titles][Image][Browse by genre][Image]
> [Browse by date][Image][Browse by papyrus ID]
>
>

P.Oxy.LXVI 4496
Acts of the Apostles XXVI 31-32; XXVII 6-7
ed. T. Finney
> --------------------------------------------------------------------
>

Publication date 1999
Author Luke
Date Fifth century
Provenance Oxyrhynchus
Location Papyrology Rooms, Sackler Library, Oxford
Genre Religion; Acta
Format Codex
Material Papyrus
> --------------------------------------------------------------------
>
> Images
>
>

Reduced Full-sized
[thumbnail 01a] [thumbnail 01a]
[thumbnail 01b] [thumbnail 01b]
> --------------------------------------------------------------------
>
> Transcription
>
>

??? Images Reduced Full-sized
[?????????]??f?[?????f ????????] xxvi 31
[??????f ??]???????f ????
[??????]
[???????]?? ? ???f???? [?????]
[??????f?f??] ? ????f ???????[?f]
5 [?? ?? ???]????????[? ?s???f?] 32
[??? ??? ???]?????f ?????[??? ?]
[???????] ??????? ??[?????]
[. . . . . . ]. [. . ]. [
??? Images Reduced Full-sized
[. . ????]?????[?????? ??????] xxvii 6
[???f ???]?? ?????????
?[???????f??]
[????f] ???f ??????
????[???????] 7
[???????]?f? ?? ?? ??^???[???f
???]

5 [?????f ???] ?????f
???[??????]
[????? ??]?? ?s????? [?? ??????f]
[???????]?f? ????f? ??[???
> --------------------------------------------------------------------
>
> Beta Code (with supplements)
>
>

anaxwrhsantes elaloun pros allhlous oti ouden qanatou h desmwn
acion prassei o anqrwpos outos ei mh epekeklhto Kaisara kai outws
ekrinen o hgemwn auton anapemyai

Alecandrinon pleon eis thn Italian enebibasen hmas eis auto
braduploountes en de ikanais hmerais kai molis genomenoi kata thn
Knidon mh prosewntos hmas tou
> --------------------------------------------------------------------
>
>

[Image][Home page][Help page][Preferences page]
> [Search for specific terms][Image]
> [Browse alphabetical list of authors][Image]
> [Browse alphabetical list of titles][Image] Genre[Image][Browse by date][Image] EdID

>
>

P.Oxy.LXVI 4496
Acts of the Apostles XXVI 31-32; XXVII 6-7
ed. T. Finney
> --------------------------------------------------------------------
>

Publication date 1999
Author Luke
Date Fifth century
Provenance Oxyrhynchus
Location Papyrology Rooms, Sackler Library, Oxford
Genre Religion; Acta
Format Codex
Material Papyrus
> --------------------------------------------------------------------
>
> Images
>
>

Reduced Full-sized
[thumbnail 01a] [thumbnail 01a]
[thumbnail 01b] [thumbnail 01b]
> --------------------------------------------------------------------
>
> Transcription
>
>

??? Images Reduced Full-sized
[?????????]??f?[?????f ????????] xxvi 31
[??????f ??]???????f ????
[??????]
[???????]?? ? ???f???? [?????]
[??????f?f??] ? ????f ???????[?f]
5 [?? ?? ???]????????[? ?s???f?] 32
[??? ??? ???]?????f ?????[??? ?]
[???????] ??????? ??[?????]
[. . . . . . ]. [. . ]. [
??? Images Reduced Full-sized
[. . ????]?????[?????? ??????] xxvii 6
[???f ???]?? ?????????
?[???????f??]
[????f] ???f ??????
????[???????] 7
[???????]?f? ?? ?? ??^???[???f
???]

5 [?????f ???] ?????f
???[??????]
[????? ??]?? ?s????? [?? ??????f]
[???????]?f? ????f? ??[???
> --------------------------------------------------------------------
>
> Beta Code (with supplements)
>
>

anaxwrhsantes elaloun pros allhlous oti ouden qanatou h desmwn
acion prassei o anqrwpos outos ei mh epekeklhto Kaisara kai outws
ekrinen o hgemwn auton anapemyai

Alecandrinon pleon eis thn Italian enebibasen hmas eis auto
braduploountes en de ikanais hmerais kai molis genomenoi kata thn
Knidon mh prosewntos hmas tou
> --------------------------------------------------------------------
>
>
> ----------------------------------------------------------------
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>