Changeset 2041


Ignore:
Timestamp:
07/19/12 14:54:26 (12 years ago)
Author:
sanmai
Message:
  • Retrieve KMZL file as well.
  • Move input data directory out of repository and rename it to
Location:
CLARIN_KML
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • CLARIN_KML/exec/XMLdb_to_KML.xsl

    r2040 r2041  
    2626                            <!-- <img src="about:blank" /> -->
    2727                            <h2>Member information</h2>
    28                             <table border="1" align="left">
     28                            <table border="1" style="float:none; text-align:left" cellpadding="10px">
    2929                                    <tr>
    3030                                        <th>name</th>
     
    4747                                        <td><xsl:value-of select="City"/></td>
    4848                                    </tr>
     49                                    <xsl:variable name="website_URL" select='normalize-space(Website_)'/>
     50                                    <xsl:if test="$website_URL != ''">
    4951                                    <tr>
    5052                                        <th>website</th>
    51                                         <td><a href="{normalize-space(Website_)}"/></td>
     53                                        <td><a href="{$website_URL}"><xsl:value-of select="$website_URL"/></a></td>
    5254                                    </tr>
     55                                    </xsl:if>
    5356                                </table>
    5457
    5558                            <xsl:if test="normalize-space(Expertise) != ''">
    5659                            <br />
    57                             <br />
    5860                            <h2>Expertise</h2>
    5961                                <p><xsl:value-of select="Expertise"/></p>
    60                             </xsl:if>                           
    61                            
    62                             <br />
     62                            </xsl:if>               
     63
    6364                            <br />
    6465                            <h2>Contact details</h2>
    65                             <table border="1" align="left" >
     66                            <table border="1" style="float:none; text-align:left; border-style:inset; border-spacing: 0px" cellpadding="5px">
    6667                                <tr>
    6768                                    <th>Contact person</th>
  • CLARIN_KML/exec/generate_CLARIN_KMZ.sh

    r2040 r2041  
    2525
    2626CSV_file_URL='http://www.clarin.eu/export_organisations_coordinates';
     27original_KMZ_file_URL='http://www.mpi.nl/DOBES/dobesmap/language_sites.kmz';
    2728
    2829ROOT_directory_path="$(robust_directory_of_origin)/../"; # "$(realpath $(dirname ..) )/"; # X- $0
    29 INPUT_directory_path="${ROOT_directory_path}/input/";
     30INPUT_directory_path="${ROOT_directory_path}/.input/";
    3031EXEC_directory_path="${ROOT_directory_path}/exec/";
    3132OUTPUT_directory_path="${ROOT_directory_path}/.output/";
     
    5657echo "Saxon JAR: ${SAXON_JAR_file_path}";
    5758
     59mkdir "${INPUT_directory_path}" 2> '/dev/null';
    5860mkdir "${OUTPUT_directory_path}" 2> '/dev/null';
    5961
     
    6466then
    6567        echo "ERROR: the download of the CSV file failed!";
     68        exit 1;
     69fi
     70
     71echo -e "\n\n${bold}Downloading original KMZ file from "${original_KMZ_file_URL}" to "${original_KMZ_file_URL}" ...${normal}";
     72wget -O - "${original_KMZ_file_URL}" > "${KMZ_original_file_path}";
     73
     74if [ $? -ne 0 ]
     75then
     76        echo "ERROR: the download of the original KMZ file failed!";
    6677        exit 1;
    6778fi
Note: See TracChangeset for help on using the changeset viewer.