Skip to content

Commit 7d1dd65

Browse files
committed
Create Markdown Readme instead
1 parent 02a08ba commit 7d1dd65

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

dvcurator/assets/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# $title
2+
3+
## Suggested Citation
4+
Please cite any data used from this data project as follows:
5+
6+
$citation
7+
8+
## Description
9+
$description
10+
11+
## File Access
12+
$access
13+
14+
## Included Files
15+
This collection contains the following $any_folders:
16+
17+
$files
18+
19+
## Data Processing Note
20+
21+
The data were processed according to the Qualitative Data Repository's curation policy. All files were checked for integrity. Files were checked to make sure they match documentation and consistent file names were applied. PDF files were converted to PDF/A using Adobe Acrobat Pro DC Version 2022.001.20117, XMP tags edited using pikepdf, and enhanced for WCAG accessibility compliance.
22+
23+
[edit data processing note according to processing steps, note everything we did with the data -- e.g., add notes on de-identification (2.3.1.), copyright (2.3.2.), and other file conversions (2.4.) -- and update software versions as necessary]
24+
25+
-------
26+
27+
These data were obtained from the Qualitative Data Repository (QDR - http://qdr.syr.edu), a dedicated archive for storing and sharing digital data (and accompanying documentation) generated or collected through qualitative and multi-method research in the social sciences. QDR is supported by the National Science Foundation. Please consult QDR's General Terms and Conditions of Use (https://qdr.syr.edu/termsandconditions).

dvcurator/readme.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def clean_html_tags(text):
1515

1616
def generate_readme(metadata, folder, token=None):
1717
"""
18-
Generate README.txt file.
18+
Generate README.md file.
1919
2020
This function uses the template assets/README.txt
2121
@@ -36,7 +36,7 @@ def generate_readme(metadata, folder, token=None):
3636
citation = dvcurator.dataverse.get_citation(metadata)
3737
folder = dvcurator.fs.current_step(folder)
3838

39-
readme_name = "README_" + dvcurator.rename.last_name_prefix(citation) + ".txt"
39+
readme_name = "README_" + dvcurator.rename.last_name_prefix(citation) + ".md"
4040
readme_name = unicodedata.normalize('NFKD', readme_name).encode('ascii', 'ignore').decode('ascii')
4141
new_path = os.path.join(folder, "..", readme_name)
4242
if os.path.exists(new_path):
@@ -80,9 +80,9 @@ def generate_readme(metadata, folder, token=None):
8080

8181
# the location of the template differs if this is a compiled pyinstaller file or run directly
8282
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
83-
path = os.path.join(sys._MEIPASS, "assets", "README.txt")
83+
path = os.path.join(sys._MEIPASS, "assets", "README.md")
8484
else:
85-
path = resource_filename("dvcurator", "assets/README.txt")
85+
path = resource_filename("dvcurator", "assets/README.md")
8686

8787
# write the actual file
8888
with open(path, 'r') as f:

0 commit comments

Comments
 (0)