Changeset 2078


Ignore:
Timestamp:
08/14/12 11:23:46 (12 years ago)
Author:
sanmai
Message:
  • Fix lrt2cmdi.py output.
  • (Some small changes to filter_tools_csv.R seem to not have been

committed.)

Location:
metadata/trunk/toolkit/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/scripts/cmdi-lrt-template.xml

    r2063 r2078  
    5454            </LrtIPR>
    5555               
     56            <tags/>
     57
    5658        </LrtInventoryResource>
    5759
    58         <tags/>
    5960    </Components>
    6061</CMD>
  • metadata/trunk/toolkit/scripts/filter_tools_csv.R

    r2063 r2078  
    77checks_output_table <- read.table("/tmp/output.tab", sep = '\t', check.names = FALSE, header = TRUE);
    88colnames(checks_output_table) <- paste(colnames(checks_output_table), "check");
     9
     10tools_registry <- tools_registry[, -1 * which(colnames(tools_registry) == "URL check result (field_tool_urlcheck)")];
    911
    1012records_to_be_kept      <- subset(checks_output_table, `Reference link (field_tool_reference_link) check` != "unspecified");
     
    2224
    2325write.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);
    2830
    2931
     
    3335links_specified_table                           <- cbind(tools_registry[row.names(records_relevant_links_specified),], records_relevant_links_specified);
    3436write.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);
    3941
    4042
     
    4446links_work_table                                        <- cbind(tools_registry[row.names(records_relevant_links_work),], records_relevant_links_work);
    4547write.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);
    5252
    5353URLs                            <- tools_registry[row.names(records_problematic),17]
  • metadata/trunk/toolkit/scripts/lrt2cmdi.py

    r2063 r2078  
    223223
    224224            for tag in tags :
    225                 tag_XML_element         = ElementTree.Element('Tag')
     225                tag_XML_element         = ElementTree.Element('tag')
    226226                tag_XML_element.text    = tag
    227227                tags_XML_element.append(tag_XML_element)
Note: See TracChangeset for help on using the changeset viewer.