1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0"
|
---|
3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
6 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
7 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
8 | extension-element-prefixes="java util"
|
---|
9 | exclude-result-prefixes="java util gsf">
|
---|
10 |
|
---|
11 | <!--
|
---|
12 | <img src="interfaces/{$interface_name}/images/iworld.gif"/>
|
---|
13 | -->
|
---|
14 |
|
---|
15 | <xsl:template name="documentHeading">
|
---|
16 | <gsf:style src="sites/{$site_name}/collect/{$collName}/css/eurovision.css"/>
|
---|
17 | <gsf:script src="sites/{$site_name}/collect/{$collName}/js/eurovision.js"/>
|
---|
18 |
|
---|
19 | <span style="font-weight:bold; font-size: 120%;">
|
---|
20 | <gsf:switch>
|
---|
21 | <gsf:metadata name='FromCountry'/>
|
---|
22 | <gsf:when test='exists'>
|
---|
23 | <gsf:metadata name='FromCountry'/>
|
---|
24 | voting in
|
---|
25 | <gsf:metadata name='FromCountryYear'/>
|
---|
26 | </gsf:when>
|
---|
27 | <gsf:otherwise>
|
---|
28 | <xsl:call-template name="choose-title"/>
|
---|
29 | </gsf:otherwise>
|
---|
30 | </gsf:switch>
|
---|
31 | </span>
|
---|
32 |
|
---|
33 | <style>
|
---|
34 | table.esc-metadata tr:nth-child(odd) {
|
---|
35 | background-color: rgba(255,255,255,0.2);
|
---|
36 | }
|
---|
37 | table.esc-metadata tr:nth-child(even) {
|
---|
38 | background-color: rgba(255,255,255,0.0);
|
---|
39 | }
|
---|
40 |
|
---|
41 | table.esc-metadata {
|
---|
42 | margin-top: 20px;
|
---|
43 | min-width: 650px;
|
---|
44 | padding: 10px;
|
---|
45 | }
|
---|
46 | </style>
|
---|
47 |
|
---|
48 | <!-- prov:wasDerivedFrom -->
|
---|
49 |
|
---|
50 | <table class="esc-metadata">
|
---|
51 |
|
---|
52 | <gsf:switch>
|
---|
53 | <gsf:metadata name='FromCountry'/>
|
---|
54 | <gsf:when test='exists'>
|
---|
55 | <tr>
|
---|
56 | <td>
|
---|
57 | Voting Type:
|
---|
58 | </td>
|
---|
59 | <td>
|
---|
60 | <gsf:switch>
|
---|
61 | <gsf:metadata name='FromCountryType'/>
|
---|
62 | <gsf:when test="equals" test-value="J">
|
---|
63 | Jury
|
---|
64 | </gsf:when>
|
---|
65 | <gsf:otherwise>
|
---|
66 | Televotes
|
---|
67 | </gsf:otherwise>
|
---|
68 | </gsf:switch>
|
---|
69 | </td>
|
---|
70 | </tr>
|
---|
71 | <tr>
|
---|
72 | <td>
|
---|
73 | Votes cast by:
|
---|
74 | </td>
|
---|
75 | <td>
|
---|
76 | <gsf:metadata name="FromCountry" highlight="highlight" />
|
---|
77 | </td>
|
---|
78 | </tr>
|
---|
79 | <tr>
|
---|
80 | <td>
|
---|
81 | Year:
|
---|
82 | </td>
|
---|
83 | <td>
|
---|
84 | <gsf:metadata name="FromCountryYear" highlight="highlight" />
|
---|
85 | </td>
|
---|
86 | </tr>
|
---|
87 | </gsf:when>
|
---|
88 | <gsf:otherwise>
|
---|
89 | <!--
|
---|
90 | </gsf:switch>
|
---|
91 |
|
---|
92 | <gsf:switch>
|
---|
93 | <gsf:metadata name='Title'/>
|
---|
94 | <gsf:when test='exists'>
|
---|
95 | -->
|
---|
96 | <tr>
|
---|
97 | <td>
|
---|
98 | <!--
|
---|
99 | XX<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'Artist')"/>XX
|
---|
100 | -->
|
---|
101 | Title:
|
---|
102 | </td>
|
---|
103 | <td>
|
---|
104 | <gsf:switch>
|
---|
105 | <gsf:metadata name='WikipediaURL_uri' />
|
---|
106 | <gsf:when test='exists'>
|
---|
107 |
|
---|
108 | <a target="_blank">
|
---|
109 | <xsl:attribute name="href">
|
---|
110 | <gsf:metadata name="WikipediaURL_uri" />
|
---|
111 | </xsl:attribute>
|
---|
112 | <gsf:metadata name="Title" highlight="highlight" /> @ Wikipedia
|
---|
113 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
114 | </a>
|
---|
115 | </gsf:when>
|
---|
116 | <gsf:otherwise>
|
---|
117 | <gsf:metadata name="Title" highlight="highlight" />
|
---|
118 | </gsf:otherwise>
|
---|
119 | </gsf:switch>
|
---|
120 | </td>
|
---|
121 | </tr>
|
---|
122 | <!--
|
---|
123 | </gsf:when>
|
---|
124 | -->
|
---|
125 | </gsf:otherwise>
|
---|
126 | </gsf:switch>
|
---|
127 |
|
---|
128 | <gsf:switch>
|
---|
129 | <gsf:metadata name='Creator'/>
|
---|
130 | <gsf:when test='exists'>
|
---|
131 | <tr>
|
---|
132 | <td>
|
---|
133 | Artist:
|
---|
134 | </td>
|
---|
135 | <td>
|
---|
136 | <gsf:metadata name="Creator" highlight="highlight" />
|
---|
137 | </td>
|
---|
138 | </tr>
|
---|
139 | </gsf:when>
|
---|
140 | </gsf:switch>
|
---|
141 |
|
---|
142 | <gsf:switch>
|
---|
143 | <gsf:metadata name='Country'/>
|
---|
144 | <gsf:when test='exists'>
|
---|
145 | <tr>
|
---|
146 | <td>
|
---|
147 | Country:
|
---|
148 | </td>
|
---|
149 | <td>
|
---|
150 | <gsf:metadata name="Country" highlight="highlight" />
|
---|
151 | </td>
|
---|
152 | </tr>
|
---|
153 | </gsf:when>
|
---|
154 | </gsf:switch>
|
---|
155 |
|
---|
156 | <gsf:switch>
|
---|
157 | <gsf:metadata name='Year'/>
|
---|
158 | <gsf:when test='exists'>
|
---|
159 | <tr>
|
---|
160 | <td>
|
---|
161 | Year:
|
---|
162 | </td>
|
---|
163 | <td>
|
---|
164 | <gsf:metadata name="Year" highlight="highlight" />
|
---|
165 | </td>
|
---|
166 | </tr>
|
---|
167 | </gsf:when>
|
---|
168 | </gsf:switch>
|
---|
169 |
|
---|
170 | </table>
|
---|
171 |
|
---|
172 | </xsl:template>
|
---|
173 |
|
---|
174 | <xsl:template name="documentContentFromCountry">
|
---|
175 | <div id="from-country-votes">
|
---|
176 | <gsf:script>
|
---|
177 | append_from_country_votes(gs.documentMetadata["FromCountryType"]);
|
---|
178 | </gsf:script>
|
---|
179 | </div>
|
---|
180 | </xsl:template>
|
---|
181 |
|
---|
182 | <xsl:template name="documentContentEntry">
|
---|
183 | <gsf:switch>
|
---|
184 | <gsf:metadata name='Abstract_en'/>
|
---|
185 | <gsf:when test='exists'>
|
---|
186 | <div style="padding-top: 10px;padding-bottom: 10px; font-style: italic;">
|
---|
187 | <gsf:metadata name='Abstract_en'/>
|
---|
188 | </div>
|
---|
189 | </gsf:when>
|
---|
190 | </gsf:switch>
|
---|
191 |
|
---|
192 | <div id="to-country-votes">
|
---|
193 | <gsf:script>
|
---|
194 | append_to_country_votes("Jury Votes","JuryVotesJSON","JuryVotesTotal");
|
---|
195 | append_to_country_votes("Televotes","TeleVotesJSON","TeleVotesTotal");
|
---|
196 | </gsf:script>
|
---|
197 |
|
---|
198 | </div>
|
---|
199 |
|
---|
200 | <div id="find-more-content">
|
---|
201 | Find more content about this Eurovision entry on-line:
|
---|
202 | <ul>
|
---|
203 | <li>
|
---|
204 | <a target="_blank">
|
---|
205 | <xsl:attribute name="href">
|
---|
206 | //www.google.com/search?q=Eurovision+<gsf:metadata name="Title"/>
|
---|
207 | </xsl:attribute>
|
---|
208 | @ Google Web Search (including YouTube)
|
---|
209 | <gsf:space/>
|
---|
210 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
211 | </a>
|
---|
212 | </li>
|
---|
213 |
|
---|
214 | <li>
|
---|
215 | <a target="_blank">
|
---|
216 | <xsl:attribute name="href">
|
---|
217 | //www.google.com/search?q=<gsf:metadata name="Creator"/>+<gsf:metadata name="Title"/>+site:genius.com
|
---|
218 | </xsl:attribute>
|
---|
219 | @ Genius.com (lyrics)
|
---|
220 | <gsf:space/>
|
---|
221 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
222 | </a>
|
---|
223 | </li>
|
---|
224 |
|
---|
225 | <li>
|
---|
226 | <a target="_blank">
|
---|
227 | <xsl:attribute name="href">
|
---|
228 | //www.google.com/search?q=<gsf:metadata name="Creator"/>+<gsf:metadata name="Title"/>+site:ultimate-guitar.com
|
---|
229 | </xsl:attribute>
|
---|
230 | @ Ultimate-Guitar (chords/tab)
|
---|
231 | <gsf:space/>
|
---|
232 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
233 | </a>
|
---|
234 | </li>
|
---|
235 |
|
---|
236 | <li>
|
---|
237 | <a target="_blank">
|
---|
238 | <xsl:attribute name="href">
|
---|
239 | //www.google.com/search?q="<gsf:metadata name="Title"/>" site:musicbrainz.org
|
---|
240 | </xsl:attribute>
|
---|
241 | @ MusicBrainz (music-oriented linked data about the song)
|
---|
242 | <gsf:space/>
|
---|
243 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
244 | </a>
|
---|
245 | </li>
|
---|
246 |
|
---|
247 | <li>
|
---|
248 | <a target="_blank">
|
---|
249 | <xsl:attribute name="href">
|
---|
250 | <gsf:metadata name="song_robust_uri" />
|
---|
251 | </xsl:attribute>
|
---|
252 | @ DBpedia (direct URI to linked data)
|
---|
253 | <gsf:space/>
|
---|
254 | <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=" alt="external link" />
|
---|
255 | </a>
|
---|
256 | </li>
|
---|
257 |
|
---|
258 |
|
---|
259 | </ul>
|
---|
260 | </div>
|
---|
261 | <!--
|
---|
262 | google.com/webhp?##q=yourquery&btnI=I
|
---|
263 | -->
|
---|
264 |
|
---|
265 | </xsl:template>
|
---|
266 |
|
---|
267 | <xsl:template name="documentContent">
|
---|
268 |
|
---|
269 | <gsf:switch>
|
---|
270 | <gsf:metadata name='FromCountry'/>
|
---|
271 | <gsf:when test='exists'>
|
---|
272 | <xsl:call-template name="documentContentFromCountry"/>
|
---|
273 | </gsf:when>
|
---|
274 | <gsf:otherwise>
|
---|
275 | <xsl:call-template name="documentContentEntry"/>
|
---|
276 | </gsf:otherwise>
|
---|
277 | </gsf:switch>
|
---|
278 |
|
---|
279 | </xsl:template>
|
---|
280 |
|
---|
281 | </xsl:stylesheet>
|
---|