Share

LetoDMS (formerly MyDMS)

Tracker: Bugs

5 I dont see view Online of Document - ID: 2009414
Last Update: Comment added ( nobody )

I dont see view Online of Document


Nobody/Anonymous ( nobody ) - 2008-07-03 04:17

5

Open

None

Nobody/Anonymous

Administrative Tasks

None

Public


Comment ( 1 )




Date: 2009-07-31 14:25
Sender: nobody

in mydms1.7.2 (windows xp)
I think the computed url for ViewOnline :
op/viewonline/<document_id>/<version>/<filename>
Example : op/viewonline/10004/3/toto.pdf
should use the RewriteEngine that is mentioned in the mydms/op/.htaccess
file :
RewriteEngine on
RewriteCond %{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
$1op.ViewOnline.php?request=$2:$3 [PT]
This mechanism seems to rewrite the url,
It may have worked on a specific configuration but I don't know which one.

So I've modified the following lines in the following files in order to
compute a ViewOnline link that calls directly op.ViewOnline.php
with the needed arguments : document_id and document_version

This gives :

out.ViewDocument.php : line 127
print "<li><a target=\"_blank\"
href=\"../op/op.ViewOnline.php?request=".$documentid.":".$version."\"><img
src=\"images/view.gif\" class=\"mimeicon\">" . getMLText("view_online") .
"</a></dt>";

out.ViewDocument.php : line 328
print "<li><a target=\"_blank\"
href=\"../op/op.ViewOnline.php?request=".$documentid.":".$version->getVersion()."\"><img
src=\"images/view.gif\" class=\"mimeicon\">" . getMLText("view_online") .
"</a></dt>";

out.DocumentVersionDetail.php : line 139
print "<li><a target=\"_blank\"
href=\"../op/op.ViewOnline.php?request=".$documentid.":".$version->getVersion()."\"><img
src=\"images/view.gif\" class=\"mimeicon\">" . getMLText("view_online") .
"</a></dt>";

this works.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.