geohydra 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +23 -0
- data/.gitmodules +3 -0
- data/.travis.yml +7 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +281 -0
- data/LICENSE +14 -0
- data/README.md +187 -0
- data/Rakefile +34 -0
- data/VERSION +1 -0
- data/bin/accession.rb +109 -0
- data/bin/assemble.rb +307 -0
- data/bin/assemble_data.rb +66 -0
- data/bin/assemble_placenames.rb +110 -0
- data/bin/build_stage_options.rb +27 -0
- data/bin/derive_wgs84.rb +85 -0
- data/bin/extract_thumbnail.rb +49 -0
- data/bin/geohydra +11 -0
- data/bin/ingest_arcgis.rb +77 -0
- data/bin/ingest_tufts.rb +71 -0
- data/bin/loader.rb +296 -0
- data/bin/loader_postgis.rb +259 -0
- data/bin/seed.rb +78 -0
- data/bin/solr_indexer.rb +41 -0
- data/bin/sync_geoserver_metadata.rb +168 -0
- data/bin/validate_data.rb +59 -0
- data/config/.gitignore +1 -0
- data/config/boot.rb +17 -0
- data/config/database.yml +29 -0
- data/config/environments/.gitignore +8 -0
- data/config/environments/.gitkeep +0 -0
- data/config/environments/example.rb +85 -0
- data/config/environments/example_rgeoserver.yml +16 -0
- data/config/migrate.rb +11 -0
- data/geohydra.gemspec +49 -0
- data/lib/geohydra.rb +11 -0
- data/lib/geohydra/accession.rb +291 -0
- data/lib/geohydra/arcgis_to_iso19139_fc.xsl +364 -0
- data/lib/geohydra/gazetteer.csv +36 -0
- data/lib/geohydra/gazetteer.rb +73 -0
- data/lib/geohydra/geonetwork.rb +156 -0
- data/lib/geohydra/mods2ogp.xsl +198 -0
- data/lib/geohydra/ogpcleanup.xsl +28 -0
- data/lib/geohydra/solr.rb +49 -0
- data/lib/geohydra/transform.rb +175 -0
- data/lib/geohydra/utils.rb +19 -0
- data/lib/geohydra/version.rb +3 -0
- data/scripts/correct_collections.rb +93 -0
- data/scripts/dbfdump.rb +13 -0
- data/scripts/extract.xsl +35 -0
- data/scripts/geoserver_createdb.sh +6 -0
- data/scripts/geoserver_createdb.sql +29 -0
- data/scripts/geowebcache_tops.rb +22 -0
- data/scripts/ingest_mods.rb +23 -0
- data/scripts/iso2html/displayElement.xsl +52 -0
- data/scripts/iso2html/elements-ISO.xml +665 -0
- data/scripts/iso2html/headers-ISO.xml +16 -0
- data/scripts/iso2html/printFormatted.xsl +227 -0
- data/scripts/iso2html/printtextlines.xsl +171 -0
- data/scripts/iso2html/xml-to-html-ISO.xsl +273 -0
- data/scripts/iso2html/xml-to-text-ISO.xsl +148 -0
- data/scripts/load_stage_data.rb +13 -0
- data/scripts/nextgis_iso19115.xsl +553 -0
- data/scripts/replicate_db.sh +7 -0
- data/scripts/report_stage.rb +5 -0
- data/solr/dev.html +19 -0
- data/solr/dlss-dev-drh-geo/conf/schema.xml +54 -0
- data/solr/dlss-dev-drh-geo/conf/solrconfig.xml +156 -0
- data/solr/dlss-dev-drh-geo/deploy.sh +15 -0
- data/solr/dlss-dev-drh-geo/example_doc.xml +25 -0
- data/solr/dlss-dev-drh-geo/test.sh +14 -0
- data/solr/ogp-dev/conf/admin-extra.html +24 -0
- data/solr/ogp-dev/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp-dev/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp-dev/conf/currency.xml +67 -0
- data/solr/ogp-dev/conf/elevate.xml +38 -0
- data/solr/ogp-dev/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp-dev/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp-dev/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp-dev/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp-dev/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp-dev/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp-dev/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp-dev/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp-dev/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp-dev/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp-dev/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp-dev/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp-dev/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp-dev/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp-dev/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp-dev/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp-dev/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp-dev/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp-dev/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp-dev/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp-dev/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp-dev/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp-dev/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp-dev/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp-dev/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp-dev/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp-dev/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp-dev/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp-dev/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp-dev/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp-dev/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp-dev/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp-dev/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp-dev/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp-dev/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp-dev/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp-dev/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp-dev/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp-dev/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp-dev/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp-dev/conf/protwords.txt +21 -0
- data/solr/ogp-dev/conf/schema.xml +1362 -0
- data/solr/ogp-dev/conf/scripts.conf +24 -0
- data/solr/ogp-dev/conf/solrconfig.xml +1816 -0
- data/solr/ogp-dev/conf/spellings.txt +2 -0
- data/solr/ogp-dev/conf/stopwords.txt +14 -0
- data/solr/ogp-dev/conf/synonyms.txt +29 -0
- data/solr/ogp-dev/conf/synonymsIso.txt +158 -0
- data/solr/ogp-dev/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp-dev/conf/synonymsState.txt +105 -0
- data/solr/ogp-dev/conf/update-script.js +53 -0
- data/solr/ogp-dev/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp-dev/conf/velocity/browse.vm +50 -0
- data/solr/ogp-dev/conf/velocity/cluster.vm +9 -0
- data/solr/ogp-dev/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp-dev/conf/velocity/debug.vm +17 -0
- data/solr/ogp-dev/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp-dev/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp-dev/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp-dev/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp-dev/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp-dev/conf/velocity/facets.vm +5 -0
- data/solr/ogp-dev/conf/velocity/footer.vm +17 -0
- data/solr/ogp-dev/conf/velocity/head.vm +32 -0
- data/solr/ogp-dev/conf/velocity/header.vm +3 -0
- data/solr/ogp-dev/conf/velocity/hit.vm +11 -0
- data/solr/ogp-dev/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp-dev/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp-dev/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp-dev/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp-dev/conf/velocity/layout.vm +20 -0
- data/solr/ogp-dev/conf/velocity/main.css +208 -0
- data/solr/ogp-dev/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp-dev/conf/velocity/query.vm +42 -0
- data/solr/ogp-dev/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp-dev/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp-dev/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp-dev/conf/velocity/suggest.vm +3 -0
- data/solr/ogp-dev/conf/velocity/tabs.vm +6 -0
- data/solr/ogp-dev/conf/xslt/example.xsl +132 -0
- data/solr/ogp-dev/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp-dev/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp-dev/conf/xslt/luke.xsl +337 -0
- data/solr/ogp-dev/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp-dev/deploy.sh +15 -0
- data/solr/ogp-dev/purge.sh +9 -0
- data/solr/ogp-dev/upload.sh +17 -0
- data/solr/ogp-test/conf/admin-extra.html +24 -0
- data/solr/ogp-test/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp-test/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp-test/conf/currency.xml +67 -0
- data/solr/ogp-test/conf/elevate.xml +38 -0
- data/solr/ogp-test/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp-test/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp-test/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp-test/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp-test/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp-test/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp-test/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp-test/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp-test/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp-test/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp-test/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp-test/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp-test/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp-test/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp-test/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp-test/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp-test/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp-test/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp-test/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp-test/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp-test/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp-test/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp-test/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp-test/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp-test/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp-test/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp-test/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp-test/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp-test/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp-test/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp-test/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp-test/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp-test/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp-test/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp-test/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp-test/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp-test/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp-test/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp-test/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp-test/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp-test/conf/protwords.txt +21 -0
- data/solr/ogp-test/conf/schema.xml +1362 -0
- data/solr/ogp-test/conf/scripts.conf +24 -0
- data/solr/ogp-test/conf/solrconfig.xml +1816 -0
- data/solr/ogp-test/conf/spellings.txt +2 -0
- data/solr/ogp-test/conf/stopwords.txt +14 -0
- data/solr/ogp-test/conf/synonyms.txt +29 -0
- data/solr/ogp-test/conf/synonymsIso.txt +158 -0
- data/solr/ogp-test/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp-test/conf/synonymsState.txt +105 -0
- data/solr/ogp-test/conf/update-script.js +53 -0
- data/solr/ogp-test/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp-test/conf/velocity/browse.vm +50 -0
- data/solr/ogp-test/conf/velocity/cluster.vm +9 -0
- data/solr/ogp-test/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp-test/conf/velocity/debug.vm +17 -0
- data/solr/ogp-test/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp-test/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp-test/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp-test/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp-test/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp-test/conf/velocity/facets.vm +5 -0
- data/solr/ogp-test/conf/velocity/footer.vm +17 -0
- data/solr/ogp-test/conf/velocity/head.vm +32 -0
- data/solr/ogp-test/conf/velocity/header.vm +3 -0
- data/solr/ogp-test/conf/velocity/hit.vm +11 -0
- data/solr/ogp-test/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp-test/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp-test/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp-test/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp-test/conf/velocity/layout.vm +20 -0
- data/solr/ogp-test/conf/velocity/main.css +208 -0
- data/solr/ogp-test/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp-test/conf/velocity/query.vm +42 -0
- data/solr/ogp-test/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp-test/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp-test/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp-test/conf/velocity/suggest.vm +3 -0
- data/solr/ogp-test/conf/velocity/tabs.vm +6 -0
- data/solr/ogp-test/conf/xslt/example.xsl +132 -0
- data/solr/ogp-test/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp-test/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp-test/conf/xslt/luke.xsl +337 -0
- data/solr/ogp-test/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp-test/deploy.sh +15 -0
- data/solr/ogp-test/purge.sh +9 -0
- data/solr/ogp-test/upload.sh +17 -0
- data/solr/ogp/conf/admin-extra.html +24 -0
- data/solr/ogp/conf/admin-extra.menu-bottom.html +25 -0
- data/solr/ogp/conf/admin-extra.menu-top.html +25 -0
- data/solr/ogp/conf/currency.xml +67 -0
- data/solr/ogp/conf/elevate.xml +38 -0
- data/solr/ogp/conf/lang/contractions_ca.txt +8 -0
- data/solr/ogp/conf/lang/contractions_fr.txt +15 -0
- data/solr/ogp/conf/lang/contractions_ga.txt +5 -0
- data/solr/ogp/conf/lang/contractions_it.txt +23 -0
- data/solr/ogp/conf/lang/hyphenations_ga.txt +5 -0
- data/solr/ogp/conf/lang/stemdict_nl.txt +6 -0
- data/solr/ogp/conf/lang/stoptags_ja.txt +420 -0
- data/solr/ogp/conf/lang/stopwords_ar.txt +125 -0
- data/solr/ogp/conf/lang/stopwords_bg.txt +193 -0
- data/solr/ogp/conf/lang/stopwords_ca.txt +220 -0
- data/solr/ogp/conf/lang/stopwords_cz.txt +172 -0
- data/solr/ogp/conf/lang/stopwords_da.txt +108 -0
- data/solr/ogp/conf/lang/stopwords_de.txt +292 -0
- data/solr/ogp/conf/lang/stopwords_el.txt +78 -0
- data/solr/ogp/conf/lang/stopwords_en.txt +54 -0
- data/solr/ogp/conf/lang/stopwords_es.txt +354 -0
- data/solr/ogp/conf/lang/stopwords_eu.txt +99 -0
- data/solr/ogp/conf/lang/stopwords_fa.txt +313 -0
- data/solr/ogp/conf/lang/stopwords_fi.txt +95 -0
- data/solr/ogp/conf/lang/stopwords_fr.txt +184 -0
- data/solr/ogp/conf/lang/stopwords_ga.txt +110 -0
- data/solr/ogp/conf/lang/stopwords_gl.txt +161 -0
- data/solr/ogp/conf/lang/stopwords_hi.txt +235 -0
- data/solr/ogp/conf/lang/stopwords_hu.txt +209 -0
- data/solr/ogp/conf/lang/stopwords_hy.txt +46 -0
- data/solr/ogp/conf/lang/stopwords_id.txt +359 -0
- data/solr/ogp/conf/lang/stopwords_it.txt +301 -0
- data/solr/ogp/conf/lang/stopwords_ja.txt +127 -0
- data/solr/ogp/conf/lang/stopwords_lv.txt +172 -0
- data/solr/ogp/conf/lang/stopwords_nl.txt +117 -0
- data/solr/ogp/conf/lang/stopwords_no.txt +192 -0
- data/solr/ogp/conf/lang/stopwords_pt.txt +251 -0
- data/solr/ogp/conf/lang/stopwords_ro.txt +233 -0
- data/solr/ogp/conf/lang/stopwords_ru.txt +241 -0
- data/solr/ogp/conf/lang/stopwords_sv.txt +131 -0
- data/solr/ogp/conf/lang/stopwords_th.txt +119 -0
- data/solr/ogp/conf/lang/stopwords_tr.txt +212 -0
- data/solr/ogp/conf/lang/userdict_ja.txt +29 -0
- data/solr/ogp/conf/mapping-FoldToASCII.txt +3813 -0
- data/solr/ogp/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/solr/ogp/conf/protwords.txt +21 -0
- data/solr/ogp/conf/schema.xml +1362 -0
- data/solr/ogp/conf/scripts.conf +24 -0
- data/solr/ogp/conf/solrconfig.xml +1816 -0
- data/solr/ogp/conf/spellings.txt +2 -0
- data/solr/ogp/conf/stopwords.txt +14 -0
- data/solr/ogp/conf/synonyms.txt +29 -0
- data/solr/ogp/conf/synonymsIso.txt +158 -0
- data/solr/ogp/conf/synonymsLcsh.txt +120 -0
- data/solr/ogp/conf/synonymsState.txt +105 -0
- data/solr/ogp/conf/update-script.js +53 -0
- data/solr/ogp/conf/velocity/VM_global_library.vm +170 -0
- data/solr/ogp/conf/velocity/browse.vm +50 -0
- data/solr/ogp/conf/velocity/cluster.vm +9 -0
- data/solr/ogp/conf/velocity/clusterResults.vm +12 -0
- data/solr/ogp/conf/velocity/debug.vm +17 -0
- data/solr/ogp/conf/velocity/did_you_mean.vm +4 -0
- data/solr/ogp/conf/velocity/facet_fields.vm +15 -0
- data/solr/ogp/conf/velocity/facet_pivot.vm +3 -0
- data/solr/ogp/conf/velocity/facet_queries.vm +3 -0
- data/solr/ogp/conf/velocity/facet_ranges.vm +15 -0
- data/solr/ogp/conf/velocity/facets.vm +5 -0
- data/solr/ogp/conf/velocity/footer.vm +17 -0
- data/solr/ogp/conf/velocity/head.vm +32 -0
- data/solr/ogp/conf/velocity/header.vm +3 -0
- data/solr/ogp/conf/velocity/hit.vm +11 -0
- data/solr/ogp/conf/velocity/hitGrouped.vm +24 -0
- data/solr/ogp/conf/velocity/join-doc.vm +4 -0
- data/solr/ogp/conf/velocity/jquery.autocomplete.css +48 -0
- data/solr/ogp/conf/velocity/jquery.autocomplete.js +763 -0
- data/solr/ogp/conf/velocity/layout.vm +20 -0
- data/solr/ogp/conf/velocity/main.css +208 -0
- data/solr/ogp/conf/velocity/product-doc.vm +27 -0
- data/solr/ogp/conf/velocity/query.vm +42 -0
- data/solr/ogp/conf/velocity/queryGroup.vm +19 -0
- data/solr/ogp/conf/velocity/querySpatial.vm +40 -0
- data/solr/ogp/conf/velocity/richtext-doc.vm +114 -0
- data/solr/ogp/conf/velocity/suggest.vm +3 -0
- data/solr/ogp/conf/velocity/tabs.vm +6 -0
- data/solr/ogp/conf/xslt/example.xsl +132 -0
- data/solr/ogp/conf/xslt/example_atom.xsl +67 -0
- data/solr/ogp/conf/xslt/example_rss.xsl +66 -0
- data/solr/ogp/conf/xslt/luke.xsl +337 -0
- data/solr/ogp/conf/xslt/updateXml.xsl +70 -0
- data/solr/ogp/deploy.sh +15 -0
- data/solr/ogp/upload.sh +16 -0
- data/spec/fixtures/bw938nk9584/metadata/geoMetadata.xml +2438 -0
- data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/bw938nk9584/temp/TRIPURA-iso19139.xml +790 -0
- data/spec/fixtures/cc142xj8436/metadata/geoMetadata.xml +2029 -0
- data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139-fc.xml +1174 -0
- data/spec/fixtures/cc142xj8436/temp/HARYANA-iso19139.xml +850 -0
- data/spec/fixtures/cg716wc7949/metadata/geoMetadata.xml +1815 -0
- data/spec/fixtures/cg716wc7949/temp/metadata.iso19139-fc.xml +958 -0
- data/spec/fixtures/cg716wc7949/temp/metadata.iso19139.xml +852 -0
- data/spec/fixtures/cm007pv9601/metadata/geoMetadata.xml +1092 -0
- data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139-fc.xml +379 -0
- data/spec/fixtures/cm007pv9601/temp/MEGHALAYA-iso19139.xml +708 -0
- data/spec/fixtures/cp055nb0189/metadata/geoMetadata.xml +1820 -0
- data/spec/fixtures/cp055nb0189/temp/metadata.iso19139-fc.xml +955 -0
- data/spec/fixtures/cp055nb0189/temp/metadata.iso19139.xml +860 -0
- data/spec/fixtures/cs838pw3418/metadata/geoMetadata.xml +912 -0
- data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139-fc.xml +177 -0
- data/spec/fixtures/cs838pw3418/temp/OIL_GAS_FIELDS-iso19139.xml +730 -0
- data/spec/fixtures/dd308sy5843/metadata/geoMetadata.xml +2438 -0
- data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/dd308sy5843/temp/ORISSA-iso19139.xml +790 -0
- data/spec/fixtures/dd452vk1873/metadata/geoMetadata.xml +1168 -0
- data/spec/fixtures/dd452vk1873/temp/metadata.iso19139-fc.xml +175 -0
- data/spec/fixtures/dd452vk1873/temp/metadata.iso19139.xml +988 -0
- data/spec/fixtures/dg850pt1796/metadata/geoMetadata.xml +1411 -0
- data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139-fc.xml +519 -0
- data/spec/fixtures/dg850pt1796/temp/STATE1951-iso19139.xml +887 -0
- data/spec/fixtures/dn744tf5427/metadata/geoMetadata.xml +7403 -0
- data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139-fc.xml +6539 -0
- data/spec/fixtures/dn744tf5427/temp/DISTRICT1991-iso19139.xml +859 -0
- data/spec/fixtures/dq603nz8402/metadata/geoMetadata.xml +8485 -0
- data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139-fc.xml +7595 -0
- data/spec/fixtures/dq603nz8402/temp/STATE2001-iso19139.xml +885 -0
- data/spec/fixtures/dv609zt4699/metadata/geoMetadata.xml +3865 -0
- data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139-fc.xml +3075 -0
- data/spec/fixtures/dv609zt4699/temp/ASSAM-iso19139.xml +785 -0
- data/spec/fixtures/dz222hw0585/metadata/geoMetadata.xml +2057 -0
- data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139-fc.xml +1203 -0
- data/spec/fixtures/dz222hw0585/temp/PUNJAB-iso19139.xml +849 -0
- data/spec/fixtures/fd673qb9705/metadata/geoMetadata.xml +4059 -0
- data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139-fc.xml +3159 -0
- data/spec/fixtures/fd673qb9705/temp/STATE1971-iso19139.xml +895 -0
- data/spec/fixtures/fg451wp8917/metadata/geoMetadata.xml +2435 -0
- data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fg451wp8917/temp/SIKKIM-iso19139.xml +787 -0
- data/spec/fixtures/fh247yz0156/metadata/geoMetadata.xml +2437 -0
- data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fh247yz0156/temp/RAJASTHAN-iso19139.xml +789 -0
- data/spec/fixtures/fs487vd1465/metadata/geoMetadata.xml +3896 -0
- data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/fs487vd1465/temp/CHHATTISGARH-iso19139.xml +816 -0
- data/spec/fixtures/fs591bn3317/metadata/geoMetadata.xml +2435 -0
- data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1643 -0
- data/spec/fixtures/fs591bn3317/temp/HIMACHAL_PRADESH-iso19139.xml +787 -0
- data/spec/fixtures/fw920bc5473/metadata/geoMetadata.xml +1056 -0
- data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139-fc.xml +327 -0
- data/spec/fixtures/fw920bc5473/temp/PLSS_TWN-iso19139.xml +724 -0
- data/spec/fixtures/gj831wj3625/metadata/geoMetadata.xml +1735 -0
- data/spec/fixtures/gj831wj3625/temp/metadata.iso19139-fc.xml +940 -0
- data/spec/fixtures/gj831wj3625/temp/metadata.iso19139.xml +790 -0
- data/spec/fixtures/gp075nv3265/metadata/geoMetadata.xml +2432 -0
- data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139-fc.xml +1643 -0
- data/spec/fixtures/gp075nv3265/temp/PONDICHERRY-iso19139.xml +784 -0
- data/spec/fixtures/gv800hj8141/metadata/geoMetadata.xml +2392 -0
- data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/gv800hj8141/temp/BIHAR-iso19139.xml +744 -0
- data/spec/fixtures/gw520gz6339/metadata/geoMetadata.xml +3899 -0
- data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/gw520gz6339/temp/DADRA_NAGAR_HAVELI_PT-iso19139.xml +819 -0
- data/spec/fixtures/gy054hz1045/metadata/geoMetadata.xml +2418 -0
- data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139-fc.xml +1633 -0
- data/spec/fixtures/gy054hz1045/temp/HARYANA-iso19139.xml +780 -0
- data/spec/fixtures/gz352mw6982/metadata/geoMetadata.xml +1772 -0
- data/spec/fixtures/gz352mw6982/temp/metadata.iso19139-fc.xml +940 -0
- data/spec/fixtures/gz352mw6982/temp/metadata.iso19139.xml +827 -0
- data/spec/fixtures/hb489vm9892/metadata/geoMetadata.xml +3663 -0
- data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139-fc.xml +2799 -0
- data/spec/fixtures/hb489vm9892/temp/DISTRICT1981-iso19139.xml +859 -0
- data/spec/fixtures/hw125dq0418/metadata/geoMetadata.xml +2448 -0
- data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139-fc.xml +1599 -0
- data/spec/fixtures/hw125dq0418/temp/DELHI-iso19139.xml +844 -0
- data/spec/fixtures/hw892mn4587/metadata/geoMetadata.xml +2561 -0
- data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139-fc.xml +1763 -0
- data/spec/fixtures/hw892mn4587/temp/KERALA-iso19139.xml +793 -0
- data/spec/fixtures/jb371hz3868/metadata/geoMetadata.xml +3129 -0
- data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139-fc.xml +2263 -0
- data/spec/fixtures/jb371hz3868/temp/INCOME-iso19139.xml +861 -0
- data/spec/fixtures/jc017yk9928/metadata/geoMetadata.xml +2433 -0
- data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/jc017yk9928/temp/KARNATAKA-iso19139.xml +829 -0
- data/spec/fixtures/jf841ys4828/metadata/geoMetadata.xml +2156 -0
- data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139-fc.xml +1247 -0
- data/spec/fixtures/jf841ys4828/temp/ANDHRA_PRADESH-iso19139.xml +904 -0
- data/spec/fixtures/jh802mp2160/metadata/geoMetadata.xml +3917 -0
- data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/jh802mp2160/temp/DELHI_PT-iso19139.xml +837 -0
- data/spec/fixtures/jj806fc3801/metadata/geoMetadata.xml +1235 -0
- data/spec/fixtures/jj806fc3801/temp/metadata.iso19139-fc.xml +173 -0
- data/spec/fixtures/jj806fc3801/temp/metadata.iso19139.xml +1057 -0
- data/spec/fixtures/jq835yn7161/metadata/geoMetadata.xml +2060 -0
- data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jq835yn7161/temp/HIMACHAL_PRADESH-iso19139.xml +852 -0
- data/spec/fixtures/jr455pt6676/metadata/geoMetadata.xml +2045 -0
- data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jr455pt6676/temp/TAMILNADU-iso19139.xml +837 -0
- data/spec/fixtures/js637zp2537/metadata/geoMetadata.xml +3894 -0
- data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139-fc.xml +3075 -0
- data/spec/fixtures/js637zp2537/temp/BIHAR-iso19139.xml +814 -0
- data/spec/fixtures/jv502wg9611/metadata/geoMetadata.xml +2052 -0
- data/spec/fixtures/jv502wg9611/temp/GOA-iso19139-fc.xml +1203 -0
- data/spec/fixtures/jv502wg9611/temp/GOA-iso19139.xml +844 -0
- data/spec/fixtures/jw462ck6560/metadata/geoMetadata.xml +2442 -0
- data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/jw462ck6560/temp/JAMMU_KASHMIR-iso19139.xml +794 -0
- data/spec/fixtures/kj800fb6273/metadata/geoMetadata.xml +3300 -0
- data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139-fc.xml +2403 -0
- data/spec/fixtures/kj800fb6273/temp/STATE2011-iso19139.xml +892 -0
- data/spec/fixtures/km504zq3948/metadata/geoMetadata.xml +3862 -0
- data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/km504zq3948/temp/HIMACHAL_PRADESH-iso19139.xml +782 -0
- data/spec/fixtures/ks297fy1411/metadata/geoMetadata.xml +1043 -0
- data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139-fc.xml +350 -0
- data/spec/fixtures/ks297fy1411/temp/OFFSH_BLOCKS-iso19139.xml +688 -0
- data/spec/fixtures/md358hy5049/metadata/geoMetadata.xml +2424 -0
- data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139-fc.xml +1570 -0
- data/spec/fixtures/md358hy5049/temp/MIZORAM-iso19139.xml +849 -0
- data/spec/fixtures/mg745bq0193/metadata/geoMetadata.xml +2183 -0
- data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139-fc.xml +1383 -0
- data/spec/fixtures/mg745bq0193/temp/MADHYA_PRADESH-iso19139.xml +795 -0
- data/spec/fixtures/mh187yx3536/metadata/geoMetadata.xml +2447 -0
- data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139-fc.xml +1643 -0
- data/spec/fixtures/mh187yx3536/temp/WEST_BENGAL-iso19139.xml +799 -0
- data/spec/fixtures/mk488yn6694/metadata/geoMetadata.xml +2042 -0
- data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139-fc.xml +1203 -0
- data/spec/fixtures/mk488yn6694/temp/GUJARAT-iso19139.xml +834 -0
- data/spec/fixtures/my216kp3008/metadata/geoMetadata.xml +2366 -0
- data/spec/fixtures/my216kp3008/temp/DELHI-iso19139-fc.xml +1643 -0
- data/spec/fixtures/my216kp3008/temp/DELHI-iso19139.xml +718 -0
- data/spec/fixtures/my504nz9827/metadata/geoMetadata.xml +2367 -0
- data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139-fc.xml +1519 -0
- data/spec/fixtures/my504nz9827/temp/JAMMU_KASHMIR-iso19139.xml +843 -0
- data/spec/fixtures/ng819jm8700/metadata/geoMetadata.xml +2496 -0
- data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139-fc.xml +1643 -0
- data/spec/fixtures/ng819jm8700/temp/MANIPUR-iso19139.xml +848 -0
- data/spec/fixtures/np020jq2139/metadata/geoMetadata.xml +1153 -0
- data/spec/fixtures/np020jq2139/temp/metadata.iso19139-fc.xml +160 -0
- data/spec/fixtures/np020jq2139/temp/metadata.iso19139.xml +988 -0
- data/spec/fixtures/ns377mt1608/metadata/geoMetadata.xml +7125 -0
- data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139-fc.xml +6283 -0
- data/spec/fixtures/ns377mt1608/temp/STATE1991-iso19139.xml +837 -0
- data/spec/fixtures/nw926np8508/metadata/geoMetadata.xml +1143 -0
- data/spec/fixtures/nw926np8508/temp/metadata.iso19139-fc.xml +160 -0
- data/spec/fixtures/nw926np8508/temp/metadata.iso19139.xml +978 -0
- data/spec/fixtures/ny358rm8559/metadata/geoMetadata.xml +2459 -0
- data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/ny358rm8559/temp/TRIPURA-iso19139.xml +855 -0
- data/spec/fixtures/nz176rm8192/metadata/geoMetadata.xml +2618 -0
- data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139-fc.xml +1813 -0
- data/spec/fixtures/nz176rm8192/temp/DISTRICT2011-iso19139.xml +800 -0
- data/spec/fixtures/nz252rq2252/metadata/geoMetadata.xml +2387 -0
- data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/nz252rq2252/temp/UTTAR_PRADESH-iso19139.xml +783 -0
- data/spec/fixtures/pd902kb3348/metadata/geoMetadata.xml +2414 -0
- data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139-fc.xml +1633 -0
- data/spec/fixtures/pd902kb3348/temp/MADHYA_PRADESH-iso19139.xml +776 -0
- data/spec/fixtures/pz792fz1776/metadata/geoMetadata.xml +2437 -0
- data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/pz792fz1776/temp/MAHARASHTRA-iso19139.xml +789 -0
- data/spec/fixtures/qb767ss4042/metadata/geoMetadata.xml +2045 -0
- data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139-fc.xml +1200 -0
- data/spec/fixtures/qb767ss4042/temp/UTTAR_PRADESH-iso19139.xml +840 -0
- data/spec/fixtures/qc091qw0570/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qc091qw0570/temp/GUJARAT-iso19139.xml +780 -0
- data/spec/fixtures/qc652vr7204/metadata/geoMetadata.xml +3877 -0
- data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/qc652vr7204/temp/ANDHRA_PRADESH_PT-iso19139.xml +797 -0
- data/spec/fixtures/qk786js7484/metadata/geoMetadata.xml +3267 -0
- data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139-fc.xml +2403 -0
- data/spec/fixtures/qk786js7484/temp/DISTRICT1961-iso19139.xml +859 -0
- data/spec/fixtures/qn676pg6767/metadata/geoMetadata.xml +3861 -0
- data/spec/fixtures/qn676pg6767/temp/GOA-iso19139-fc.xml +3075 -0
- data/spec/fixtures/qn676pg6767/temp/GOA-iso19139.xml +781 -0
- data/spec/fixtures/qr255jh4074/metadata/geoMetadata.xml +3226 -0
- data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139-fc.xml +2366 -0
- data/spec/fixtures/qr255jh4074/temp/LOKSABHA_14-iso19139.xml +855 -0
- data/spec/fixtures/qr374kj4827/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qr374kj4827/temp/ASSAM-iso19139.xml +780 -0
- data/spec/fixtures/qy162js1748/metadata/geoMetadata.xml +2440 -0
- data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139-fc.xml +1643 -0
- data/spec/fixtures/qy162js1748/temp/CHHATTISGARH-iso19139.xml +792 -0
- data/spec/fixtures/rd446vf2633/metadata/geoMetadata.xml +1109 -0
- data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139-fc.xml +379 -0
- data/spec/fixtures/rd446vf2633/temp/NAGALAND-iso19139.xml +725 -0
- data/spec/fixtures/rf389hf2983/metadata/geoMetadata.xml +3929 -0
- data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/rf389hf2983/temp/CHHATTISGARH_PT-iso19139.xml +849 -0
- data/spec/fixtures/rf859ff4582/metadata/geoMetadata.xml +1251 -0
- data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139-fc.xml +459 -0
- data/spec/fixtures/rf859ff4582/temp/JHARKHAND-iso19139.xml +787 -0
- data/spec/fixtures/rh343ds8931/metadata/geoMetadata.xml +2032 -0
- data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139-fc.xml +1174 -0
- data/spec/fixtures/rh343ds8931/temp/BIHAR-iso19139.xml +853 -0
- data/spec/fixtures/rn815xk8157/metadata/geoMetadata.xml +2417 -0
- data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139-fc.xml +1563 -0
- data/spec/fixtures/rn815xk8157/temp/SIKKIM-iso19139.xml +849 -0
- data/spec/fixtures/rq653sz4470/metadata/geoMetadata.xml +2394 -0
- data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/rq653sz4470/temp/CHHATTISGARH-iso19139.xml +790 -0
- data/spec/fixtures/rt625ws6022/metadata/geoMetadata.xml +833 -0
- data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139-fc.xml +144 -0
- data/spec/fixtures/rt625ws6022/temp/GULF_FAIRWAYS-iso19139.xml +684 -0
- data/spec/fixtures/sc330vf4259/metadata/geoMetadata.xml +1836 -0
- data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139-fc.xml +987 -0
- data/spec/fixtures/sc330vf4259/temp/JHARKHAND-iso19139.xml +844 -0
- data/spec/fixtures/sq479mx3086/metadata/geoMetadata.xml +1043 -0
- data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139-fc.xml +365 -0
- data/spec/fixtures/sq479mx3086/temp/OFFSH_PLATF-iso19139.xml +673 -0
- data/spec/fixtures/sr686bm4098/metadata/geoMetadata.xml +3896 -0
- data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/sr686bm4098/temp/DAMAN_DIU_PT-iso19139.xml +816 -0
- data/spec/fixtures/sv303sh5583/metadata/geoMetadata.xml +2395 -0
- data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1555 -0
- data/spec/fixtures/sv303sh5583/temp/ARUNACHAL_PRADESH-iso19139.xml +835 -0
- data/spec/fixtures/sy319nh8520/metadata/geoMetadata.xml +3925 -0
- data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/sy319nh8520/temp/GUJARAT-iso19139.xml +845 -0
- data/spec/fixtures/td363vx2792/metadata/geoMetadata.xml +3964 -0
- data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/td363vx2792/temp/HIMACHAL_PRADESH_PT-iso19139.xml +884 -0
- data/spec/fixtures/tf374bd2484/metadata/geoMetadata.xml +1464 -0
- data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139-fc.xml +599 -0
- data/spec/fixtures/tf374bd2484/temp/DISTRICT1951-iso19139.xml +860 -0
- data/spec/fixtures/tj797mj7877/metadata/geoMetadata.xml +2359 -0
- data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139-fc.xml +1511 -0
- data/spec/fixtures/tj797mj7877/temp/LOKSABHA_15-iso19139.xml +843 -0
- data/spec/fixtures/tv060wq5179/metadata/geoMetadata.xml +2046 -0
- data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139-fc.xml +1203 -0
- data/spec/fixtures/tv060wq5179/temp/ASSAM-iso19139.xml +838 -0
- data/spec/fixtures/tv536bn1915/metadata/geoMetadata.xml +2296 -0
- data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139-fc.xml +1687 -0
- data/spec/fixtures/tv536bn1915/temp/ARUNACHAL_PRADESH-iso19139.xml +604 -0
- data/spec/fixtures/tz359cc2977/metadata/geoMetadata.xml +1842 -0
- data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139-fc.xml +987 -0
- data/spec/fixtures/tz359cc2977/temp/MANIPUR-iso19139.xml +850 -0
- data/spec/fixtures/vb525my6511/metadata/geoMetadata.xml +2026 -0
- data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139-fc.xml +1167 -0
- data/spec/fixtures/vb525my6511/temp/UTTARAKHAND-iso19139.xml +854 -0
- data/spec/fixtures/vh802fs4240/metadata/geoMetadata.xml +2189 -0
- data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139-fc.xml +1343 -0
- data/spec/fixtures/vh802fs4240/temp/PONDICHERRY-iso19139.xml +841 -0
- data/spec/fixtures/vk120xn2474/metadata/geoMetadata.xml +1125 -0
- data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139-fc.xml +435 -0
- data/spec/fixtures/vk120xn2474/temp/PLSS_SEC-iso19139.xml +685 -0
- data/spec/fixtures/vn439bc7316/metadata/geoMetadata.xml +1979 -0
- data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139-fc.xml +1131 -0
- data/spec/fixtures/vn439bc7316/temp/KERALA-iso19139.xml +843 -0
- data/spec/fixtures/vq745jk0695/metadata/geoMetadata.xml +1787 -0
- data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139-fc.xml +987 -0
- data/spec/fixtures/vq745jk0695/temp/MEGHALAYA-iso19139.xml +795 -0
- data/spec/fixtures/vr593vj7147/metadata/geoMetadata.xml +3895 -0
- data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139-fc.xml +3075 -0
- data/spec/fixtures/vr593vj7147/temp/ANDHRA_PRADESH-iso19139.xml +815 -0
- data/spec/fixtures/vw911qb5271/metadata/geoMetadata.xml +8557 -0
- data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139-fc.xml +7683 -0
- data/spec/fixtures/vw911qb5271/temp/DISTRICT2001-iso19139.xml +869 -0
- data/spec/fixtures/wg680pz0365/metadata/geoMetadata.xml +2475 -0
- data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139-fc.xml +1599 -0
- data/spec/fixtures/wg680pz0365/temp/ANDHRA_PRADESH-iso19139.xml +871 -0
- data/spec/fixtures/wg761xn1926/metadata/geoMetadata.xml +3941 -0
- data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139-fc.xml +3075 -0
- data/spec/fixtures/wg761xn1926/temp/HARYANA-iso19139.xml +861 -0
- data/spec/fixtures/wh870qw1934/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139-fc.xml +1643 -0
- data/spec/fixtures/wh870qw1934/temp/PUNJAB-iso19139.xml +780 -0
- data/spec/fixtures/wk775mm4673/metadata/geoMetadata.xml +2458 -0
- data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/wk775mm4673/temp/MAHARASHTRA-iso19139.xml +854 -0
- data/spec/fixtures/ws171yz2165/metadata/geoMetadata.xml +3868 -0
- data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/ws171yz2165/temp/ARUNACHAL_PRADESH_PT-iso19139.xml +788 -0
- data/spec/fixtures/wt473hz7153/metadata/geoMetadata.xml +3898 -0
- data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/wt473hz7153/temp/CHANDIGARH_PT-iso19139.xml +818 -0
- data/spec/fixtures/ww217dj0457/metadata/geoMetadata.xml +1205 -0
- data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139-fc.xml +471 -0
- data/spec/fixtures/ww217dj0457/temp/CO2_PIPE-iso19139.xml +729 -0
- data/spec/fixtures/wy875pk9849/metadata/geoMetadata.xml +3173 -0
- data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139-fc.xml +2279 -0
- data/spec/fixtures/wy875pk9849/temp/STATE1961-iso19139.xml +889 -0
- data/spec/fixtures/xb018tk2042/metadata/geoMetadata.xml +2335 -0
- data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139-fc.xml +1443 -0
- data/spec/fixtures/xb018tk2042/temp/STATE1981-iso19139.xml +887 -0
- data/spec/fixtures/xg539vw8586/metadata/geoMetadata.xml +2405 -0
- data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139-fc.xml +1599 -0
- data/spec/fixtures/xg539vw8586/temp/ORISSA-iso19139.xml +801 -0
- data/spec/fixtures/xv475kp4644/metadata/geoMetadata.xml +3871 -0
- data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/xv475kp4644/temp/ASSAM_PT-iso19139.xml +791 -0
- data/spec/fixtures/xy096gc2959/metadata/geoMetadata.xml +2432 -0
- data/spec/fixtures/xy096gc2959/temp/GOA-iso19139-fc.xml +1643 -0
- data/spec/fixtures/xy096gc2959/temp/GOA-iso19139.xml +784 -0
- data/spec/fixtures/xz518gz3362/metadata/geoMetadata.xml +2434 -0
- data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139-fc.xml +1643 -0
- data/spec/fixtures/xz518gz3362/temp/UTTARAKHAND-iso19139.xml +786 -0
- data/spec/fixtures/yh986wy4737/metadata/geoMetadata.xml +1160 -0
- data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139-fc.xml +384 -0
- data/spec/fixtures/yh986wy4737/temp/NAGALAND-iso19139.xml +771 -0
- data/spec/fixtures/yn187fq4474/metadata/geoMetadata.xml +2168 -0
- data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139-fc.xml +1379 -0
- data/spec/fixtures/yn187fq4474/temp/KARNATAKA-iso19139.xml +784 -0
- data/spec/fixtures/yn236mw3250/metadata/geoMetadata.xml +2428 -0
- data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139-fc.xml +1643 -0
- data/spec/fixtures/yn236mw3250/temp/TAMILNADU-iso19139.xml +780 -0
- data/spec/fixtures/yz596nz0112/metadata/geoMetadata.xml +2012 -0
- data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139-fc.xml +1203 -0
- data/spec/fixtures/yz596nz0112/temp/WEST_BENGAL-iso19139.xml +804 -0
- data/spec/fixtures/zk596gy7380/metadata/geoMetadata.xml +4147 -0
- data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139-fc.xml +3283 -0
- data/spec/fixtures/zk596gy7380/temp/DISTRICT1971-iso19139.xml +859 -0
- data/spec/fixtures/zn452hh7431/metadata/geoMetadata.xml +2337 -0
- data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139-fc.xml +1505 -0
- data/spec/fixtures/zn452hh7431/temp/RAJASTHAN-iso19139.xml +827 -0
- data/spec/fixtures/zt093fw6519/metadata/geoMetadata.xml +2380 -0
- data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139-fc.xml +1643 -0
- data/spec/fixtures/zt093fw6519/temp/MIZORAM-iso19139.xml +732 -0
- data/spec/fixtures/zv925hd6723/metadata/geoMetadata.xml +1473 -0
- data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139-fc.xml +759 -0
- data/spec/fixtures/zv925hd6723/temp/OGWELLS-iso19139.xml +709 -0
- data/spec/fixtures/zy658cr1728/metadata/geoMetadata.xml +3814 -0
- data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139-fc.xml +3075 -0
- data/spec/fixtures/zy658cr1728/temp/ANDAMAAN_NICOBAR_PT-iso19139.xml +734 -0
- data/spec/fixtures/zz943vx1492/metadata/geoMetadata.xml +861 -0
- data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139-fc.xml +164 -0
- data/spec/fixtures/zz943vx1492/temp/BASINS-iso19139.xml +692 -0
- data/spec/integration/solr_spec_notready.rb +51 -0
- data/spec/test_net_ssh_krb.rb +21 -0
- data/spec/unit/gazetteer_spec.rb +100 -0
- data/spec/unit/transform_spec.rb +40 -0
- data/spec/unit/utils_spec.rb +32 -0
- metadata +1491 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
|
2
|
+
#macro(param $key)$request.params.get($key)#end
|
3
|
+
|
4
|
+
#macro(url_root)/solr#end
|
5
|
+
|
6
|
+
## TODO: s/url_for_solr/url_for_core/ and s/url_root/url_for_solr/
|
7
|
+
#macro(core_name)$request.core.name#end
|
8
|
+
#macro(url_for_solr)#{url_root}#if($request.core.name != "")/$request.core.name#end#end
|
9
|
+
#macro(url_for_home)#url_for_solr/browse#end
|
10
|
+
|
11
|
+
#macro(q)&q=$!{esc.url($params.get('q'))}#end
|
12
|
+
|
13
|
+
#macro(fqs $p)#foreach($fq in $p)#if($velocityCount>1)&#{end}fq=$esc.url($fq)#end#end
|
14
|
+
|
15
|
+
#macro(debug)#if($request.params.get('debugQuery'))&debugQuery=true#end#end
|
16
|
+
|
17
|
+
#macro(boostPrice)#if($request.params.get('bf') == 'price')&bf=price#end#end
|
18
|
+
|
19
|
+
#macro(annotate)#if($request.params.get('annotateBrowse'))&annotateBrowse=true#end#end
|
20
|
+
|
21
|
+
#macro(annTitle $msg)#if($annotate == true)title="$msg"#end#end
|
22
|
+
|
23
|
+
#macro(spatial)#if($request.params.get('sfield'))&sfield=store#end#if($request.params.get('pt'))&pt=$request.params.get('pt')#end#if($request.params.get('d'))&d=$request.params.get('d')#end#end
|
24
|
+
|
25
|
+
#macro(qOpts)#set($queryOpts = $request.params.get("queryOpts"))#if($queryOpts && $queryOpts != "")&queryOpts=$queryOpts#end#end
|
26
|
+
|
27
|
+
#macro(group)#if($request.params.getBool("group") == true)&group=true#end#if($request.params.get("group.field"))#foreach($grp in $request.params.getParams('group.field'))&group.field=$grp#end#end#end
|
28
|
+
|
29
|
+
#macro(sort $p)#if($p)#foreach($s in $p)&sort=$esc.url($s)#end#end#end
|
30
|
+
|
31
|
+
#macro(lensNoQ)?#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#sort($request.params.getParams('sort'))#debug#boostPrice#annotate#spatial#qOpts#group#end
|
32
|
+
#macro(lens)#lensNoQ#q#end
|
33
|
+
|
34
|
+
|
35
|
+
#macro(url_for_lens)#{url_for_home}#lens#end
|
36
|
+
|
37
|
+
#macro(url_for_start $start)#url_for_home#lens&start=$start#end
|
38
|
+
|
39
|
+
#macro(url_for_filters $p)#url_for_home?#q#boostPrice#spatial#qOpts#if($list.size($p) > 0)&#fqs($p)#end#debug#end
|
40
|
+
|
41
|
+
#macro(url_for_nested_facet_query $field)#url_for_home#lens&fq=$esc.url($field)#end
|
42
|
+
|
43
|
+
## TODO: convert to use {!raw f=$field}$value (with escaping of course)
|
44
|
+
#macro(url_for_facet_filter $field $value)#url_for_home#lens&fq=$esc.url($field):%22$esc.url($value)%22#end
|
45
|
+
|
46
|
+
#macro(url_for_facet_date_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end
|
47
|
+
|
48
|
+
#macro(url_for_facet_range_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end
|
49
|
+
|
50
|
+
|
51
|
+
#macro(link_to_previous_page $text)
|
52
|
+
#if($page.current_page_number > 1)
|
53
|
+
#set($prev_start = $page.start - $page.results_per_page)
|
54
|
+
<a class="prev-page" href="#url_for_start($prev_start)">$text</a>
|
55
|
+
#end
|
56
|
+
#end
|
57
|
+
|
58
|
+
#macro(link_to_next_page $text)
|
59
|
+
#if($page.current_page_number < $page.page_count)
|
60
|
+
#set($next_start = $page.start + $page.results_per_page)
|
61
|
+
<a class="next-page" href="#url_for_start($next_start)">$text</a>
|
62
|
+
#end
|
63
|
+
#end
|
64
|
+
|
65
|
+
#macro(link_to_page $page_number $text)
|
66
|
+
#if($page_number == $page.current_page_number)
|
67
|
+
$text
|
68
|
+
#else
|
69
|
+
#if($page_number <= $page.page_count)
|
70
|
+
#set($page_start = $page_number * $page.results_per_page - $page.results_per_page)
|
71
|
+
<a class="page" href="#url_for_start($page_start)">$text</a>
|
72
|
+
#end
|
73
|
+
#end
|
74
|
+
#end
|
75
|
+
|
76
|
+
#macro(display_facet_query $field, $display, $fieldName)
|
77
|
+
#if($field.size() > 0)
|
78
|
+
<span class="facet-field">$display</span>
|
79
|
+
<ul>
|
80
|
+
#foreach ($facet in $field)
|
81
|
+
#if ($facet.value > 0)
|
82
|
+
#set($facetURL = "#url_for_nested_facet_query($facet.key)")
|
83
|
+
#if ($facetURL != '')
|
84
|
+
<li><a href="$facetURL">$facet.key</a> ($facet.value)</li>
|
85
|
+
#end
|
86
|
+
#end
|
87
|
+
#end
|
88
|
+
</ul>
|
89
|
+
#end
|
90
|
+
#end
|
91
|
+
|
92
|
+
|
93
|
+
#macro(display_facet_range $field, $display, $fieldName, $start, $end, $gap, $before, $after)
|
94
|
+
<span class="facet-field">$display</span>
|
95
|
+
<ul>
|
96
|
+
#if($before && $before != "")
|
97
|
+
#set($value = "[* TO " + "#format_value($start)" + "}")
|
98
|
+
#set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
|
99
|
+
<li><a href="$facetURL">Less than #format_value($start)</a> ($before)</li>
|
100
|
+
#end
|
101
|
+
#foreach ($facet in $field)
|
102
|
+
#set($rangeEnd = "#range_get_to_value($facet.key, $gap)")
|
103
|
+
#set($value = "[" + $facet.key + " TO " + $rangeEnd + "}")
|
104
|
+
#set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
|
105
|
+
#if ($facetURL != '')
|
106
|
+
<li><a href="$facetURL">$facet.key - #format_value($rangeEnd)</a> ($facet.value)</li>
|
107
|
+
#end
|
108
|
+
#end
|
109
|
+
#if($end && $end != "" && $after > 0)
|
110
|
+
#set($value = "[" + "#format_value($end)" + " TO *}")
|
111
|
+
#set($facetURL = "#url_for_facet_range_filter($fieldName, $value)")
|
112
|
+
<li><a href="$facetURL">More than #format_value($end)</a> ($after)</li>
|
113
|
+
#end
|
114
|
+
</ul>
|
115
|
+
#end
|
116
|
+
|
117
|
+
## $pivots is a list of facet_pivot
|
118
|
+
#macro(display_facet_pivot $pivots, $display)
|
119
|
+
#if($pivots.size() > 0)
|
120
|
+
<span class="facet-field">$display</span>
|
121
|
+
<ul>
|
122
|
+
#foreach ($pivot in $pivots)
|
123
|
+
#foreach ($entry in $pivot.value)
|
124
|
+
<a href="#url_for_facet_filter($entry.field, $entry.value)">$entry.field::$entry.value</a> ($entry.count)
|
125
|
+
<ul>
|
126
|
+
#foreach($nest in $entry.pivot)
|
127
|
+
<a href="#url_for_facet_filter($entry.field, $entry.value)&fq=$esc.url($nest.field):%22$esc.url($nest.value)%22">$nest.field::$nest.value</a> ($nest.count)
|
128
|
+
#end
|
129
|
+
</ul>
|
130
|
+
#end
|
131
|
+
#end
|
132
|
+
</ul>
|
133
|
+
#end
|
134
|
+
#end
|
135
|
+
|
136
|
+
#macro(field $f)
|
137
|
+
#if($response.response.highlighting.get($docId).get($f).get(0))
|
138
|
+
#set($pad = "")
|
139
|
+
#foreach($v in $response.response.highlighting.get($docId).get($f))
|
140
|
+
$pad$v##
|
141
|
+
#set($pad = " ... ")
|
142
|
+
#end
|
143
|
+
#else
|
144
|
+
#foreach($v in $doc.getFieldValues($f))
|
145
|
+
$v##
|
146
|
+
#end
|
147
|
+
#end
|
148
|
+
#end
|
149
|
+
|
150
|
+
#macro(utc_date $theDate)
|
151
|
+
$date.format("yyyy-MM-dd'T'HH:mm:ss'Z'",$theDate,$date.getLocale(),$date.getTimeZone().getTimeZone("UTC"))##
|
152
|
+
#end
|
153
|
+
|
154
|
+
#macro(format_value $val)
|
155
|
+
#if(${val.class.name} == "java.util.Date")
|
156
|
+
#utc_date($val)##
|
157
|
+
#else
|
158
|
+
$val##
|
159
|
+
#end
|
160
|
+
#end
|
161
|
+
|
162
|
+
#macro(range_get_to_value $inval, $gapval)
|
163
|
+
#if(${gapval.class.name} == "java.lang.String")
|
164
|
+
$inval$gapval##
|
165
|
+
#elseif(${gapval.class.name} == "java.lang.Float" || ${inval.class.name} == "java.lang.Float")
|
166
|
+
$math.toDouble($math.add($inval,$gapval))##
|
167
|
+
#else
|
168
|
+
$math.add($inval,$gapval)##
|
169
|
+
#end
|
170
|
+
#end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#set($searcher=$request.searcher)
|
2
|
+
#set($params=$request.params)
|
3
|
+
#set($clusters = $response.response.clusters)
|
4
|
+
#set($mltResults = $response.response.get("moreLikeThis"))
|
5
|
+
#set($annotate = $params.get("annotateBrowse"))
|
6
|
+
#parse('query.vm')
|
7
|
+
#parse('did_you_mean.vm')
|
8
|
+
|
9
|
+
<div class="navigators">
|
10
|
+
#parse("facets.vm")
|
11
|
+
</div>
|
12
|
+
|
13
|
+
<div class="pagination">
|
14
|
+
#if($response.response.get('grouped'))
|
15
|
+
<span><span class="results-found">$response.response.get('grouped').size() group(s)</span> found in ${response.responseHeader.QTime} ms</span>
|
16
|
+
#else<span><span class="results-found">$page.results_found</span> results found in ${response.responseHeader.QTime} ms</span>
|
17
|
+
Page <span class="page-num">$page.current_page_number</span> of <span
|
18
|
+
class="page-count">$page.page_count</span>#end
|
19
|
+
</div>
|
20
|
+
|
21
|
+
<div class="error">
|
22
|
+
#if(${response.response.error.code})
|
23
|
+
<h1>ERROR ${response.response.error.code}</h1>
|
24
|
+
${response.response.error.msg}
|
25
|
+
#end
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<div class="results">
|
29
|
+
#if($response.response.get('grouped'))
|
30
|
+
#foreach($grouping in $response.response.get('grouped'))
|
31
|
+
#parse("hitGrouped.vm")
|
32
|
+
#end
|
33
|
+
#else
|
34
|
+
#foreach($doc in $response.results)
|
35
|
+
#parse("hit.vm")
|
36
|
+
#end
|
37
|
+
#end
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div class="pagination">
|
41
|
+
#if($response.response.get('grouped'))
|
42
|
+
#else
|
43
|
+
#link_to_previous_page("previous")
|
44
|
+
<span class="results-found">$page.results_found</span> results found.
|
45
|
+
Page <span class="page-num">$page.current_page_number</span> of <span
|
46
|
+
class="page-count">$page.page_count</span>
|
47
|
+
#link_to_next_page("next")
|
48
|
+
#end
|
49
|
+
<br/>
|
50
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<h2 #annTitle("Clusters generated by Carrot2 using the /clustering RequestHandler")>Clusters</h2>
|
2
|
+
<div id="clusters">
|
3
|
+
Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see results
|
4
|
+
</div>
|
5
|
+
<script type="text/javascript">
|
6
|
+
|
7
|
+
$('#clusters').load("#url_for_solr/clustering#lens",
|
8
|
+
{'wt':'velocity', 'v.template':"clusterResults"});
|
9
|
+
</script>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#foreach ($clusters in $response.response.clusters)
|
2
|
+
#set($labels = $clusters.get('labels'))
|
3
|
+
#set($docs = $clusters.get('docs'))
|
4
|
+
<h3>#foreach ($label in $labels)$label#if( $foreach.hasNext ),#end#end</h3>
|
5
|
+
<ol>
|
6
|
+
#foreach ($cluDoc in $docs)
|
7
|
+
<li><a href="#url_for_home?q=id:$cluDoc">$cluDoc</a></li>
|
8
|
+
#end
|
9
|
+
</ol>
|
10
|
+
|
11
|
+
|
12
|
+
#end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#if($params.getBool("debugQuery",false))
|
2
|
+
<a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a>
|
3
|
+
<pre style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
|
4
|
+
<a href="#" onclick='jQuery(this).siblings("pre2").toggle(); return false;'>toggle all fields</a>
|
5
|
+
<pre2 style="display:none">
|
6
|
+
#foreach($fieldname in $doc.fieldNames)
|
7
|
+
<br>
|
8
|
+
<span class="field-name">$fieldname :</span>
|
9
|
+
<span>
|
10
|
+
#foreach($value in $doc.getFieldValues($fieldname))
|
11
|
+
$esc.html($value)
|
12
|
+
#end
|
13
|
+
</span>
|
14
|
+
#end
|
15
|
+
</br>
|
16
|
+
</pre2>
|
17
|
+
#end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#if($response.facetFields)
|
2
|
+
<h2 #annTitle("Facets generated by adding &facet.field= to the request")>Field Facets</h2>
|
3
|
+
#foreach($field in $response.facetFields)
|
4
|
+
## Hide facets without value
|
5
|
+
#if($field.values.size() > 0)
|
6
|
+
<span class="facet-field">$field.name</span>
|
7
|
+
|
8
|
+
<ul>
|
9
|
+
#foreach($facet in $field.values)
|
10
|
+
<li><a href="#url_for_facet_filter($field.name, $facet.name)">$facet.name</a> ($facet.count)</li>
|
11
|
+
#end
|
12
|
+
</ul>
|
13
|
+
#end
|
14
|
+
#end
|
15
|
+
#end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<h2 #annTitle("Facets generated by adding &facet.range= to the request")>Range Facets</h2>
|
2
|
+
#foreach ($field in $response.response.facet_counts.facet_ranges)
|
3
|
+
## Hide facets without value
|
4
|
+
#if($field.value.counts.size() > 0)
|
5
|
+
#set($name = $field.key)
|
6
|
+
#set($display = $name)
|
7
|
+
#set($f = $field.value.counts)
|
8
|
+
#set($start = $field.value.start)
|
9
|
+
#set($end = $field.value.end)
|
10
|
+
#set($gap = $field.value.gap)
|
11
|
+
#set($before = $field.value.before)
|
12
|
+
#set($after = $field.value.after)
|
13
|
+
#display_facet_range($f, $display, $name, $start, $end, $gap, $before, $after)
|
14
|
+
#end
|
15
|
+
#end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<hr/>
|
2
|
+
<div>
|
3
|
+
<span>Options:</span>
|
4
|
+
#if($request.params.get('debugQuery'))
|
5
|
+
<a href="#url_for_home?#q#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end">disable debug</a>
|
6
|
+
#else
|
7
|
+
<a href="#url_for_lens&debugQuery=true&fl=*,score">enable debug</a>
|
8
|
+
#end
|
9
|
+
#if($annotate)
|
10
|
+
<a href="#url_for_home?#q#if($list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#boostPrice">disable annotation</a>
|
11
|
+
#else
|
12
|
+
<a href="#url_for_lens&annotateBrowse=true">enable annotation</a>
|
13
|
+
#end
|
14
|
+
<a #annTitle("Click to switch to an XML response: &wt=xml") href="#url_for_lens&wt=xml#if($request.params.get('debugQuery'))&debugQuery=true#end">XML</a></div>
|
15
|
+
<div>Generated by <a href="http://wiki.apache.org/solr/VelocityResponseWriter">VelocityResponseWriter</a></div>
|
16
|
+
<div><span>Documentation: </span> <a href="http://lucene.apache.org/solr">Solr Home Page</a>, <a href="http://wiki.apache.org/solr">Solr Wiki</a></div>
|
17
|
+
<div>Disclaimer: The locations displayed in this demonstration are purely fictional. It is more than likely that no store with the items listed actually exists at that location!</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
## An example of using an arbitrary request parameter
|
3
|
+
<title>#param('title')</title>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
5
|
+
|
6
|
+
<script type="text/javascript" src="#{url_root}/js/lib/jquery-1.7.2.min.js"></script>
|
7
|
+
<link rel="stylesheet" type="text/css" href="#{url_for_solr}/admin/file?file=/velocity/main.css&contentType=text/css"/>
|
8
|
+
<link rel="stylesheet" href="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.css&contentType=text/css" type="text/css" />
|
9
|
+
<script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/jquery.autocomplete.js&contentType=text/javascript"></script>
|
10
|
+
|
11
|
+
|
12
|
+
<script>
|
13
|
+
$(document).ready(function(){
|
14
|
+
$("\#q").autocomplete('#{url_for_solr}/terms', { ## backslash escaped #q as that is a macro defined in VM_global_library.vm
|
15
|
+
extraParams:{
|
16
|
+
'terms.prefix': function() { return $("\#q").val();},
|
17
|
+
'terms.sort': 'count',
|
18
|
+
'terms.fl': 'name',
|
19
|
+
'wt': 'velocity',
|
20
|
+
'v.template': 'suggest'
|
21
|
+
}
|
22
|
+
}
|
23
|
+
).keydown(function(e){
|
24
|
+
if (e.keyCode === 13){
|
25
|
+
$("#query-form").trigger('submit');
|
26
|
+
}
|
27
|
+
});
|
28
|
+
|
29
|
+
// http://localhost:8983/solr/terms?terms.fl=name&terms.prefix=i&terms.sort=count
|
30
|
+
});
|
31
|
+
|
32
|
+
</script>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div class="result-document">
|
2
|
+
<div class="result-title"><b>$grouping.key</b></div>
|
3
|
+
<div>Total Matches in Group: $grouping.value.matches</div>
|
4
|
+
<div>#foreach ($group in $grouping.value.groups)
|
5
|
+
<div class="group-value">$group.groupValue <span #annTitle("The count of the number of documents in this group")>($group.doclist.numFound)</span></div>
|
6
|
+
<div class="group-doclist" #annTitle("Contains the top scoring documents in the group")>
|
7
|
+
#foreach ($doc in $group.doclist)
|
8
|
+
#set($docId = $doc.getFieldValue('id'))
|
9
|
+
#if($doc.getFieldValue('name'))
|
10
|
+
#parse("product-doc.vm")
|
11
|
+
#elseif($doc.getFieldValue('compName_s'))
|
12
|
+
#parse("join-doc.vm")
|
13
|
+
#else
|
14
|
+
#parse("richtext-doc.vm")
|
15
|
+
#end
|
16
|
+
#end
|
17
|
+
</div>
|
18
|
+
#end</div>
|
19
|
+
</div>
|
20
|
+
#if($params.getBool("debugQuery",false))
|
21
|
+
<a href="#" onclick='jQuery(this).siblings("pre").toggle(); return false;'>toggle explain</a>
|
22
|
+
<pre style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
|
23
|
+
#end
|
24
|
+
</div>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
.ac_results {
|
2
|
+
padding: 0px;
|
3
|
+
border: 1px solid black;
|
4
|
+
background-color: white;
|
5
|
+
overflow: hidden;
|
6
|
+
z-index: 99999;
|
7
|
+
}
|
8
|
+
|
9
|
+
.ac_results ul {
|
10
|
+
width: 100%;
|
11
|
+
list-style-position: outside;
|
12
|
+
list-style: none;
|
13
|
+
padding: 0;
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
.ac_results li {
|
18
|
+
margin: 0px;
|
19
|
+
padding: 2px 5px;
|
20
|
+
cursor: default;
|
21
|
+
display: block;
|
22
|
+
/*
|
23
|
+
if width will be 100% horizontal scrollbar will apear
|
24
|
+
when scroll mode will be used
|
25
|
+
*/
|
26
|
+
/*width: 100%;*/
|
27
|
+
font: menu;
|
28
|
+
font-size: 12px;
|
29
|
+
/*
|
30
|
+
it is very important, if line-height not setted or setted
|
31
|
+
in relative units scroll will be broken in firefox
|
32
|
+
*/
|
33
|
+
line-height: 16px;
|
34
|
+
overflow: hidden;
|
35
|
+
}
|
36
|
+
|
37
|
+
.ac_loading {
|
38
|
+
background: white url('indicator.gif') right center no-repeat;
|
39
|
+
}
|
40
|
+
|
41
|
+
.ac_odd {
|
42
|
+
background-color: #eee;
|
43
|
+
}
|
44
|
+
|
45
|
+
.ac_over {
|
46
|
+
background-color: #0A246A;
|
47
|
+
color: white;
|
48
|
+
}
|