47 | | After editing, the new translated element is stored with: |
48 | | * an xsi:type= « gmd:PT_FreeText_PropertyType» |
49 | | * a first gco:CharacterString in the metadata language (in the example en) |
50 | | * n gmd:PT_FreeText elements with each translation |
| 40 | In view mode, according to GUI language : |
| 41 | * if GUI language is available in the metadata, the element is displayed in this language |
| 42 | * else the elemenet is displayed in metadata default language. |
52 | | {{{ |
53 | | <scope xsi:type="gmd:PT_FreeText_PropertyType"> |
54 | | <gco:CharacterString>Codelists for description of metadata datasets compliant with ISO/TC 211 19115:2003 and 19139</gco:CharacterString> |
55 | | <gmd:PT_FreeText> |
56 | | <gmd:textGroup> |
57 | | <gmd:LocalisedCharacterString locale="#FR ">Listes de codes pour la description de lots de métadonnées conforme ISO TC/211 19115:2003 et 19139</gmd:LocalisedCharacterString> |
58 | | </gmd:textGroup> |
59 | | </gmd:PT_FreeText> |
60 | | </scope> |
61 | | }}} |
62 | | |
63 | | |
64 | | |
65 | | SchemaLoader should be able to register complexType which are extension based on a PropertyType (and not only a Type). For example : |
66 | | {{{ |
67 | | <xs:complexType name="PT_FreeText_PropertyType"> |
68 | | <xs:complexContent> |
69 | | <xs:extension base="gco:CharacterString_PropertyType"> |
70 | | }}} |
71 | | |
72 | | Then the metadocument should add for all elements which are of type gco:CharacterString_PropertyType an xsi:type option with the list of type available. |
73 | | {{{ |
74 | | <xs:element name="title" type="gco:CharacterString_PropertyType"/> |
75 | | }}} |
76 | | |
77 | | |
78 | | For title which is a gco:CharacterString_PropertyType, xsi:type could be : |
79 | | * gco:CharacterString_PropertyType |
80 | | * gmd:PT_FreeText_PropertyType |
81 | | Then if an xsi:type="gmd:PT_FreeText_PropertyType" the element is edited in multilingual mode. |
82 | | |
83 | | In the editor any gco:CharacterString could be multilingual. The gco:CharacterString is in default language, the other PT_FreeText elements has to use a locale declared in the metadata document. |
84 | | |
85 | | ==== GUI ==== |
86 | | |
87 | | A list of all available languages is proposed to the user next to all gco:CharacterString elements. |
88 | | |
89 | | Label (?)* : _input_field_____ [Language selection list] |
90 | | |
91 | | The editor can switch to another language using the selection list and could add a new translation. |
92 | | |
| 44 | Then multilingual content need to be indexed in lucene. |
103 | | <gmd:title> |
104 | | <gco:CharacterString>TITLE |
105 | | <geonet:element ref="117" min="1" max="1"/> |
106 | | </gco:CharacterString> |
107 | | <geonet:element ref="116" min="1" max="1"/> |
108 | | <geonet:attribute name="gco:nilReason" add="true"/> |
109 | | </gmd:title> |
| 56 | <gmd:locale> |
| 57 | <gmd:PT_Locale id="FR"> |
| 58 | <gmd:languageCode><gmd:LanguageCode codeList="#LanguageCode" codeListValue="fra">French</gmd:LanguageCode></gmd:languageCode> |
| 59 | <gmd:characterEncoding><gmd:MD_CharacterSetCode codeList="#MD_CharacterSetCode" codeListValue="utf8">UTF 8</gmd:MD_CharacterSetCode></gmd:characterEncoding> |
| 60 | </gmd:PT_Locale> |
| 61 | </locale> |
| 62 | }}} |
| 63 | |
| 64 | After editing, the new translated element is stored with: |
| 65 | * an xsi:type= « gmd:PT_FreeText_PropertyType» |
| 66 | * a first gco:CharacterString in the metadata language (in the example "en") |
| 67 | * n gmd:PT_FreeText elements with each translation |
| 68 | {{{ |
| 69 | <scope xsi:type="gmd:PT_FreeText_PropertyType"> |
| 70 | <gco:CharacterString>Codelists for description of metadata datasets compliant with ISO/TC 211 19115:2003 and 19139</gco:CharacterString> |
| 71 | <gmd:PT_FreeText> |
| 72 | <gmd:textGroup> |
| 73 | <gmd:LocalisedCharacterString locale="#FR ">Listes de codes pour la description de lots de métadonnées conforme ISO TC/211 19115:2003 et 19139</gmd:LocalisedCharacterString> |
| 74 | </gmd:textGroup> |
| 75 | </gmd:PT_FreeText> |
| 76 | </scope> |