geoblacklight 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +19 -19
- data/app/assets/stylesheets/geoblacklight/_geoblacklight.scss +2 -0
- data/app/assets/stylesheets/geoblacklight/modules/coderay.scss +147 -0
- data/app/assets/stylesheets/geoblacklight/modules/icon-customization.scss +5 -1
- data/app/assets/stylesheets/geoblacklight/modules/metadata.scss +5 -0
- data/app/assets/stylesheets/geoblacklight/modules/results.scss +1 -0
- data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +6 -0
- data/app/controllers/download_controller.rb +5 -5
- data/app/views/catalog/_downloads.html.erb +48 -0
- data/app/views/catalog/_home_text.html.erb +6 -6
- data/app/views/catalog/_index_split_default.html.erb +2 -2
- data/app/views/catalog/_metadata.html.erb +12 -0
- data/app/views/catalog/_search_form_no_navbar.html.erb +2 -2
- data/app/views/catalog/metadata.html.erb +1 -0
- data/app/views/catalog/metadata.js.erb +7 -0
- data/app/views/catalog/{web_services.html → web_services.html.erb} +0 -0
- data/config/locales/geoblacklight.en.yml +3 -0
- data/geoblacklight.gemspec +1 -0
- data/lib/generators/geoblacklight/templates/catalog_controller.rb +2 -0
- data/lib/generators/geoblacklight/templates/settings.yml +7 -1
- data/lib/geoblacklight.rb +1 -0
- data/lib/geoblacklight/controller_override.rb +4 -0
- data/lib/geoblacklight/download.rb +70 -58
- data/lib/geoblacklight/download/geojson_download.rb +19 -17
- data/lib/geoblacklight/download/geotiff_download.rb +17 -15
- data/lib/geoblacklight/download/hgl_download.rb +15 -13
- data/lib/geoblacklight/download/kmz_download.rb +14 -12
- data/lib/geoblacklight/download/shapefile_download.rb +14 -12
- data/lib/geoblacklight/engine.rb +1 -0
- data/lib/geoblacklight/metadata.rb +41 -0
- data/lib/geoblacklight/routes.rb +1 -0
- data/lib/geoblacklight/solr_document.rb +7 -1
- data/lib/geoblacklight/version.rb +1 -1
- data/lib/tasks/configure_solr.rake +36 -0
- data/lib/tasks/geoblacklight.rake +0 -6
- data/spec/controllers/download_controller_spec.rb +1 -1
- data/spec/features/download_layer_spec.rb +3 -3
- data/spec/features/metadata_panel_spec.rb +22 -0
- data/spec/fixtures/solr_documents/actual-papermap1.json +0 -1
- data/spec/fixtures/solr_documents/actual-point1.json +0 -1
- data/spec/fixtures/solr_documents/actual-polygon1.json +1 -2
- data/spec/fixtures/solr_documents/actual-raster1.json +1 -2
- data/spec/fixtures/solr_documents/harvard_raster.json +1 -2
- data/spec/fixtures/solr_documents/public_iiif_princeton.json +0 -1
- data/spec/fixtures/solr_documents/public_polygon_mit.json +1 -6
- data/spec/fixtures/solr_documents/restricted-line.json +1 -2
- data/spec/lib/geoblacklight/download/geojson_download_spec.rb +9 -4
- data/spec/lib/geoblacklight/download/geotiff_download_spec.rb +9 -4
- data/spec/lib/geoblacklight/download/hgl_download_spec.rb +8 -3
- data/spec/lib/geoblacklight/download/kmz_download_spec.rb +9 -4
- data/spec/lib/geoblacklight/download/shapefile_download_spec.rb +9 -4
- data/spec/lib/geoblacklight/download_spec.rb +3 -3
- data/spec/lib/geoblacklight/metadata_spec.rb +25 -0
- metadata +29 -4
- data/app/views/catalog/_show_tools.html.erb +0 -63
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 336d18ec6cafab94ffffefb1bab4ea094d00a236
|
4
|
+
data.tar.gz: 5c2897ee61afa85bc2cad7cc76c5c44e2fc2b1ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2520695818063a834b764469d3874269ab69e27cb640093c233f35af57982b62f99fd08818178ca27ebf6ac8d43d12c42ad6b3ca3e2cde0db155162b74a50ee5
|
7
|
+
data.tar.gz: 09a53748f413c5f1a77c0852eae201a758ddd67194a0452671b67bd1878468c68cf4e6b85920f9ef251e9feb5b5bb29e929d1d9ad75ec030d61aafc36371e295
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ To install Solr (with Jetty)
|
|
22
22
|
$ cd app-name
|
23
23
|
$ rake jetty:download
|
24
24
|
$ rake jetty:unzip
|
25
|
-
$ rake geoblacklight:
|
25
|
+
$ rake geoblacklight:configure_solr
|
26
26
|
```
|
27
27
|
|
28
28
|
Or install with [Docker](https://github.com/geoblacklight/geoblacklight-docker)
|
data/Rakefile
CHANGED
@@ -13,6 +13,8 @@ require 'rspec/core/rake_task'
|
|
13
13
|
require 'engine_cart/rake_task'
|
14
14
|
require 'jettywrapper'
|
15
15
|
|
16
|
+
Dir.glob('lib/tasks/configure_solr.rake').each { |r| load r}
|
17
|
+
|
16
18
|
task default: :ci
|
17
19
|
|
18
20
|
RSpec::Core::RakeTask.new(:spec)
|
@@ -26,24 +28,22 @@ task :fixtures => ['engine_cart:generate'] do
|
|
26
28
|
end
|
27
29
|
|
28
30
|
desc "Execute Continuous Integration build"
|
29
|
-
task :ci
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
system 'curl -o jetty/solr/blacklight-core/conf/schema.xml https://raw.githubusercontent.com/geoblacklight/geoblacklight-schema/master/conf/schema.xml'
|
47
|
-
system 'curl -o jetty/solr/blacklight-core/conf/solrconfig.xml https://raw.githubusercontent.com/geoblacklight/geoblacklight-schema/master/conf/solrconfig.xml'
|
31
|
+
task :ci do
|
32
|
+
if Rails.env.test?
|
33
|
+
Rake::Task['engine_cart:generate'].invoke
|
34
|
+
Rake::Task['jetty:clean'].invoke
|
35
|
+
Rake::Task['geoblacklight:configure_solr'].invoke
|
36
|
+
ENV['environment'] = "test"
|
37
|
+
jetty_params = Jettywrapper.load_config
|
38
|
+
jetty_params[:startup_wait]= 60
|
39
|
+
|
40
|
+
Jettywrapper.wrap(jetty_params) do
|
41
|
+
Rake::Task["fixtures"].invoke
|
42
|
+
|
43
|
+
# run the tests
|
44
|
+
Rake::Task["spec"].invoke
|
45
|
+
end
|
46
|
+
else
|
47
|
+
system('rake ci RAILS_ENV=test')
|
48
48
|
end
|
49
49
|
end
|
@@ -13,12 +13,14 @@
|
|
13
13
|
|
14
14
|
@import 'font-awesome';
|
15
15
|
@import 'geoblacklight/styles';
|
16
|
+
@import 'modules/coderay';
|
16
17
|
@import 'modules/mixins';
|
17
18
|
@import 'modules/icons';
|
18
19
|
@import 'modules/icon-customization';
|
19
20
|
@import 'modules/home';
|
20
21
|
@import 'modules/item';
|
21
22
|
@import 'modules/layer_opacity';
|
23
|
+
@import 'modules/metadata';
|
22
24
|
@import 'modules/results';
|
23
25
|
@import 'modules/geosearch';
|
24
26
|
@import 'modules/search_widgets';
|
@@ -0,0 +1,147 @@
|
|
1
|
+
/*
|
2
|
+
* Based on: https://github.com/pie4dan/CodeRay-GitHub-Theme/blob/master/coderay.css
|
3
|
+
* From: https://github.com/h3rald/glyph/blob/master/styles/coderay.scss
|
4
|
+
*/
|
5
|
+
.CodeRay {
|
6
|
+
background-color: #FFF;
|
7
|
+
border: 1px solid #ECECEC;
|
8
|
+
line-height: 1.3em;
|
9
|
+
font-size: 12px;
|
10
|
+
font-family: 'Inconsolata', Monospace;
|
11
|
+
color: #000;
|
12
|
+
padding: 10px;
|
13
|
+
margin: 1em 0;
|
14
|
+
}
|
15
|
+
.CodeRay pre, .CodeRay code {
|
16
|
+
padding: 0;
|
17
|
+
margin: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
div.CodeRay {
|
21
|
+
padding: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
span.CodeRay { white-space: pre; border: 0px; padding: 2px }
|
25
|
+
|
26
|
+
table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
|
27
|
+
table.CodeRay td {
|
28
|
+
padding: 1em 0.5em;
|
29
|
+
vertical-align: top;
|
30
|
+
}
|
31
|
+
|
32
|
+
.CodeRay .line-numbers, .CodeRay .no {
|
33
|
+
margin: 0 2px 0 0;
|
34
|
+
background-color: #ECECEC;
|
35
|
+
color: #AAA;
|
36
|
+
width: 20px;
|
37
|
+
text-align: right;
|
38
|
+
}
|
39
|
+
.CodeRay .line-numbers tt { font-weight: bold }
|
40
|
+
.CodeRay .line-numbers .highlighted { color: red }
|
41
|
+
.CodeRay .line { display: block; float: left; width: 100%; }
|
42
|
+
.CodeRay .no { padding: 0px 4px }
|
43
|
+
.CodeRay .code { width: 100% }
|
44
|
+
|
45
|
+
ol.CodeRay { font-size: 10pt }
|
46
|
+
ol.CodeRay li { white-space: pre }
|
47
|
+
|
48
|
+
.CodeRay .code pre { overflow: auto }
|
49
|
+
|
50
|
+
.CodeRay .debug { color:white ! important; background:blue ! important; }
|
51
|
+
|
52
|
+
.CodeRay .attribute-name-fat { color:#00C }
|
53
|
+
.CodeRay .attribute-name { color:#007 }
|
54
|
+
.CodeRay .annotation { color:#f08 }
|
55
|
+
.CodeRay .attribute-value { color:#700 }
|
56
|
+
.CodeRay .attribute-value-fat { color:#C00 }
|
57
|
+
.CodeRay .binary { color:#509; font-weight:bold }
|
58
|
+
.CodeRay .comment { color:#998; font-style: italic; border: 0; background: transparent;}
|
59
|
+
|
60
|
+
.CodeRay .char { color:#04D }
|
61
|
+
.CodeRay .ch .content { color:#04D }
|
62
|
+
.CodeRay .ch .delimiter { color:#039 }
|
63
|
+
|
64
|
+
.CodeRay .class { color:#458; font-weight:bold }
|
65
|
+
.CodeRay .complex { color:#A08; font-weight:bold }
|
66
|
+
.CodeRay .constant { color:teal; }
|
67
|
+
.CodeRay .color { color:#0A0 }
|
68
|
+
.CodeRay .class-variable { color:#369 }
|
69
|
+
.CodeRay .decorator { color:#B0B; }
|
70
|
+
.CodeRay .definition { color:#099; font-weight:bold }
|
71
|
+
.CodeRay .directive { color:#088; font-weight:bold }
|
72
|
+
.CodeRay .delimiter { color:black }
|
73
|
+
.CodeRay .doc { color:#970 }
|
74
|
+
.CodeRay .doc-type { color:#34b }
|
75
|
+
.CodeRay .doc-string { color:#D42; font-weight:bold }
|
76
|
+
.CodeRay .escape { color:#666; font-weight:bold }
|
77
|
+
.CodeRay .entity { color:#800; font-weight:bold }
|
78
|
+
.CodeRay .error { color:#F00; background-color:#FAA }
|
79
|
+
.CodeRay .exception { color:#C00; font-weight:bold }
|
80
|
+
.CodeRay .float { color:#099; }
|
81
|
+
.CodeRay .function { color:#900; font-weight:bold }
|
82
|
+
.CodeRay .global-variable { color:teal; font-weight:bold }
|
83
|
+
.CodeRay .hex { color:#058; font-weight:bold }
|
84
|
+
.CodeRay .imaginary { color:#099; }
|
85
|
+
.CodeRay .include { color:#B44; font-weight:bold }
|
86
|
+
|
87
|
+
.CodeRay .inline { color: black }
|
88
|
+
.CodeRay .inline .inline { background: #ccc }
|
89
|
+
.CodeRay .inline .inline .inline { background: #bbb }
|
90
|
+
.CodeRay .inline .inline-delimiter { color: #D14; }
|
91
|
+
.CodeRay .inline-delimiter { color: #D14; }
|
92
|
+
|
93
|
+
.CodeRay .imaginary { color:#f00; }
|
94
|
+
.CodeRay .include { color:#B2B; font-weight:bold }
|
95
|
+
.CodeRay .instance-variable { color:teal }
|
96
|
+
.CodeRay .label { color:#970; font-weight:bold }
|
97
|
+
.CodeRay .local-variable { color:#963 }
|
98
|
+
.CodeRay .octal { color:#40E; font-weight:bold }
|
99
|
+
.CodeRay .operator-fat { color:#000; font-weight:bold }
|
100
|
+
.CodeRay .operator { }
|
101
|
+
.CodeRay .predefined-constant { font-weight:bold }
|
102
|
+
.CodeRay .predefined { color:#369; font-weight:bold }
|
103
|
+
.CodeRay .preprocessor { color:#579; }
|
104
|
+
.CodeRay .pseudo-class { color:#00C; font-weight:bold }
|
105
|
+
.CodeRay .predefined-type { color:#074; font-weight:bold }
|
106
|
+
.CodeRay .reserved, .keyword { color:#000; font-weight:bold }
|
107
|
+
|
108
|
+
.CodeRay .key { color: #808; }
|
109
|
+
.CodeRay .key .delimiter { color: #606; }
|
110
|
+
.CodeRay .key .char { color: #80f; }
|
111
|
+
.CodeRay .value { color: #088; }
|
112
|
+
|
113
|
+
.CodeRay .regexp { background-color:#fff0ff }
|
114
|
+
.CodeRay .regexp .content { color:#808 }
|
115
|
+
.CodeRay .regexp .delimiter { color:#404 }
|
116
|
+
.CodeRay .regexp .modifier { color:#C2C }
|
117
|
+
.CodeRay .regexp .function { color:#404; font-weight: bold }
|
118
|
+
|
119
|
+
.CodeRay .string { color: #D20; }
|
120
|
+
.CodeRay .string .content { color: #D14; }
|
121
|
+
.CodeRay .string .char { color: #D14; }
|
122
|
+
.CodeRay .string .delimiter { color: #D14; }
|
123
|
+
|
124
|
+
.CodeRay .shell { color:#D14 }
|
125
|
+
.CodeRay .shell .content { }
|
126
|
+
.CodeRay .shell .delimiter { color:#D14 }
|
127
|
+
|
128
|
+
.CodeRay .symbol { color:#990073 }
|
129
|
+
.CodeRay .symbol .content { color:#A60 }
|
130
|
+
.CodeRay .symbol .delimiter { color:#630 }
|
131
|
+
|
132
|
+
.CodeRay .tag { color:#070 }
|
133
|
+
.CodeRay .tag-fat { color:#070; font-weight:bold }
|
134
|
+
.CodeRay .tag-special { color:#D70; font-weight:bold }
|
135
|
+
.CodeRay .type { color:#339; font-weight:bold }
|
136
|
+
.CodeRay .variable { color:#036 }
|
137
|
+
.CodeRay .xml-text { color:#444 }
|
138
|
+
|
139
|
+
.CodeRay .insert { background: #afa; }
|
140
|
+
.CodeRay .delete { background: #faa; }
|
141
|
+
.CodeRay .change { color: #aaf; background: #007; }
|
142
|
+
.CodeRay .head { color: #f8f; background: #505 }
|
143
|
+
|
144
|
+
.CodeRay .insert .insert { color: #080; font-weight:bold }
|
145
|
+
.CodeRay .delete .delete { color: #800; font-weight:bold }
|
146
|
+
.CodeRay .change .change { color: #66f; }
|
147
|
+
.CodeRay .head .head { color: #f4f; }
|
@@ -2,6 +2,7 @@
|
|
2
2
|
a .geoblacklight {
|
3
3
|
color: $gray-light;
|
4
4
|
}
|
5
|
+
|
5
6
|
.geoblacklight-citation {
|
6
7
|
text-align: center;
|
7
8
|
width: 1.4em;
|
@@ -21,4 +22,9 @@
|
|
21
22
|
text-align: center;
|
22
23
|
width: 1.4em;
|
23
24
|
}
|
25
|
+
|
26
|
+
.geoblacklight-metadata {
|
27
|
+
text-align: center;
|
28
|
+
width: 1.4em;
|
29
|
+
}
|
24
30
|
}
|
@@ -22,7 +22,7 @@ class DownloadController < ApplicationController
|
|
22
22
|
def hgl
|
23
23
|
@response, @document = get_solr_response_for_doc_id params[:id]
|
24
24
|
if params[:email]
|
25
|
-
response = HglDownload.new(@document, params[:email]).get
|
25
|
+
response = Geoblacklight::HglDownload.new(@document, params[:email]).get
|
26
26
|
if response.nil?
|
27
27
|
flash[:danger] = t 'geoblacklight.download.error'
|
28
28
|
else
|
@@ -42,13 +42,13 @@ class DownloadController < ApplicationController
|
|
42
42
|
def check_type
|
43
43
|
case params[:type]
|
44
44
|
when 'shapefile'
|
45
|
-
response = ShapefileDownload.new(@document).get
|
45
|
+
response = Geoblacklight::ShapefileDownload.new(@document).get
|
46
46
|
when 'kmz'
|
47
|
-
response = KmzDownload.new(@document).get
|
47
|
+
response = Geoblacklight::KmzDownload.new(@document).get
|
48
48
|
when 'geojson'
|
49
|
-
response = GeojsonDownload.new(@document).get
|
49
|
+
response = Geoblacklight::GeojsonDownload.new(@document).get
|
50
50
|
when 'geotiff'
|
51
|
-
response = GeotiffDownload.new(@document).get
|
51
|
+
response = Geoblacklight::GeotiffDownload.new(@document).get
|
52
52
|
end
|
53
53
|
response
|
54
54
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<% document ||= @document %>
|
2
|
+
<% if document_downloadable? %>
|
3
|
+
<div class='panel-body'>
|
4
|
+
<div class='btn-group' itemprop='distribution' itemscope='itemscope' itemtype='http://schema.org/DataDownload'>
|
5
|
+
<% if document.direct_download.present? %>
|
6
|
+
<%= link_to(download_text(@document[:dc_format_s]), document.direct_download[:download], class: 'btn btn-default', 'contentUrl' => document.direct_download[:download], data: { download: 'trigger', download_type: 'direct', download_id: document[:layer_slug_s] }) %>
|
7
|
+
<% elsif document.hgl_download.present? %>
|
8
|
+
<%= link_to(download_text(document.download_types.first[0]),
|
9
|
+
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document[:layer_slug_s] },
|
10
|
+
class: 'btn btn-default') %>
|
11
|
+
<% else %>
|
12
|
+
<%= link_to(download_text(document.download_types.first[0]), '', data: { download_path: "#{download_path(document[:layer_slug_s], type: document.download_types.first[0])}", download: 'trigger', download_type: document.download_types.first[0], download_id: document[:layer_slug_s] }, class: 'btn btn-default') %>
|
13
|
+
<% end %>
|
14
|
+
<button type='button' class='btn btn-default dropdown-toggle download-dropdown-toggle' data-toggle='dropdown' aria-expanded='false'>
|
15
|
+
<span class='caret'></span>
|
16
|
+
<span class='sr-only'>Toggle Download Dropdown</span>
|
17
|
+
</button>
|
18
|
+
<ul class='dropdown-menu' role='menu'>
|
19
|
+
<% if document.hgl_download.present? %>
|
20
|
+
<li role="presentation" class="dropdown-header">Original</li>
|
21
|
+
<li>
|
22
|
+
<%= link_to(download_text(document.download_types.first[0]),
|
23
|
+
download_hgl_path(id: document), data: {ajax_modal: 'trigger', download: 'trigger', download_type: 'harvard-hgl', download_id: document[:layer_slug_s] }) %>
|
24
|
+
</li>
|
25
|
+
<% else %>
|
26
|
+
<% if document.direct_download.present? %>
|
27
|
+
<li role="presentation" class="dropdown-header">Original</li>
|
28
|
+
<li>
|
29
|
+
<%= link_to(download_text(@document[:dc_format_s]), document.direct_download[:download], 'contentUrl' => document.direct_download[:download], data: { download: 'trigger', download_type: 'direct', download_id: document[:layer_slug_s] }) %>
|
30
|
+
</li>
|
31
|
+
<% end %>
|
32
|
+
<% if document.download_types.present? %>
|
33
|
+
<li role="presentation" class="dropdown-header">Generated</li>
|
34
|
+
<% document.download_types.each do |type| %>
|
35
|
+
<%= content_tag(:li) do %>
|
36
|
+
<% link_to(download_text(type[0]), '', data: { download_path: "#{download_path(document[:layer_slug_s], type: type[0])}", download: 'trigger', download_type: type[0], download_id: document[:layer_slug_s] }) %>
|
37
|
+
<% end %>
|
38
|
+
<% end %>
|
39
|
+
<% end %>
|
40
|
+
<% end %>
|
41
|
+
</ul>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<% elsif document.restricted? && document.same_institution? %>
|
45
|
+
<div class='panel-body'>
|
46
|
+
<%= link_to t('geoblacklight.tools.login_to_view'), new_user_session_path(referrer: request.original_url) %>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
@@ -11,38 +11,38 @@
|
|
11
11
|
<div class='container'>
|
12
12
|
<div class='row'>
|
13
13
|
<div class='col-md-6'>
|
14
|
-
<%= content_tag :
|
14
|
+
<%= content_tag :h3, t('geoblacklight.home.category_heading'), class: 'text-center' %>
|
15
15
|
<div class='category-block'>
|
16
16
|
<div class='category-icon'>
|
17
17
|
<span class='glyphicon glyphicon-home'></span>
|
18
18
|
</div>
|
19
|
-
<
|
19
|
+
<h4>Institution</h4>
|
20
20
|
<%= render_facet_tags [:dct_provenance_s] %>
|
21
21
|
</div>
|
22
22
|
<div class='category-block'>
|
23
23
|
<div class='category-icon'>
|
24
24
|
<span class='glyphicon glyphicon-download'></span>
|
25
25
|
</div>
|
26
|
-
<
|
26
|
+
<h4>Data type</h4>
|
27
27
|
<%= render_facet_tags [:layer_geom_type_s] %>
|
28
28
|
</div>
|
29
29
|
<div class='category-block'>
|
30
30
|
<div class='category-icon'>
|
31
31
|
<span class='glyphicon glyphicon-globe'></span>
|
32
32
|
</div>
|
33
|
-
<
|
33
|
+
<h4>Placename</h4>
|
34
34
|
<%= render_facet_tags [:dct_spatial_sm] %>
|
35
35
|
</div>
|
36
36
|
<div class='category-block'>
|
37
37
|
<div class='category-icon'>
|
38
38
|
<span class='glyphicon glyphicon-tags'></span>
|
39
39
|
</div>
|
40
|
-
<
|
40
|
+
<h4>Subject</h4>
|
41
41
|
<%= render_facet_tags [:dc_subject_sm] %>
|
42
42
|
</div>
|
43
43
|
</div>
|
44
44
|
<div class='col-md-6 text-center'>
|
45
|
-
<%= content_tag :
|
45
|
+
<%= content_tag :h3, t('geoblacklight.home.map_heading') %>
|
46
46
|
<%= content_tag :div, '', id: 'map', data: { map: 'home', 'catalog-path'=> catalog_index_path , 'map-bbox' => params[:bbox]} %>
|
47
47
|
</div>
|
48
48
|
</div>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<%= geoblacklight_icon(document['dct_provenance_s']) %>
|
6
6
|
<%= geoblacklight_icon(document['dc_rights_s']) %>
|
7
7
|
</div>
|
8
|
-
<
|
8
|
+
<h3 class="index_title col-sm-9s cosl-lg-10 text-span">
|
9
9
|
<span class='caret-toggle'></span>
|
10
10
|
<% counter = document_counter_with_offset(document_counter) %>
|
11
11
|
<span class="document-counter">
|
12
12
|
<%= t('blacklight.search.documents.counter', :counter => counter) if counter %>
|
13
13
|
</span>
|
14
14
|
<%= link_to_document document, document_show_link_field(document), counter: counter, title: document['dc_title_s'] %>
|
15
|
-
</
|
15
|
+
</h3>
|
16
16
|
|
17
17
|
<div class='col-md-12 more-info-area'>
|
18
18
|
<div class='collapse' data-collapse-target="<%= document['uuid'] %>">
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% document ||= @document %>
|
2
|
+
|
3
|
+
<div class='metadata-view'>
|
4
|
+
<% document.references.refs.each do |ref| %>
|
5
|
+
<% if Settings.METADATA_SHOWN.include?(ref.type.to_s) %>
|
6
|
+
<div class='label label-default'>
|
7
|
+
<%= formatted_name_reference(ref.type) %>
|
8
|
+
</div>
|
9
|
+
<%= CodeRay.scan(Geoblacklight::Metadata.new(ref).metadata, :xml).div(css: :class, tab_width: 2).html_safe %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -7,8 +7,8 @@
|
|
7
7
|
<span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span>
|
8
8
|
<% end %>
|
9
9
|
<div class="input-group search-input-group">
|
10
|
-
<label for="q" class="sr-only"><%= t('blacklight.search.form.
|
11
|
-
<%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.
|
10
|
+
<label for="q" class="sr-only"><%= t('blacklight.search.form.search.label') %></label>
|
11
|
+
<%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.search.placeholder'), :class => "search_q q form-control", :id => "q", :autofocus => should_autofocus_on_search_box? %>
|
12
12
|
|
13
13
|
<span class="input-group-btn">
|
14
14
|
<button type="submit" class="btn btn-primary search-btn" id="search">
|