File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed
mir-module/src/main/resources Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 30
30
<xsl : with-param select =" mycoreobject/service/servdates/servdate[@type='createdate']" name =" nodes" />
31
31
<xsl : with-param select =" i18n:translate('metaData.createdAt')" name =" label" />
32
32
</xsl : call-template >
33
- <xsl : call-template name =" printMetaDate" >
34
- <xsl : with-param select =" mycoreobject/service/servflags/servflag[@type='createdby']" name =" nodes" />
35
- <xsl : with-param select =" i18n:translate('metaData.createdby')" name =" label" />
36
- </xsl : call-template >
33
+
34
+ <xsl : variable name =" createdby-userinfo" select =" document(concat('notnull:user:', mycoreobject/service/servflags/servflag[@type='createdby']))" />
35
+ <tr >
36
+ <td class =" metaname" >
37
+ <xsl : value-of select =" concat(i18n:translate('metaData.createdby'), ':')" />
38
+ </td >
39
+ <td class =" metavalue" >
40
+ <xsl : choose >
41
+ <xsl : when test =" $createdby-userinfo/user/realName" >
42
+ <xsl : attribute name =" title" >
43
+ <xsl : value-of select =" $createdby-userinfo/user/username" />
44
+ </xsl : attribute >
45
+ <xsl : value-of select =" $createdby-userinfo/user/realName" />
46
+ </xsl : when >
47
+ <xsl : otherwise >
48
+ <xsl : value-of select =" $createdby-userinfo/user/username" />
49
+ </xsl : otherwise >
50
+ </xsl : choose >
51
+ </td >
52
+ </tr >
53
+
37
54
<xsl : for-each select =" mycoreobject/metadata/def.modsContainer/modsContainer/mods:mods/mods:note" >
38
55
<xsl : variable name =" noteType" >
39
56
<xsl : choose >
129
146
</div >
130
147
</div >
131
148
</xsl : template >
132
- </xsl : stylesheet >
149
+ </xsl : stylesheet >
Original file line number Diff line number Diff line change 228
228
</xsl : template >
229
229
<xsl : template match =" td[@class='metavalue']" mode =" newMetadata" priority =" 2" >
230
230
<dd >
231
+ <xsl : if test =" @title" >
232
+ <xsl : attribute name =" title" >
233
+ <xsl : value-of select =" @title" />
234
+ </xsl : attribute >
235
+ </xsl : if >
231
236
<xsl : copy-of select =" node()|*" />
232
237
</dd >
233
238
</xsl : template >
You can’t perform that action at this time.
0 commit comments