From be0acbea0e6512ff6ad69c2f4e1bb79671a56ca3 Mon Sep 17 00:00:00 2001 From: dbs Date: Sat, 7 Mar 2009 01:57:15 +0000 Subject: [PATCH] Add support for returning records in Federal Geographic Data Committee (FGDC) Content Standard for Digital Geospatial Metadata (CSDGM) format. MARC21slim2FGDC.xsl was retrieved from http://oregonstate.edu/~reeset/marcedit/xslt/MARC21slim2FGDC.xsl and (as the comments in the stylesheet indicate) is available under a CC0 license. git-svn-id: svn://svn.open-ils.org/ILS/trunk@12461 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/OpenILS/Application/SuperCat.pm | 12 + Open-ILS/xsl/MARC21slim2FGDC.xsl | 737 +++++++++++++++++++++ 2 files changed, 749 insertions(+) create mode 100644 Open-ILS/xsl/MARC21slim2FGDC.xsl diff --git a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm index 94f73dd6d3..2ad73bb076 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/SuperCat.pm @@ -143,6 +143,18 @@ sub child_init { # and stash a transformer $record_xslt{rss2}{xslt} = $_xslt->parse_stylesheet( $rss_xslt ); + # parse the FGDC xslt ... + my $fgdc_xslt = $_parser->parse_file( + OpenSRF::Utils::SettingsClient + ->new + ->config_value( dirs => 'xsl' ). + "/MARC21slim2FGDC.xsl" + ); + # and stash a transformer + $record_xslt{fgdc}{xslt} = $_xslt->parse_stylesheet( $fgdc_xslt ); + $record_xslt{fgdc}{docs} = 'http://www.fgdc.gov/metadata/csdgm/index_html'; + $record_xslt{fgdc}{schema_location} = 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.xsd'; + register_record_transforms(); return 1; diff --git a/Open-ILS/xsl/MARC21slim2FGDC.xsl b/Open-ILS/xsl/MARC21slim2FGDC.xsl new file mode 100644 index 0000000000..a8a0288412 --- /dev/null +++ b/Open-ILS/xsl/MARC21slim2FGDC.xsl @@ -0,0 +1,737 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="marc:datafield[@tag=245]/marc:subfield[@code='a']" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1927 + + + + + + 1983 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + +
+
+ + +
+ + + +
+
+ -- 2.11.0