diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-28 09:45:59 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-28 09:45:59 +0100 |
commit | dc324de18fa24d8525cfcb7d7de7d1b9efa1eeb8 (patch) | |
tree | 9f32771fcef8441bef46c6732ae20266acd20687 /import_filters | |
parent | beac2636e1dafd26980c6bf3d8f1ccdd1f576e97 (diff) | |
download | Chimère - projet Saclay-dc324de18fa24d8525cfcb7d7de7d1b9efa1eeb8.tar.bz2 Chimère - projet Saclay-dc324de18fa24d8525cfcb7d7de7d1b9efa1eeb8.zip |
Ajout de la configuration d'Orsay
Diffstat (limited to 'import_filters')
-rw-r--r-- | import_filters/guyancourt.xslt | 18 | ||||
-rw-r--r-- | import_filters/magny-les-hameaux.xslt | 21 | ||||
-rw-r--r-- | import_filters/orsay.json | 1 | ||||
-rw-r--r-- | import_filters/villiers-le-bacle-detail.xslt | 19 | ||||
-rw-r--r-- | import_filters/villiers-le-bacle.xslt | 17 |
5 files changed, 76 insertions, 0 deletions
diff --git a/import_filters/guyancourt.xslt b/import_filters/guyancourt.xslt new file mode 100644 index 0000000..cebed26 --- /dev/null +++ b/import_filters/guyancourt.xslt @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + <xsl:template match="/"> + <items> + <xsl:for-each select="/nodes/node"> + <item> + <name>Ville de Guyancourt : <xsl:value-of select="Titre"/></name> + <link><xsl:value-of select="Lien"/></link> + <description><xsl:value-of select="Corps"/></description> + <date><xsl:value-of select="Date"/></date> + <key>guyancourt-<xsl:value-of select="Titre"/><xsl:value-of select="Date"/></key> + </item> + </xsl:for-each> + </items> + </xsl:template> +</xsl:stylesheet> + diff --git a/import_filters/magny-les-hameaux.xslt b/import_filters/magny-les-hameaux.xslt new file mode 100644 index 0000000..3cb3786 --- /dev/null +++ b/import_filters/magny-les-hameaux.xslt @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + <xsl:template match="/"> + <items> + <xsl:for-each select="/nodes/node"> + <item> + <date><xsl:value-of select="date"/></date> + <name>Magny-les-Hameaux : <xsl:value-of select="titre"/></name> + <category><xsl:value-of select="tiquette"/></category> + <link><xsl:value-of select="lien"/></link> + <description><xsl:value-of select="corps"/></description> + <key>magny-les-hameaux-<xsl:value-of select="titre"/>-<xsl:value-of select="date"/></key> + <lat><xsl:value-of select="latitude"/></lat> + <lon><xsl:value-of select="longitude"/></lon> + </item> + </xsl:for-each> + </items> + </xsl:template> +</xsl:stylesheet> + diff --git a/import_filters/orsay.json b/import_filters/orsay.json new file mode 100644 index 0000000..49df32f --- /dev/null +++ b/import_filters/orsay.json @@ -0,0 +1 @@ +{"title":"name", "id_agenda":"id", "content":"description", "date_start_evt":"start_date", "date_end_evt":"end_date", "adresse_localisation":"description", "prefix_name":"Orsay :"} diff --git a/import_filters/villiers-le-bacle-detail.xslt b/import_filters/villiers-le-bacle-detail.xslt new file mode 100644 index 0000000..9dc757d --- /dev/null +++ b/import_filters/villiers-le-bacle-detail.xslt @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + <xsl:template match="/"> + <items> + <xsl:for-each select="/html/body/div[@id='container']/table[@id='mainpage']/tr/td[@class='centre']/div"> + <item> + <description> + <xsl:copy-of select="div/p[@class='soustitre']"/> + <xsl:if test="div[@id='documents_joints']/ul"> + <xsl:copy-of select="div[@id='documents_joints']/ul"/> + </xsl:if> + </description> + </item> + </xsl:for-each> + </items> + </xsl:template> +</xsl:stylesheet> + diff --git a/import_filters/villiers-le-bacle.xslt b/import_filters/villiers-le-bacle.xslt new file mode 100644 index 0000000..1c33955 --- /dev/null +++ b/import_filters/villiers-le-bacle.xslt @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + <xsl:template match="/"> + <items> + <xsl:for-each select="/html/body/div[@id='agenda']/ul/li"> + <item> + <date><xsl:value-of select="div[@class='ag-date']"/></date> + <name>Villiers-le-bâcle : <xsl:value-of select="div[@class='titre']/a"/></name> + <link><xsl:value-of select="div[@class='titre']/a/@href"/></link> + <key>villiers-le-bacle-<xsl:value-of select="div[@class='titre']/a/@href"/></key> + </item> + </xsl:for-each> + </items> + </xsl:template> +</xsl:stylesheet> + |