Skip to content

Commit

Permalink
Fix broken references.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-jung committed Oct 31, 2024
1 parent 43bf766 commit 715973f
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 18 deletions.
74 changes: 70 additions & 4 deletions Terminology_Termentry.framework
Original file line number Diff line number Diff line change
Expand Up @@ -5398,13 +5398,17 @@
</field>
<field name="argValues">
<serializableOrderedMap>
<entry>
<String>action</String>
<String>Replace</String>
</entry>
<entry>
<String>externalParams</String>
<String>new-element=fullForm</String>
</entry>
<entry>
<String>script</String>
<String>${framework}/framework/xsl/renameTermTypeElement.xsl</String>
<String>${framework}/frameworks/termentry/xsl/renameTermTypeElement.xsl</String>
</entry>
</serializableOrderedMap>
</field>
Expand Down Expand Up @@ -5470,7 +5474,7 @@
</entry>
<entry>
<String>script</String>
<String>${framework}/framework/xsl/renameTermTypeElement.xsl</String>
<String>${framework}/frameworks/termentry/xsl/renameTermTypeElement.xsl</String>
</entry>
</serializableOrderedMap>
</field>
Expand Down Expand Up @@ -5536,7 +5540,7 @@
</entry>
<entry>
<String>script</String>
<String>${framework}/framework/xsl/renameTermTypeElement.xsl</String>
<String>${framework}/frameworks/termentry/xsl/renameTermTypeElement.xsl</String>
</entry>
</serializableOrderedMap>
</field>
Expand Down Expand Up @@ -5602,7 +5606,7 @@
</entry>
<entry>
<String>script</String>
<String>${framework}/framework/xsl/renameTermTypeElement.xsl</String>
<String>${framework}/frameworks/termentry/xsl/renameTermTypeElement.xsl</String>
</entry>
</serializableOrderedMap>
</field>
Expand Down Expand Up @@ -7820,6 +7824,68 @@
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>authorExtensionDescriptor/actionDescriptors</String>
</field>
<field name="index">
<Integer>198</Integer>
</field>
<field name="value">
<action>
<field name="id">
<String>term.termnotation.delete</String>
</field>
<field name="name">
<String>${i18n(term.termnotation.delete)}</String>
</field>
<field name="description">
<String>${i18n(term.termnotation.delete_description)}</String>
</field>
<field name="largeIconPath">
<String>${framework}/frameworks/termentry/icons/delete-24.png</String>
</field>
<field name="smallIconPath">
<String>${framework}/frameworks/termentry/icons/delete-16.png</String>
</field>
<field name="accessKey">
<String></String>
</field>
<field name="accelerator">
<null/>
</field>
<field name="actionModes">
<actionMode-array>
<actionMode>
<field name="xpathCondition">
<String>self::*[contains(@class, ' termentry/termNotation ')][1]</String>
</field>
<field name="argValues">
<serializableOrderedMap>
<entry>
<String>elementLocation</String>
<String>.</String>
</entry>
</serializableOrderedMap>
</field>
<field name="operationID">
<String>ro.sync.ecss.extensions.commons.operations.DeleteElementOperation</String>
</field>
</actionMode>
</actionMode-array>
</field>
<field name="enabledInReadOnlyContext">
<Boolean>false</Boolean>
</field>
</action>
</field>
<field name="patchHandling">
<String>addIndex</String>
</field>
<field name="anchor">
<null/>
</field>
</poPatch>
<poPatch>
<field name="fieldPath">
<String>authorExtensionDescriptor/menubarDescriptor/label</String>
Expand Down
3 changes: 2 additions & 1 deletion frameworks/termentry/css/termentry.css
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,11 @@
oxy_action(id, 'term.fullForm.add'),
oxy_action(id, 'term.verb.add'),
oxy_action(id, 'term.term-domains.add'),
oxy_action(id, 'term.fullForm.renameTo'),
oxy_action(id, 'term.abbreviation.renameTo'),
oxy_action(id, 'term.acronym.renameTo'),
oxy_action(id, 'term.verb.renameTo'),
oxy_action(id, 'term.fullForm.delete')
oxy_action(id, 'term.termNotation.delete')
)
)
" "
Expand Down
33 changes: 23 additions & 10 deletions frameworks/termentry/i18n/translation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -518,23 +518,31 @@
</key>

<!-- term-domains -->
<key value="term.term-domains">
<key value="term.termdomains">
<val lang="en_US">Term Domains</val>
<val lang="de_DE">Term-Domänen</val>
</key>
<key value="term.term-domains.add">
<key value="term.domains.add">
<val lang="en_US">Add Domains</val>
<val lang="de_DE">Domänen einfügen</val>
</key>
<key value="term.term-domains.add_description">
<key value="term.termdomain">
<val lang="en_US">Term Domain</val>
<val lang="de_DE">Term-Domäne</val>
</key>
<key value="term.termdomain.add">
<val lang="en_US">Add new term domain</val>
<val lang="de_DE">Neue Term-Domäne einfügen</val>
</key>
<key value="term.termdomains.add_description">
<val lang="en_US">Add Domains</val>
<val lang="de_DE">Domänen einfügen</val>
</key>
<key value="term.term-domains.delete">
<key value="term.termdomains.delete">
<val lang="en_US">Delete Domains</val>
<val lang="de_DE">Domänen löschen</val>
</key>
<key value="term.term-domains.delete_description">
<key value="term.termdomains.delete_description">
<val lang="en_US">Delete Domains</val>
<val lang="de_DE">Domänen löschen</val>
</key>
Expand Down Expand Up @@ -582,6 +590,16 @@
<val lang="en_US">Delete Domain</val>
<val lang="de_DE">Domäne löschen</val>
</key>

<!-- termNotation -->
<key value="term.termNotation.delete">
<val lang="en_US">Delete term</val>
<val lang="de_DE">Term löschen</val>
</key>
<key value="term.termNotation.delete_description">
<val lang="en_US">Delete term</val>
<val lang="de_DE">Term löschen</val>
</key>

<!-- fullForm -->
<key value="term.fullForm.add">
Expand Down Expand Up @@ -1122,7 +1140,6 @@
<val lang="en_US">Delete links to related terms</val>
<val lang="de_DE">Links auf verwandte Begriffe löschen</val>
</key>

<key value="term.termVariant">
<val lang="en_US">Term</val>
<val lang="de_DE">Term</val>
Expand Down Expand Up @@ -1207,10 +1224,6 @@
<val lang="en_US">Developed by</val>
<val lang="de_DE">Entwickelt von</val>
</key>
<key value="term.termdomain">
<val lang="en_US">Term Domain</val>
<val lang="de_DE">Term Domain</val>
</key>

<!-- General Descriptions -->
<key value="term.renameTo_description">
Expand Down
10 changes: 7 additions & 3 deletions frameworks/termentry/xsl/renameTermTypeElement.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs">


<!-- Name of the new element -->
<xsl:param name="new-element" as="xs:string"/>

<!-- Identity template -->
<xsl:template match="@*|node()">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
<xsl:apply-templates select="@* | node()" />
</xsl:copy>
</xsl:template>

<xsl:template match="@class"/>
<xsl:template match="processing-instruction()"/>

<!-- Renaming template -->
<xsl:template match="abbreviation | acronym | fullForm | verb">
<xsl:element name="{$new-element}">
<xsl:apply-templates select="@*|node()" />
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>

Expand Down

0 comments on commit 715973f

Please sign in to comment.