1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- See korero-maori-asr/README.md -->
|
---|
3 |
|
---|
4 | <xsl:stylesheet version="1.0"
|
---|
5 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
6 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
7 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
8 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
9 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
10 | xmlns:v-bind="http://vuejs.org"
|
---|
11 | xmlns:v-on="http://vuejs.org"
|
---|
12 | extension-element-prefixes="java util"
|
---|
13 | exclude-result-prefixes="java util">
|
---|
14 |
|
---|
15 | <!-- use the 'main' layout -->
|
---|
16 | <xsl:import href="layouts/main.xsl"/>
|
---|
17 |
|
---|
18 | <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
|
---|
19 | <!-- set page title -->
|
---|
20 | <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
|
---|
21 |
|
---|
22 | <!-- set page breadcrumbs -->
|
---|
23 | <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/>
|
---|
24 | <xsl:if test="$groupPath != ''">
|
---|
25 | <xsl:for-each select="/page/pageResponse/pathList/group">
|
---|
26 | <xsl:sort data-type="number" select="@position" />
|
---|
27 | <a>
|
---|
28 | <xsl:attribute name="href"><gslib:groupHref path="{@path}"/></xsl:attribute>
|
---|
29 | <xsl:attribute name="title"><gslib:groupName path="{@path}"/></xsl:attribute>
|
---|
30 | <gslib:groupName path="{@path}" />
|
---|
31 | </a>
|
---|
32 | <gslib:rightArrow/>
|
---|
33 | </xsl:for-each>
|
---|
34 | </xsl:if>
|
---|
35 | </xsl:template>
|
---|
36 |
|
---|
37 | <!-- the page content -->
|
---|
38 | <xsl:template match="/page">
|
---|
39 | <xsl:call-template name="audio-transcription" />
|
---|
40 | </xsl:template>
|
---|
41 |
|
---|
42 | <!-- Template for processing audio file uploads -->
|
---|
43 | <xsl:template name="audio-transcription">
|
---|
44 | <link rel="icon" href="interfaces/{$interface_name}/korero-maori-asr/dist/favicon.ico" />
|
---|
45 | <link href="interfaces/{$interface_name}/korero-maori-asr/dist/css/app.css" rel="preload" as="style" />
|
---|
46 | <link href="interfaces/{$interface_name}/korero-maori-asr/dist/js/app.js" rel="preload" as="script" />
|
---|
47 | <link href="interfaces/{$interface_name}/korero-maori-asr/dist/js/chunk-vendors.js" rel="preload" as="script" />
|
---|
48 | <link href="interfaces/{$interface_name}/korero-maori-asr/dist/css/app.css" rel="stylesheet" />
|
---|
49 |
|
---|
50 | <noscript>
|
---|
51 | <strong>We're sorry but the Korero Maori ASR interface doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
---|
52 | </noscript>
|
---|
53 |
|
---|
54 | <div id="app"></div>
|
---|
55 | <!-- built files will be auto injected -->
|
---|
56 |
|
---|
57 | <gslib:langfrag name="atea" />
|
---|
58 | <gsf:script src="interfaces/{$interface_name}/korero-maori-asr/dist/js/chunk-vendors.js"></gsf:script>
|
---|
59 | <gsf:script src="interfaces/{$interface_name}/korero-maori-asr/dist/js/app.js"></gsf:script>
|
---|
60 | </xsl:template>
|
---|
61 |
|
---|
62 | </xsl:stylesheet>
|
---|