Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Fix dc_format
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed May 23, 2017
1 parent dbbc0de commit cbf7be6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions app/services/discovery/layer_info_builder.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module Discovery
class LayerInfoBuilder < GeoWorks::Discovery::DocumentBuilder::LayerInfoBuilder
private

# Uses file mime type to determine file format.
# @return [String] file format code
def format
if geo_concern.model_name == 'MapSet'
GeoWorks::ImageFormatService.code('image/tiff')
else
super
end
end
end
end
2 changes: 1 addition & 1 deletion config/initializers/plum_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def config_yaml
GeoWorks::Discovery::DocumentBuilder::SpatialBuilder,
GeoWorks::Discovery::DocumentBuilder::DateBuilder,
GeoWorks::Discovery::DocumentBuilder::ReferencesBuilder,
GeoWorks::Discovery::DocumentBuilder::LayerInfoBuilder,
Discovery::LayerInfoBuilder,
Discovery::SlugBuilder,
Discovery::IIIFBuilder,
Discovery::WxsBuilder
Expand Down

0 comments on commit cbf7be6

Please sign in to comment.