commonwealth-vlr-engine 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbc356706414c0b95805533c2ea00a3a7effe6ce
4
- data.tar.gz: 11c89f4dcc69806d61f9ede8d50f9b96cf165662
3
+ metadata.gz: 5fabb50b95509d7c91f391ace1509cacfc6ed5f3
4
+ data.tar.gz: a5f10ea413117772080c597a833e898390c5ac5b
5
5
  SHA512:
6
- metadata.gz: 782bfa9e350b5564b73eef9318cd52928f11e29a4ef0cb95ca7571fc3a378a540223773a40a2a040109926ead37a2804aa0d7603515487d7e013670d60648da9
7
- data.tar.gz: 56e045a323e114dc8c2521c3be14369729a0b00c70cd12571ac308db7758b7794be4ff256fbf72ff09db9517e20d9383658472be3f8e7cb9ed35502bb54b0539
6
+ metadata.gz: 87b1faa24f44a9b38c20cb3cad3f4e9ccbe6928ef788db3483ed9b057783660dd1e564cdd3c3903abd3cca31acfe68cb591ee79acb8ad90c280ed21bd91a3cec
7
+ data.tar.gz: b1a4d284dc8a78779af76537f13fe78ca01a588e2d836d717dea62d0ccd91627542939de3d66afd662581e170413b62277b2c11b736a82476872bb98007b1572
@@ -17,6 +17,8 @@
17
17
  opacity:.2;
18
18
  -moz-opacity: 0.20;
19
19
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
20
+ height: 10px;
21
+ width: 10px;
20
22
  }
21
23
 
22
24
  .active {
@@ -1,14 +1,30 @@
1
- /* styles for facets */
1
+ /* styles for facets and formats page */
2
+
3
+ body.blacklight-catalog-formats_facet {
4
+
5
+ .facet_pagination.top {
6
+ padding: 15px 15px 0;
7
+ }
8
+
9
+ .prev_next_links {
10
+ display: none;
11
+ }
12
+
13
+ .modal-header {
14
+ padding: 0 15px 15px;
15
+ }
16
+
17
+ }
2
18
 
3
19
  #facets {
4
20
 
5
21
  div.top-panel-heading {
6
22
  background-color: #F5F5F5;
7
- padding: 10px 15px 0px;
23
+ padding: 10px 15px 0;
8
24
  border: 1px solid $facets_border;
9
25
 
10
26
  h4 {
11
- margin-top: 0px;
27
+ margin-top: 0;
12
28
  }
13
29
 
14
30
  }
@@ -44,6 +44,11 @@ class InstitutionsController < CatalogController
44
44
  # get the response for the facets representing items in collection
45
45
  (@response, @document_list) = search_results({:f => params[:f]})
46
46
 
47
+ # get an image for the institution
48
+ if @document[:exemplary_image_ssi]
49
+ @institution_image_pid = @document[:exemplary_image_ssi]
50
+ end
51
+
47
52
  respond_to do |format|
48
53
  format.html
49
54
  end
@@ -33,7 +33,7 @@ module CommonwealthVlrEngine
33
33
  end
34
34
 
35
35
  def create_download_links(document, files_hash, link_class)
36
- file_types = [files_hash[:documents], files_hash[:ereader], files_hash[:audio], files_hash[:generic]]
36
+ file_types = [files_hash[:audio], files_hash[:documents], files_hash[:ereader], files_hash[:generic]]
37
37
  download_links = []
38
38
  file_types.each do |file_type|
39
39
  file_type.each do |file|
@@ -44,7 +44,7 @@ module CommonwealthVlrEngine
44
44
  datastream_disseminator_url(file['id'],'productionMaster'),
45
45
  :target => '_blank',
46
46
  :class => link_class) + content_tag(:span,
47
- "(.#{file_name_ext[1]}, #{number_to_human_size(object_profile_json["datastreams"]["productionMaster"]["dsSize"])})",
47
+ "(#{file_name_ext[1].upcase}, #{number_to_human_size(object_profile_json["datastreams"]["productionMaster"]["dsSize"])})",
48
48
  :class => 'download_info')
49
49
  end
50
50
  end
@@ -11,7 +11,7 @@
11
11
  <i class="fa fa-book"></i> <%= t('blacklight.book_viewer.link_to_reader') %>
12
12
  <% end %>
13
13
  </li>
14
- <% if document['identifier_ia_id_ssi'] %>
14
+ <% if document['identifier_ia_id_ssi'] || document['has_searchable_text_bsi'] %>
15
15
  <li id="search_inside_link_wrap">
16
16
  <%= link_to(ocr_search_path,
17
17
  :class => 'search_inside_link btn',
@@ -4,6 +4,7 @@ require 'commonwealth-vlr-engine/version'
4
4
  module CommonwealthVlrEngine
5
5
 
6
6
  require 'commonwealth-vlr-engine/controller_override'
7
+ require 'commonwealth-vlr-engine/blacklight_override'
7
8
  require 'commonwealth-vlr-engine/search_builder/commonwealth_search_builder_behavior'
8
9
  require 'commonwealth-vlr-engine/search_builder/institutions_search_builder'
9
10
  require 'commonwealth-vlr-engine/search_builder/collections_search_builder'
@@ -47,7 +47,8 @@ module CommonwealthVlrEngine
47
47
 
48
48
  # configuration for search results/index views
49
49
  config.index.partials = [:thumbnail, :index_header, :index]
50
- config.index.document_actions = nil # don't show bookmark control
50
+ #config.index.document_actions
51
+ config.index.document_actions.delete(:bookmark) # don't show bookmark control
51
52
 
52
53
  # solr field configuration for document/show views
53
54
  config.show.title_field = 'title_info_primary_tsi'
@@ -185,7 +186,8 @@ module CommonwealthVlrEngine
185
186
  @page_title = t('blacklight.formats.page_title', :application_name => t('blacklight.application_name'))
186
187
 
187
188
  @facet = blacklight_config.facet_fields['genre_basic_ssim']
188
- @response = get_facet_field_response(@facet.key, params)
189
+
190
+ @response = get_facet_field_response(@facet.key, params, {"f.genre_basic_ssim.facet.limit" => -1})
189
191
  @display_facet = @response.aggregations[@facet.key]
190
192
  @pagination = facet_paginator(@facet, @display_facet)
191
193
 
@@ -5,6 +5,7 @@ module CommonwealthVlrEngine
5
5
  def exclude_unwanted_models(solr_parameters = {})
6
6
  solr_parameters[:fq] ||= []
7
7
  solr_parameters[:fq] << '-has_model_ssim:"info:fedora/afmodel:Bplmodels_File"'
8
+ solr_parameters[:fq] << '-has_model_ssim:"info:fedora/fedora-system:ContentModel-3.0"'
8
9
  end
9
10
 
10
11
  # keep draft/review and in-process items from appearing in search results
@@ -1,3 +1,3 @@
1
1
  module CommonwealthVlrEngine
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonwealth-vlr-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eben English
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-16 00:00:00.000000000 Z
12
+ date: 2016-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails