From: Thomas Schraitle Date: Fri, 25 Oct 2013 11:04:31 +0000 (+0000) Subject: Fixed ticket [#1315]: Add possibility to add a link to mediaobjects X-Git-Tag: release/1.79.1~6^2~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7034348dc8d3710720f714dae085f9bd2883bcbc;p=docbook-dsssl Fixed ticket [#1315]: Add possibility to add a link to mediaobjects --- diff --git a/xsl/html/graphics.xsl b/xsl/html/graphics.xsl index ab1230245..669d6732b 100644 --- a/xsl/html/graphics.xsl +++ b/xsl/html/graphics.xsl @@ -609,6 +609,18 @@ valign: + + + + + + + + + @@ -635,15 +647,7 @@ valign: - - - - - - + @@ -681,6 +685,18 @@ valign: + + + + + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index a71c8acc1..42f4e1af9 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -149,6 +149,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 9f2f32eb7..966eddabc 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -293,6 +293,7 @@ $Id$ &use.embed.for.svg; &make.graphic.viewport; &preferred.mediaobject.role; +&link.to.self.for.mediaobject; &use.role.for.mediaobject; &ignore.image.scaling; diff --git a/xsl/params/link.to.self.for.mediaobject.xml b/xsl/params/link.to.self.for.mediaobject.xml new file mode 100644 index 000000000..8aaeeaf49 --- /dev/null +++ b/xsl/params/link.to.self.for.mediaobject.xml @@ -0,0 +1,40 @@ + + + link.to.self.for.mediaobject + boolean + + + link.to.self.for.mediaobject + Include a element to image objects itself to go to a full-size, freely-zoomable version + + + + + + + + + + + Description + + In some cases, it can be very helpful to be able to click on an embedded figure + or informalfigure to get a full-size, freely-zoomable version of an image, for + instance when targeting readers on smartphones. This is implemented for images only, but not + for audio or video objects. + + If non-zero, the image will be wrapped in an a element, using the href + attribute pointing to the image itself: + <a href="source/image"> + <!-- the image object --> +</a> + + If the value of link.to.self.for.mediaobject.xml is zero + (default), then no a container is added. + + diff --git a/xsl/xhtml-1_1/param.ent b/xsl/xhtml-1_1/param.ent index 005e4f693..6ec61b8a0 100644 --- a/xsl/xhtml-1_1/param.ent +++ b/xsl/xhtml-1_1/param.ent @@ -147,6 +147,7 @@ + @@ -308,4 +309,4 @@ - \ No newline at end of file + diff --git a/xsl/xhtml-1_1/param.xweb b/xsl/xhtml-1_1/param.xweb index 33d710d4c..94f95d91d 100644 --- a/xsl/xhtml-1_1/param.xweb +++ b/xsl/xhtml-1_1/param.xweb @@ -276,6 +276,7 @@ $Id: param.xweb 7583 2007-12-03 17:02:33Z mzjn $ &use.embed.for.svg; &make.graphic.viewport; &preferred.mediaobject.role; +&link.to.self.for.mediaobject; &use.role.for.mediaobject; &ignore.image.scaling;