Changeset 2078
- Timestamp:
- 08/14/12 11:23:46 (12 years ago)
- Location:
- metadata/trunk/toolkit/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
metadata/trunk/toolkit/scripts/cmdi-lrt-template.xml
r2063 r2078 54 54 </LrtIPR> 55 55 56 <tags/> 57 56 58 </LrtInventoryResource> 57 59 58 <tags/>59 60 </Components> 60 61 </CMD> -
metadata/trunk/toolkit/scripts/filter_tools_csv.R
r2063 r2078 7 7 checks_output_table <- read.table("/tmp/output.tab", sep = '\t', check.names = FALSE, header = TRUE); 8 8 colnames(checks_output_table) <- paste(colnames(checks_output_table), "check"); 9 10 tools_registry <- tools_registry[, -1 * which(colnames(tools_registry) == "URL check result (field_tool_urlcheck)")]; 9 11 10 12 records_to_be_kept <- subset(checks_output_table, `Reference link (field_tool_reference_link) check` != "unspecified"); … … 22 24 23 25 write.table(complete_extended_table, 24 file = "/run/media/sanmai/SAMSUNG/3,MPI/export_tools__complete_extended__7-8-2012.csv",25 sep = ',',26 row.names = FALSE,27 col.names = TRUE);26 file = "/tmp/export_tools__complete_extended__7-8-2012.csv", 27 sep = ',', 28 row.names = FALSE, 29 col.names = TRUE); 28 30 29 31 … … 33 35 links_specified_table <- cbind(tools_registry[row.names(records_relevant_links_specified),], records_relevant_links_specified); 34 36 write.table(links_specified_table, 35 file = "/run/media/sanmai/SAMSUNG/3,MPI/export_tools__relevant_links_specified__7-8-2012.csv",36 sep = ',',37 row.names = FALSE,38 col.names = TRUE);37 file = "/tmp/export_tools__relevant_links_specified__7-8-2012.csv", 38 sep = ',', 39 row.names = FALSE, 40 col.names = TRUE); 39 41 40 42 … … 44 46 links_work_table <- cbind(tools_registry[row.names(records_relevant_links_work),], records_relevant_links_work); 45 47 write.table(links_work_table, 46 file = "/run/media/sanmai/SAMSUNG/3,MPI/export_tools__relevant_links_work__7-8-2012.csv", 47 sep = ',', 48 row.names = FALSE, 49 col.names = TRUE); 50 51 48 file = "/tmp/export_tools__relevant_links_work__7-8-2012.csv", 49 sep = ',', 50 row.names = FALSE, 51 col.names = TRUE); 52 52 53 53 URLs <- tools_registry[row.names(records_problematic),17] -
metadata/trunk/toolkit/scripts/lrt2cmdi.py
r2063 r2078 223 223 224 224 for tag in tags : 225 tag_XML_element = ElementTree.Element(' Tag')225 tag_XML_element = ElementTree.Element('tag') 226 226 tag_XML_element.text = tag 227 227 tags_XML_element.append(tag_XML_element)
Note: See TracChangeset
for help on using the changeset viewer.