hyrax 2.2.2 → 2.2.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 +4 -4
- data/README.md +2 -2
- data/app/assets/stylesheets/hyrax/_featured.scss +6 -0
- data/app/assets/stylesheets/hyrax/_recent.scss +6 -0
- data/app/views/hyrax/homepage/_explore_collections.html.erb +2 -4
- data/app/views/hyrax/homepage/_featured_fields.html.erb +7 -3
- data/app/views/hyrax/homepage/_recent_document.html.erb +9 -9
- data/app/views/hyrax/homepage/_sortable_featured.html.erb +1 -6
- data/lib/hyrax/version.rb +1 -1
- data/spec/views/hyrax/homepage/_featured_works.html.erb_spec.rb +1 -1
- data/template.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac7cd95127ab939b39d3876e7649754e8923ba68
|
4
|
+
data.tar.gz: ee582d21b75be19fa313d98adf812bc87e6a64f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c7064951b8b10f45a66fb7a97542d27590308b0f875c72ced5001301929c9a323506ac03f95007f89975491484dee4e453b18703c801647a12e0ffb72a369b
|
7
|
+
data.tar.gz: bdbbc06ec054a31e7b96935c07198b2bcaf75a497fa0731be47495623de19978790cc9b2e28bd377d4c5ca2cbd05c2671a16283941baf1a6f523822edc78de4a
|
data/README.md
CHANGED
@@ -62,7 +62,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
|
|
62
62
|
# Getting started
|
63
63
|
|
64
64
|
This document contains instructions specific to setting up an app with __Hyrax
|
65
|
-
v2.2.
|
65
|
+
v2.2.3__. If you are looking for instructions on installing a different
|
66
66
|
version, be sure to select the appropriate branch or tag from the drop-down
|
67
67
|
menu above.
|
68
68
|
|
@@ -161,7 +161,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
|
|
161
161
|
Generate a new Rails application using the template.
|
162
162
|
|
163
163
|
```
|
164
|
-
rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.
|
164
|
+
rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.3/template.rb
|
165
165
|
```
|
166
166
|
|
167
167
|
Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
|
@@ -18,6 +18,8 @@ ol#featured_works {
|
|
18
18
|
|
19
19
|
img {
|
20
20
|
width: 90px;
|
21
|
+
float: left;
|
22
|
+
padding-right: 1em;
|
21
23
|
}
|
22
24
|
|
23
25
|
.main {
|
@@ -28,6 +30,10 @@ ol#featured_works {
|
|
28
30
|
color: $gray;
|
29
31
|
font-weight: bold;
|
30
32
|
}
|
33
|
+
|
34
|
+
.featured-field {
|
35
|
+
padding-left: 90px;
|
36
|
+
}
|
31
37
|
}
|
32
38
|
|
33
39
|
.featured-researcher {
|
@@ -4,13 +4,11 @@
|
|
4
4
|
<tr>
|
5
5
|
<td>
|
6
6
|
<div class="media">
|
7
|
-
<%= link_to [hyrax, collection], class: 'media-left', 'aria-hidden' => true do %>
|
8
|
-
<%= render_thumbnail_tag collection, { class: 'hidden-xs file_listing_thumbnail' }, { suppress_link: true } %>
|
9
|
-
<% end %>
|
10
7
|
<div class="media-body">
|
11
8
|
<div class="media-heading">
|
12
9
|
<%= link_to [hyrax, collection] do %>
|
13
|
-
<%= collection
|
10
|
+
<%= render_thumbnail_tag(collection, { class: 'hidden-xs file_listing_thumbnail' },
|
11
|
+
{ suppress_link: true }) + collection.title_or_label %>
|
14
12
|
<% end %>
|
15
13
|
</div>
|
16
14
|
</div>
|
@@ -1,12 +1,16 @@
|
|
1
1
|
<div>
|
2
2
|
<div class="featured-item-title">
|
3
3
|
<span class="sr-only"><%= t('hyrax.homepage.featured_works.document.title_label') %></span>
|
4
|
-
<h3
|
4
|
+
<h3>
|
5
|
+
<%= link_to [main_app, featured] do %>
|
6
|
+
<%= render_thumbnail_tag(featured, {width: 90}, {suppress_link: true}) + featured.title.first %>
|
7
|
+
<% end %>
|
8
|
+
</h3>
|
5
9
|
</div>
|
6
|
-
<div class="featured-item-depositor">
|
10
|
+
<div class="featured-field featured-item-depositor">
|
7
11
|
<span class="featured-label"><%= t('hyrax.homepage.featured_works.document.depositor_label') %>:</span> <%= link_to_profile featured.depositor(t('hyrax.homepage.featured_works.document.depositor_missing')) %>
|
8
12
|
</div>
|
9
|
-
<div class="featured-item-keywords">
|
13
|
+
<div class="featured-field featured-item-keywords">
|
10
14
|
<span class="featured-label"><%= t('hyrax.homepage.featured_works.document.keyword_label') %>:</span> <%= link_to_facet_list(featured.keyword, 'keyword', t('hyrax.homepage.featured_works.document.keyword_missing')) %>
|
11
15
|
</div>
|
12
16
|
</div>
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<li class="recent-item">
|
2
2
|
<div class="row">
|
3
|
-
<div class="col-sm-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<p>
|
3
|
+
<div class="col-sm-12">
|
4
|
+
<span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
|
5
|
+
<h3>
|
6
|
+
<%= link_to [main_app, recent_document] do %>
|
7
|
+
<%= render_thumbnail_tag(recent_document, {width: 90}, {suppress_link: true}) + recent_document.to_s %>
|
8
|
+
<% end %>
|
9
|
+
</h3>
|
10
|
+
<p class="recent-field">
|
11
11
|
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
|
12
12
|
</p>
|
13
|
-
<p>
|
13
|
+
<p class="recent-field">
|
14
14
|
<span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
|
15
15
|
</p>
|
16
16
|
</div>
|
@@ -5,12 +5,7 @@
|
|
5
5
|
<%= f.hidden_field :id %>
|
6
6
|
<%= f.hidden_field :order, data: { property: "order" } %>
|
7
7
|
<div class="main row">
|
8
|
-
<div class="col-sm-
|
9
|
-
<%= link_to [main_app, presenter] do %>
|
10
|
-
<%= render_thumbnail_tag presenter, width: 90 %>
|
11
|
-
<% end %>
|
12
|
-
</div>
|
13
|
-
<div class="col-sm-9">
|
8
|
+
<div class="col-sm-12">
|
14
9
|
<% if can? :destroy, FeaturedWork %>
|
15
10
|
<h3 class="pull-right">
|
16
11
|
<%= link_to hyrax.featured_work_path(presenter, format: :json),
|
data/lib/hyrax/version.rb
CHANGED
@@ -24,7 +24,7 @@ RSpec.describe "hyrax/homepage/_featured_works.html.erb", type: :view do
|
|
24
24
|
|
25
25
|
before do
|
26
26
|
allow(view).to receive(:can?).with(:update, FeaturedWork).and_return(false)
|
27
|
-
allow(view).to receive(:render_thumbnail_tag).with(presenter)
|
27
|
+
allow(view).to receive(:render_thumbnail_tag).with(presenter, any_args).and_return("thumbnail")
|
28
28
|
allow(list).to receive(:empty?).and_return(false)
|
29
29
|
allow(list).to receive(:featured_works).and_return([featured_work])
|
30
30
|
allow(featured_work).to receive(:presenter).and_return(presenter)
|
data/template.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2018-09-
|
17
|
+
date: 2018-09-07 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|