Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pdn-certic
MaX
Commits
d4efaa6d
Commit
d4efaa6d
authored
9 years ago
by
chauveau
Browse files
Options
Downloads
Patches
Plain Diff
mise à jour visionneuse (pas bien le commit dans le tag...)
parent
8b301eab
No related branches found
Tags
MaX-V0
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
plugins/img_viewer/img_viewer.src.js
+1
-0
1 addition, 0 deletions
plugins/img_viewer/img_viewer.src.js
plugins/img_viewer/img_viewer.xsl
+14
-6
14 additions, 6 deletions
plugins/img_viewer/img_viewer.xsl
ui/js/dist/img_viewer.min.js
+1
-1
1 addition, 1 deletion
ui/js/dist/img_viewer.min.js
with
16 additions
and
7 deletions
plugins/img_viewer/img_viewer.src.js
+
1
−
0
View file @
d4efaa6d
$
(
document
).
ready
(
function
(){
$
(
'
body
'
).
prepend
(
"
<div id='img_dialog_wrap' title='Image viewer'></div>
"
);
$
(
'
#img_dialog_wrap
'
).
hide
();
$
(
'
.viewable
'
).
css
(
'
cursor
'
,
'
pointer
'
)
})
function
openImageInDialog
(
href
,
source
){
...
...
This diff is collapsed.
Click to expand it.
plugins/img_viewer/img_viewer.xsl
+
14
−
6
View file @
d4efaa6d
...
...
@@ -23,16 +23,24 @@
<xsl:template
match=
"tei:figure"
>
<div
class=
"figure"
>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template
match=
"tei:graphic"
>
<xsl:variable
name=
"href"
>
<xsl:value-of
select=
"concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,
./tei:graphic/
@url)"
/>
<xsl:value-of
select=
"concat($pluginsuri,'/img_viewer/single_image/',$project, '/',$imagesRepository ,@url)"
/>
</xsl:variable>
<xsl:variable
name=
"id"
><xsl:value-of
select=
"generate-id(.) "
/></xsl:variable>
<
div
class=
"
figure
viewable"
id=
"{$id}"
>
<
img
class=
"viewable"
id=
"{$id}"
>
<xsl:attribute
name=
"onclick"
>
openImageInDialog('
<xsl:value-of
select=
"$href"
/>
','#
<xsl:value-of
select=
'$id'
/>
')
</xsl:attribute>
<xsl:apply-templates/>
</div>
<xsl:attribute
name=
"src"
>
<xsl:value-of
select=
"concat($baseuri,'/',$project, '/ui/images/',@url)"
/>
</xsl:attribute>
</img>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ui/js/dist/img_viewer.min.js
+
1
−
1
View file @
d4efaa6d
function
openImageInDialog
(
i
,
e
){
$
(
"
#img_dialog_wrap
"
).
load
(
i
).
dialog
({
position
:{
my
:
"
center
"
,
at
:
"
center
"
,
of
:
e
?
e
:
window
},
height
:
650
,
width
:
900
})}
$
(
document
).
ready
(
function
(){
$
(
"
body
"
).
prepend
(
"
<div id='img_dialog_wrap' title='Image viewer'></div>
"
),
$
(
"
#img_dialog_wrap
"
).
hide
()});
\ No newline at end of file
function
openImageInDialog
(
i
,
e
){
$
(
"
#img_dialog_wrap
"
).
load
(
i
).
dialog
({
position
:{
my
:
"
center
"
,
at
:
"
center
"
,
of
:
e
?
e
:
window
},
height
:
650
,
width
:
900
})}
$
(
document
).
ready
(
function
(){
$
(
"
body
"
).
prepend
(
"
<div id='img_dialog_wrap' title='Image viewer'></div>
"
),
$
(
"
#img_dialog_wrap
"
).
hide
(),
$
(
"
.viewable
"
).
css
(
"
cursor
"
,
"
pointer
"
)});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment