diff --git a/app/assets/images/thumb/nyu-2451-60458.jpg b/app/assets/images/thumb/nyu-2451-60458.jpg new file mode 100644 index 00000000..e39f2894 Binary files /dev/null and b/app/assets/images/thumb/nyu-2451-60458.jpg differ diff --git a/app/views/catalog/_laefer_sunset.html.erb b/app/views/catalog/_laefer_sunset.html.erb new file mode 100644 index 00000000..53596b3c --- /dev/null +++ b/app/views/catalog/_laefer_sunset.html.erb @@ -0,0 +1,9 @@ +<% document ||= @document %> + diff --git a/app/views/catalog/_upper_metadata.html.erb b/app/views/catalog/_upper_metadata.html.erb index 8180eb22..5a7fe06c 100644 --- a/app/views/catalog/_upper_metadata.html.erb +++ b/app/views/catalog/_upper_metadata.html.erb @@ -6,9 +6,12 @@ <% end %> - <% if (document["dc_creator_sm"]) && (document["dc_creator_sm"].include? ("Debra F. Laefer")) %> + <% if (document["dct_isPartOf_sm"]) && (document["dct_isPartOf_sm"].include? ("2015 Dublin LiDAR")) %> <%= render 'laefer_notice' %> <% end %> + <% if (document["dct_isPartOf_sm"]) && (document["dct_isPartOf_sm"].include? ("2019 Sunset Park LiDAR")) %> + <%= render 'laefer_sunset' %> + <% end %> <%# From https://github.com/projectblacklight/blacklight/blob/master/app/views/catalog/_show_default.html.erb %> <%# default partial to display solr document fields in catalog show view -%> diff --git a/lib/nyugeoblacklight/curated_collections.rb b/lib/nyugeoblacklight/curated_collections.rb index f9ded28c..7172a1df 100644 --- a/lib/nyugeoblacklight/curated_collections.rb +++ b/lib/nyugeoblacklight/curated_collections.rb @@ -14,15 +14,16 @@ def CuratedCollections.collections def CuratedCollections.recent [ - {title: "2015 Dublin LiDAR", description: "High-density LiDAR datasets of Dublin, from Debra Laefer (NYU) and collaborators", f: {"dct_isPartOf_sm" => ["2015 Dublin LiDAR"]}}, + {title: "2019 Sunset Park LiDAR", description: "High-density LiDAR datasets of Sunset Park, Brooklyn, from Debra Laefer (NYU) and collaborators", f: {"dct_isPartOf_sm" => ["2019 Sunset Park LiDAR"]}}, {title: "2004 New York State Tax Parcels", description: "Point data on property ownership and land value", f: {"dct_isPartOf_sm" => ["NYS GIS Clearinghouse"]}}, - {title: "Soviet Topographic Maps of the Arabian Peninsula", description: "Raster scans of Soviet military topographic maps produced in the late 1970s", f: { "dc_publisher_s" => ["Omni Resources (Firm)"]}} + {title: "2011 India Census Data", description: "Vector village-level demographic data from the 2011 India Census", f: { "dc_publisher_s" => ["ML InfoMap (Firm)"]}} ] end def CuratedCollections.maps [ {title: "2015 Aerial Laser and Photogrammetry Survey of Dublin", slug: "nyu-2451-38684"}, + {title: "2019 Aerial Lasar and Photogrammetry Survey of Sunset Park, Brooklyn", slug: "nyu-2451-60458"}, {title: "China: Ch'ang-sha Region", slug: "harvard-ams7810-s250-u54-nh49-16"}, {title: "1967 Communist China Agriculture", slug: "nyu-2451-36739"}, {title: "2015 New York City Real Estate Sales", slug: "nyu-2451-34678"}, diff --git a/lib/nyugeoblacklight/version.rb b/lib/nyugeoblacklight/version.rb index b597d070..148dc4dc 100644 --- a/lib/nyugeoblacklight/version.rb +++ b/lib/nyugeoblacklight/version.rb @@ -1,3 +1,3 @@ module NyuGeoblacklight - VERSION = '1.9.3'.freeze + VERSION = '1.9.4'.freeze end diff --git a/spec/fixtures/solr_documents/diag-fixture.json b/spec/fixtures/solr_documents/diag-fixture.json new file mode 100644 index 00000000..6c7969db --- /dev/null +++ b/spec/fixtures/solr_documents/diag-fixture.json @@ -0,0 +1,51 @@ +{ + "dc_creator_sm": [ + "Debra F. Laefer", + "Anh-Vu Vo" + ], + "dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index of the Diagonal flight paths", + "dc_format_s": "GeoJSON", + "dc_identifier_s": "http://hdl.handle.net/2451/60459", + "dc_language_s": "English", + "dc_publisher_s": "New York University. Center for Urban Science and Progress", + "dc_rights_s": "Public", + "dc_subject_sm": [ + "Cities and towns", + "Urban density", + "Urban development", + "Cities and towns--United States", + "Remote Sensing", + "Community development, Urban", + "Land use, Urban" + ], + "dc_title_s": "Index of Diagonal Flight Paths for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019", + "dc_type_s": "Dataset", + "dct_isPartOf_sm": [ + "NYU Research Data", + "2019 Sunset Park LiDAR" + ], + "dct_issued_s": "2019", + "dct_provenance_s": "NYU", + "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60459\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://openindexmaps.org\",\"https://raw.githubusercontent.com/OpenIndexMaps/edu.nyu/master/nyu-2451-60459.geojson\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}", + "dct_source_sm": [ + + ], + "dct_spatial_sm": [ + "Sunset Park, Kings County, New York, United States", + "Brooklyn, Kings County, New York, United States", + "New York City, New York, United States" + ], + "dct_temporal_sm": [ + "2019" + ], + "geoblacklight_version": "1.0", + "layer_geom_type_s": "Mixed", + "layer_modified_dt": "2019-12-19T14:28:18Z", + "layer_slug_s": "nyu-2451-60459", + "nyu_addl_dspace_s": "61433", + "nyu_addl_format_sm": [ + "GeoJSON" + ], + "solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)", + "solr_year_i": 2019 +} diff --git a/spec/fixtures/solr_documents/orthog-fixture.json b/spec/fixtures/solr_documents/orthog-fixture.json new file mode 100644 index 00000000..6af7d2a7 --- /dev/null +++ b/spec/fixtures/solr_documents/orthog-fixture.json @@ -0,0 +1,51 @@ +{ + "dc_creator_sm": [ + "Debra F. Laefer", + "Anh-Vu Vo" + ], + "dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index to the Orthogonal flight paths", + "dc_format_s": "GeoJSON", + "dc_identifier_s": "http://hdl.handle.net/2451/60460", + "dc_language_s": "English", + "dc_publisher_s": "New York University. Center for Urban Science and Progress", + "dc_rights_s": "Public", + "dc_subject_sm": [ + "Cities and towns", + "Urban density", + "Urban development", + "Cities and towns--United States", + "Remote Sensing", + "Community development, Urban", + "Land use, Urban" + ], + "dc_title_s": "Index of Orthogonal Flight Paths for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019", + "dc_type_s": "Dataset", + "dct_isPartOf_sm": [ + "NYU Research Data", + "2019 Sunset Park LiDAR" + ], + "dct_issued_s": "2019", + "dct_provenance_s": "NYU", + "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60460\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://openindexmaps.org\":\"https://raw.githubusercontent.com/OpenIndexMaps/edu.nyu/master/nyu-2451-60459.geojson\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}", + "dct_source_sm": [ + + ], + "dct_spatial_sm": [ + "Sunset Park, Kings County, New York, United States", + "Brooklyn, Kings County, New York, United States", + "New York City, New York, United States" + ], + "dct_temporal_sm": [ + "2019" + ], + "geoblacklight_version": "1.0", + "layer_geom_type_s": "Mixed", + "layer_modified_dt": "2019-12-19T14:28:18Z", + "layer_slug_s": "nyu-2451-60460", + "nyu_addl_dspace_s": "61434", + "nyu_addl_format_sm": [ + "GeoJSON" + ], + "solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)", + "solr_year_i": 2019 +} diff --git a/spec/fixtures/solr_documents/sunset-park-flight.json b/spec/fixtures/solr_documents/sunset-park-flight.json new file mode 100644 index 00000000..8e2d10ce --- /dev/null +++ b/spec/fixtures/solr_documents/sunset-park-flight.json @@ -0,0 +1,57 @@ +{ + "dc_identifier_s": "http://hdl.handle.net/2451/60462", + "dc_title_s": "LiDAR Flight F_190511_161348 for Sunset Park, Brooklyn, NY, 2019", + "dc_description_s": "This record contains aerial laser scanning (ALS) and photogrammetry data that corresponds to flight 190511_161348is one part of data that was collected over an area of about 0.5 kmĀ² in Sunset Park, Brooklyn, NY in April, 2019. Each flight line package includes one LiDAR Point Cloud file in LAZ format, two LiDAR Full waveform files in PulseWaves format, two LiDAR Full waveform files in LAS format, and a series of RGBI Nadir Imagery files in TIFF format. Future data releases will include 16 hyperspectral data files. In this 2019 Sunset Park collection, billions of laser points were acquired (inclusive of partially covered areas). ALS was carried out by contractors using a RIEGL LMS-Q680i LiDAR Scanner and an ITRES MicroCASI 1920 Hyperspectral Camera. The average flying altitude was approximately 1000 feet above groud level with a total of 85 flight paths. This data was harvested to obtain high accuracy models of the urban environment that can be used as a basis for urban informatics research and various practical applications, including digital mapping for auto navigation, pedestrian wind modeling, disability access optimization, and disaster mitigation. For full information on this data, consult the documentation and metadata. See the source dataset for a guide to the entire collection. A collection-level manifest of SHA-256 checksums is available in the nyu-2451-60458-manifest.json' file, within the preservation record. Users may also find a stable link to this collection at https://doi.org/xxxxxxxx/ and may find bulk download instructions via wget in the metadata tab. This data is released with an Attribution 4.0 International (CC BY 4.0) license.", + "dc_rights_s": "Public", + "dct_provenance_s": "NYU", + "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60462\",\"http://schema.org/downloadUrl\":\"https://archivefda-dev.dlib.nyu.edu/bitstream/2451/60462/1/nyu_2451_60462_cir_F_190511_161348.zip\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/81335/nyu_2451_60462_doc.zip\"}", + "layer_id_s": "sdr:nyu_2451_60462", + "layer_slug_s": "nyu-2451-60462", + "layer_geom_type_s": "Mixed", + "layer_modified_dt": "2017-06-06T15:21:27Z", + "dc_format_s": "LAZ", + "dc_language_s": "English", + "dc_type_s": "Dataset", + "dc_publisher_s": "New York University. Center for Urban Science and Progress", + "dc_creator_sm": [ + "Debra F. Laefer", + "Saleh Abuwarda", + "Anh-Vu Vo", + "Linh Truong-Hong", + "Hamid Gharibi" + ], + "dc_subject_sm": [ + "Cities and towns", + "Urban density", + "Urban development" + ], + "dct_issued_s": "2020", + "dct_temporal_sm": [ + "2019" + ], + "dct_spatial_sm": [ + "Sunset Park, Brooklyn, NY", + "Brooklyn, NY" + ], + "solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)", + "solr_year_i": 2019, + "geoblacklight_version": "1.0", + "nyu_addl_format_sm": [ + "LAZ (Point-cloud)", + "LAS (Full-waveform)", + "Pulsewaves (Full-waveform)", + "JPG (Oblique photos)", + "GeoTIFF (Geo-referenced RGB)", + "GeoTIFF (Geo-referenced CIR)" + ], + "dct_source_sm": [ + "nyu-2451-60459" + ], + "nyu_addl_dspace_s": "39643", + "nyu_addl_license_s": "Attribution 4.0 International (CC BY 4.0)", + "nyu_addl_downloads_s": "{\"LAZ (Point-cloud)\":\"https://archive.nyu.edu/retrieve/80003/nyu_2451_38645_pc_F_150326_120403.zip\",\"LAS (Full-waveform)\":\"https://archivefda-dev.dlib.nyu.edu/bitstream/2451/60462/2/nyu_2451_60462_fwf_las_F_190511_161348.zip\",\"Pulsewaves (Full-waveform)\":\"https://archive.nyu.edu/retrieve/80005/nyu_2451_38645_fwf_plswvs_F_150326_120403.zip\",\"GeoTIFF (Geo-referenced RGB)\":\"https://archive.nyu.edu/retrieve/80240/nyu_2451_38645_rgb_F_150326_120403.zip\",\"GeoTIFF (Geo-referenced CIR)\":\"https://archive.nyu.edu/retrieve/80001/nyu_2451_38645_cir_F_150326_120403.zip\",\"JPG (Oblique photos)\":\"https://archive.nyu.edu/retrieve/80004/nyu_2451_38645_oblique_F_150326_120403.zip\"}", + "dct_isPartOf_sm": [ + "2015 Dublin LiDAR", + "NYU Research Data" + ] +} diff --git a/spec/fixtures/solr_documents/sunsetpark-lidar-diagonal-fixture.json b/spec/fixtures/solr_documents/sunsetpark-lidar-diagonal-fixture.json index 4461e27c..74c2865e 100644 --- a/spec/fixtures/solr_documents/sunsetpark-lidar-diagonal-fixture.json +++ b/spec/fixtures/solr_documents/sunsetpark-lidar-diagonal-fixture.json @@ -1,6 +1,6 @@ { "dc_creator_sm": [ - "Debra Laefer", + "Debra F. Laefer", "Anh-Vu Vo" ], "dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY. It is an index of the Diagonal flight paths", diff --git a/spec/fixtures/solr_documents/tile-fixture.json b/spec/fixtures/solr_documents/tile-fixture.json new file mode 100644 index 00000000..1753997e --- /dev/null +++ b/spec/fixtures/solr_documents/tile-fixture.json @@ -0,0 +1,51 @@ +{ + "dc_creator_sm": [ + "Debra F. Laefer", + "Anh-Vu Vo" + ], + "dc_description_s": "This collection record provides a way to consume parts of the 2019 LiDAR Dataset for Sunset Park, Brooklyn NY.", + "dc_format_s": "GeoJSON", + "dc_identifier_s": "http://hdl.handle.net/2451/60461", + "dc_language_s": "English", + "dc_publisher_s": "New York University. Center for Urban Science and Progress", + "dc_rights_s": "Public", + "dc_subject_sm": [ + "Cities and towns", + "Urban density", + "Urban development", + "Cities and towns--United States", + "Remote Sensing", + "Community development, Urban", + "Land use, Urban" + ], + "dc_title_s": "Index of Tiles for LiDAR Data Collection in Sunset Park, Brooklyn, NY, 2019", + "dc_type_s": "Dataset", + "dct_isPartOf_sm": [ + "NYU Research Data", + "2019 Sunset Park LiDAR" + ], + "dct_issued_s": "2019", + "dct_provenance_s": "NYU", + "dct_references_s": "{\"http://schema.org/url\":\"http://hdl.handle.net/2451/60461\",\"http://www.opengis.net/def/serviceType/ogc/wfs\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wfs\",\"http://www.opengis.net/def/serviceType/ogc/wms\":\"https://maps-public.geo.nyu.edu/geoserver/sdr/wms\",\"http://lccn.loc.gov/sh85035852\":\"https://archive.nyu.edu/retrieve/122246/nyu_2451_60458_doc.zip\"}", + "dct_source_sm": [ + + ], + "dct_spatial_sm": [ + "Sunset Park, Kings County, New York, United States", + "Brooklyn, Kings County, New York, United States", + "New York City, New York, United States" + ], + "dct_temporal_sm": [ + "2019" + ], + "geoblacklight_version": "1.0", + "layer_geom_type_s": "Mixed", + "layer_modified_dt": "2019-12-19T14:28:18Z", + "layer_slug_s": "nyu-2451-60461", + "nyu_addl_dspace_s": "61435", + "nyu_addl_format_sm": [ + "GeoJSON" + ], + "solr_geom": "ENVELOPE(-74.0395867889, -74.0102522224, 40.6508411236, 40.6284819074)", + "solr_year_i": 2019 +} \ No newline at end of file