Commit d0a755b4 authored by Dennis Neumann's avatar Dennis Neumann
Browse files

Rename licence to license

parent 135ba92c
......@@ -163,7 +163,7 @@ Refer to comments in the code to understand the used algorithm.
</xsl:template>
<xsl:template match="licence">
<field name="licence">
<field name="license">
<xsl:value-of select="text()" />
</field>
</xsl:template>
......
......@@ -36,10 +36,10 @@ public class XsltTest {
}
@Test
public void licence() throws Exception {
public void license() throws Exception {
String result = transform("licence.xml");
assertXpathEvaluatesTo("CC BY-NC-SA-4.0", "//field[@name='licence']", result);
assertXpathEvaluatesTo("CC BY-NC-SA-4.0", "//field[@name='license']", result);
}
@Test
......
......@@ -57,7 +57,7 @@
<!-- for doctype 'article' -->
<field name="number_of_pages" type="int" />
<field name="language" type="string" multiValued="true" />
<field name="licence" type="string" />
<field name="license" type="string" />
<field name="fulltext" type="text_de" multiValued="false" />
<field name="fulltext_html" type="text_de" multiValued="false" />
<field name="short_title" type="text_de" multiValued="false" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment