File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 40
40
41
41
# define licenses
42
42
LICENSES = {
43
- "cc-by " : {
43
+ "CC-BY-4.0 " : {
44
44
"url" : "https://creativecommons.org/licenses/by/4.0/" ,
45
45
"text" : "This file is licensed under the terms of the Creative-Commons-License CC-BY 4.0." ,
46
46
},
47
- "cc0 " : {
47
+ "CC0-1.0 " : {
48
48
"url" : "https://creativecommons.org/publicdomain/zero/1.0/" ,
49
49
"text" : "This file has been marked as dedicated to the public domain." ,
50
50
},
@@ -165,7 +165,7 @@ def create_file_desc(self, project: configparser) -> None:
165
165
SubElement (tei_publication_stmt , "date" ).set ("when" , str (datetime .now ().isoformat ()))
166
166
availability = SubElement (tei_publication_stmt , "availability" )
167
167
tei_licence = SubElement (availability , "licence" )
168
- chosen_license = LICENSES .get (project .get ("Project" , "license" , fallback = "cc-by" ). lower ( ))
168
+ chosen_license = LICENSES .get (project .get ("Project" , "license" , fallback = "CC-BY-4.0" ))
169
169
tei_licence .set ("target" , chosen_license .get ("url" ))
170
170
tei_licence .text = chosen_license ["text" ]
171
171
@@ -541,7 +541,7 @@ def save_to_file(self, file_name: Path) -> None:
541
541
# set default values
542
542
config ["Project" ] = {"fileURL" : letters_csv .with_suffix (".xml" )}
543
543
if args .cc0 :
544
- config ["Project" ]["license" ] = "cc0 "
544
+ config ["Project" ]["license" ] = "CC0-1.0 "
545
545
546
546
INI_FILE = "csv2cmi.ini"
547
547
try :
You can’t perform that action at this time.
0 commit comments