Revision 34549
Added by Claudio Atzori over 9 years ago
indexRecordsToHtml.xsl | ||
---|---|---|
13 | 13 |
<table class="table table-condensed"> |
14 | 14 |
<thead> |
15 | 15 |
<tr> |
16 |
<th>Title</th><th>Publication date</th><th>Authors</th> |
|
16 |
<th>Group size</th><th>Title</th><th>Publication date</th><th>Authors</th>
|
|
17 | 17 |
</tr> |
18 | 18 |
</thead> |
19 | 19 |
<tbody> |
20 |
<xsl:for-each select="//*[local-name() = 'entity']"> |
|
21 |
<tr> |
|
20 |
<xsl:for-each select="//*[local-name() = 'record']"> |
|
21 |
<xsl:variable name="objidentifier"> |
|
22 |
<xsl:choose> |
|
23 |
<xsl:when test="count(.//*[local-name()='children']/*[local-name()='result']/@objidentifier) > 0"> |
|
24 |
<xsl:value-of separator="," select=".//*[local-name()='children']/*[local-name()='result']/@objidentifier"/> |
|
25 |
</xsl:when> |
|
26 |
<xsl:otherwise> |
|
27 |
<xsl:value-of select=".//*[local-name()='objIdentifier']"/> |
|
28 |
</xsl:otherwise> |
|
29 |
</xsl:choose> |
|
30 |
</xsl:variable> |
|
31 |
<tr ng-class="{{ success:isSelected('{$objidentifier}') }}"> |
|
22 | 32 |
<td> |
23 |
<xsl:value-of select="./*[local-name() ='result']/title | ./*[local-name()='result']/children/result/title" /> |
|
33 |
<xsl:choose> |
|
34 |
<xsl:when test="count(.//*[local-name()='children']/*[local-name()='result']) > 0"> |
|
35 |
<xsl:value-of select="count(.//*[local-name()='children']/*[local-name()='result'])" /> |
|
36 |
</xsl:when> |
|
37 |
<xsl:otherwise> |
|
38 |
<xsl:value-of select="'1'" /> |
|
39 |
</xsl:otherwise> |
|
40 |
</xsl:choose> |
|
41 |
</td> |
|
42 |
<td> |
|
43 |
<xsl:value-of select=".//*[local-name()='metadata']/*[local-name()='entity']/*[local-name()='result']/title[@classid='main title']" /> |
|
24 | 44 |
</td> |
25 | 45 |
<td> |
26 |
<xsl:value-of select="./*[local-name()='result']/dateofacceptance" /> |
|
46 |
<xsl:value-of select=".//*[local-name()='metadata']/*[local-name()='entity']/*[local-name()='result']/dateofacceptance" />
|
|
27 | 47 |
</td> |
28 | 48 |
<td> |
29 |
<xsl:for-each select="./*//rel[./to/@type='person']/fullname"> |
|
49 |
<xsl:for-each select=".//*//rel[./to/@type='person']/fullname">
|
|
30 | 50 |
<xsl:if test="position() > 1">; </xsl:if> |
31 | 51 |
<xsl:value-of select="." /> |
32 | 52 |
</xsl:for-each> |
33 | 53 |
</td> |
54 |
<td class="text-right"> |
|
55 |
<button class="btn btn-primary btn-sm" ng-click="add('{$objidentifier}')" ng-hide="isSelected('{$objidentifier}')"> |
|
56 |
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
|
57 |
</button> |
|
58 |
<button class="btn btn-primary btn-sm btn-danger" ng-click="remove('{$objidentifier}')" ng-show="isSelected('{$objidentifier}')"> |
|
59 |
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span> |
|
60 |
</button> |
|
61 |
</td> |
|
34 | 62 |
</tr> |
35 | 63 |
</xsl:for-each> |
36 | 64 |
</tbody> |
... | ... | |
40 | 68 |
<table class="table table-condensed"> |
41 | 69 |
<thead> |
42 | 70 |
<tr> |
43 |
<th>Legal name</th><th>legal short name</th><th>website</th>
|
|
71 |
<th>Group size</th><th>Legal name</th><th>Legal short name</th><th>Website URL</th>
|
|
44 | 72 |
</tr> |
45 | 73 |
</thead> |
46 | 74 |
<tbody> |
47 |
<xsl:for-each select="//*[local-name() = 'entity']"> |
|
48 |
<tr> |
|
75 |
<xsl:for-each select="//*[local-name() = 'record']"> |
|
76 |
<xsl:variable name="objidentifier"> |
|
77 |
<xsl:choose> |
|
78 |
<xsl:when test="count(.//*[local-name()='children']/*[local-name()='organization']/@objidentifier) > 0"> |
|
79 |
<xsl:value-of separator="," select=".//*[local-name()='children']/*[local-name()='organization']/@objidentifier"/> |
|
80 |
</xsl:when> |
|
81 |
<xsl:otherwise> |
|
82 |
<xsl:value-of select=".//*[local-name()='objIdentifier']"/> |
|
83 |
</xsl:otherwise> |
|
84 |
</xsl:choose> |
|
85 |
</xsl:variable> |
|
86 |
<tr ng-class="{{ success:isSelected('{$objidentifier}') }}"> |
|
49 | 87 |
<td> |
50 |
<xsl:value-of select="./*[local-name()='organization']/legalname" /> |
|
88 |
<xsl:choose> |
|
89 |
<xsl:when test="count(.//*[local-name()='children']/*[local-name()='organization']) > 0"> |
|
90 |
<xsl:value-of select="count(.//*[local-name()='children']/*[local-name()='organization'])" /> |
|
91 |
</xsl:when> |
|
92 |
<xsl:otherwise> |
|
93 |
<xsl:value-of select="'1'" /> |
|
94 |
</xsl:otherwise> |
|
95 |
</xsl:choose> |
|
96 |
</td> |
|
97 |
<td> |
|
98 |
<xsl:value-of select=".//*[local-name()='metadata']/*[local-name()='entity']/*[local-name()='organization']/legalname" /> |
|
51 | 99 |
</td> |
52 | 100 |
<td> |
53 |
<xsl:value-of select="./*[local-name()='organization']/legalshortname" /> |
|
101 |
<xsl:value-of select=".//*[local-name()='metadata']/*[local-name()='entity']/*[local-name()='organization']/legalshortname" />
|
|
54 | 102 |
</td> |
55 | 103 |
<td> |
56 |
<xsl:value-of select="./*[local-name()='organization']/websiteurl" /> |
|
57 |
</td> |
|
104 |
<xsl:value-of select=".//*[local-name()='metadata']/*[local-name()='entity']/*[local-name()='organization']/websiteurl" /> |
|
105 |
</td> |
|
106 |
<td class="text-right"> |
|
107 |
<button class="btn btn-primary btn-sm" ng-click="add('{$objidentifier}')" ng-hide="isSelected('{$objidentifier}')"> |
|
108 |
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> |
|
109 |
</button> |
|
110 |
<button class="btn btn-primary btn-sm btn-danger" ng-click="remove('{$objidentifier}')" ng-show="isSelected('{$objidentifier}')"> |
|
111 |
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span> |
|
112 |
</button> |
|
113 |
</td> |
|
58 | 114 |
</tr> |
59 | 115 |
</xsl:for-each> |
60 | 116 |
</tbody> |
Also available in: Unified diff
updated dedup UI, add similarity group almost done