| 1 | = Add a CSV export option in search results = |
| 2 | |
| 3 | || '''Date''' || 2010/03/01 || |
| 4 | || '''Contact(s)''' || Francois || |
| 5 | || '''Last edited''' || [[Timestamp]] || |
| 6 | || '''Status''' || Draft || |
| 7 | || '''Assigned to release''' || 2.5 || |
| 8 | || '''Resources''' || GéoSource [BRGM] || |
| 9 | || '''Ticket''' || || |
| 10 | |
| 11 | == Overview == |
| 12 | CSV search results export. |
| 13 | |
| 14 | |
| 15 | [[Image(csv-gui.png)]] |
| 16 | |
| 17 | |
| 18 | Default formatting will be column header + all tags. |
| 19 | Sort order is schema based due to formatting which |
| 20 | could be different according to schema. |
| 21 | |
| 22 | |
| 23 | [[Image(csv.png)]] |
| 24 | |
| 25 | In order to override default formatting, create a template |
| 26 | with mode="csv" in the metadata-schema.xsl matching the root |
| 27 | element in order to create a one level tree structure : |
| 28 | |
| 29 | Example to export only title from ISO19139 records. |
| 30 | {{{ |
| 31 | <xsl:template match="gmd:MD_Metadata" mode="csv"> |
| 32 | <xsl:param name="internalSep"/> |
| 33 | |
| 34 | <metadata> |
| 35 | <xsl:copy-of select="geonet:info"/> |
| 36 | |
| 37 | <xsl:copy-of select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title"/> |
| 38 | ... |
| 39 | </metadata> |
| 40 | </xsl:template> |
| 41 | |
| 42 | }}} |
| 43 | |
| 44 | The internal separator is used to join multiple objects in one |
| 45 | columns (eg. keywords will be keyword1###keyword2... and could be explode |
| 46 | if needed in a spreadsheet). |
| 47 | |
| 48 | === Proposal Type === |
| 49 | * '''Type''': Search |
| 50 | * '''App''': !GeoNetwork |
| 51 | * '''Module''': GUI |
| 52 | |
| 53 | === Links === |
| 54 | |
| 55 | * '''Email discussions''': |
| 56 | * '''IRC discussions''': |
| 57 | |
| 58 | === Voting History === |
| 59 | * Vote proposed the 02/03/2010 by Francois |
| 60 | |
| 61 | == Motivations == |
| 62 | * Useful to get main metadata informations in a spreadsheet for quick analysis & statistics |
| 63 | |
| 64 | == Risks == |
| 65 | |
| 66 | == Participants == |
| 67 | * Francois & Mathieu |