File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2929 mediatypes .JSONLD ,
3030 # TODO: below are only for search/index-card views
3131 mediatypes .JSON ,
32- mediatypes .TAB_SEPARATED_VALUES ,
33- mediatypes .COMMA_SEPARATED_VALUES ,
32+ mediatypes .TSV ,
33+ mediatypes .CSV ,
3434)
3535
3636
Original file line number Diff line number Diff line change 66
77
88class TrovesearchSimpleCsvRenderer (TrovesearchSimpleTsvRenderer ):
9- MEDIATYPE = mediatypes .COMMA_SEPARATED_VALUES
9+ MEDIATYPE = mediatypes .CSV
1010 CSV_DIALECT = csv .excel
Original file line number Diff line number Diff line change 1818
1919
2020class TrovesearchSimpleTsvRenderer (SimpleTrovesearchRenderer ):
21- MEDIATYPE = mediatypes .TAB_SEPARATED_VALUES
21+ MEDIATYPE = mediatypes .TSV
2222 INDEXCARD_DERIVER_IRI = TROVE ['derive/osfmap_json' ]
2323 CSV_DIALECT : type [csv .Dialect ] = csv .excel_tab
2424
Original file line number Diff line number Diff line change 33JSONLD = 'application/ld+json'
44TURTLE = 'text/turtle'
55HTML = 'text/html'
6- TAB_SEPARATED_VALUES = 'text/tab-separated-values'
7- COMMA_SEPARATED_VALUES = 'text/csv'
6+ TSV = 'text/tab-separated-values'
7+ CSV = 'text/csv'
88
99
1010_file_extensions = {
1313 JSONLD : '.json' ,
1414 TURTLE : '.turtle' ,
1515 HTML : '.html' ,
16- TAB_SEPARATED_VALUES : '.tsv' ,
17- COMMA_SEPARATED_VALUES : '.csv' ,
16+ TSV : '.tsv' ,
17+ CSV : '.csv' ,
1818}
1919
2020
You can’t perform that action at this time.
0 commit comments