hyrax 2.0.0.rc2 → 2.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/stylesheets/_bootstrap-default-overrides.scss +5 -0
- data/app/assets/stylesheets/hyrax/_forms.scss +4 -0
- data/app/models/sipity/method.rb +10 -0
- data/app/views/hyrax/my/_sort_and_per_page.html.erb +1 -0
- data/config/locales/hyrax.de.yml +1 -0
- data/config/locales/hyrax.en.yml +1 -0
- data/config/locales/hyrax.es.yml +1 -0
- data/config/locales/hyrax.fr.yml +1 -0
- data/config/locales/hyrax.it.yml +1 -0
- data/config/locales/hyrax.pt-BR.yml +1 -0
- data/config/locales/hyrax.zh.yml +1 -0
- data/hyrax.gemspec +1 -1
- data/lib/generators/hyrax/templates/hyrax.scss +1 -0
- data/lib/hyrax/version.rb +1 -1
- data/spec/models/generic_work_spec.rb +7 -2
- data/template.rb +1 -1
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ad08e1238d79d9dc79963c1c3913b986f1ab2ba
|
4
|
+
data.tar.gz: aa0cfea342009f73ba345033ab326f0a0a42543f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c7ac750410dedfe255f56a177f1e4d5854d309a965a14d84c87919783a6bc3813285cb90d2b690bdac963fba573fc81851cb48539b06e9a784fd76a2c6258b
|
7
|
+
data.tar.gz: 54f133264706451e35192aa3a4d3a35a3acc2c02404a04af7108f21c77c98f18a81f6585988e8b0d6222acfa23054dec0aba5915ee55181632f94c752393ad3d
|
data/README.md
CHANGED
@@ -63,7 +63,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
|
|
63
63
|
# Getting started
|
64
64
|
|
65
65
|
This document contains instructions specific to setting up an app with __Hyrax
|
66
|
-
v2.0.0.
|
66
|
+
v2.0.0.rc3__. If you are looking for instructions on installing a different
|
67
67
|
version, be sure to select the appropriate branch or tag from the drop-down
|
68
68
|
menu above.
|
69
69
|
|
@@ -160,7 +160,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
|
|
160
160
|
Generate a new Rails application using the template.
|
161
161
|
|
162
162
|
```
|
163
|
-
rails _5.0.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.0.0.
|
163
|
+
rails _5.0.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.0.0.rc3/template.rb
|
164
164
|
```
|
165
165
|
|
166
166
|
Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
|
data/app/models/sipity/method.rb
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
module Sipity
|
2
|
+
# When a Sipity::Action is taken, each Sipity::Method is loaded and
|
3
|
+
# it's service_name is instantiated and called (all of this done via
|
4
|
+
# the Hyrax::Workflow::ActionTakenService).
|
5
|
+
#
|
6
|
+
# @note
|
7
|
+
# When a user takes the "deposit a work" action, call the "Lookup
|
8
|
+
# the corresponding Reviewer for the given Department and assign
|
9
|
+
# that person or group the Reviewer role for the given work (but
|
10
|
+
# not all of the works of the workflow)"
|
11
|
+
#
|
2
12
|
# This is responsible for mapping the Sipity::WorkflowAction to an object that
|
3
13
|
# responds to .call
|
4
14
|
#
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<%= form_tag search_action_for_dashboard, method: :get, class: 'per_page form-inline' do %>
|
4
4
|
<div class="form-group">
|
5
5
|
<fieldset class="col-xs-12">
|
6
|
+
<legend class="sr-only"><%= t('hyrax.dashboard.my.sr.results_per_page') %></legend>
|
6
7
|
<%= label_tag :per_page do %>
|
7
8
|
Show <%= select_tag :per_page, options_for_select(['10', '20', '50', '100'], h(params[:per_page])),
|
8
9
|
title: "Number of results to display per page" %> per page
|
data/config/locales/hyrax.de.yml
CHANGED
@@ -478,6 +478,7 @@ de:
|
|
478
478
|
detail_label: Zusammenfassungsdetails anzeigen
|
479
479
|
listing: Auflistung der Artikel, die Sie deponiert haben
|
480
480
|
press_to: Drücken Sie auf
|
481
|
+
results_per_page: Anzahl der Ergebnisse pro Seite
|
481
482
|
show_label: Zeige alle Details von
|
482
483
|
works: Ihre Arbeiten
|
483
484
|
no_activity: Benutzer hat keine aktuellen Aufgaben
|
data/config/locales/hyrax.en.yml
CHANGED
@@ -460,6 +460,7 @@ en:
|
|
460
460
|
detail_label: "Display summary details of"
|
461
461
|
listing: "Listing of items you have deposited in"
|
462
462
|
press_to: "Press to"
|
463
|
+
results_per_page: "Number of results to display per page"
|
463
464
|
show_label: "Display all details of"
|
464
465
|
works: "Your Works"
|
465
466
|
no_activity: "User has no recent activity"
|
data/config/locales/hyrax.es.yml
CHANGED
@@ -473,6 +473,7 @@ es:
|
|
473
473
|
detail_label: Ver el resumen de
|
474
474
|
listing: Enlistar los items que has depositado
|
475
475
|
press_to: Presionar para
|
476
|
+
results_per_page: Número de resultados para mostrar por página
|
476
477
|
show_label: Ver todos los detalles de
|
477
478
|
works: Mis Trabajos
|
478
479
|
no_activity: El usuario no tiene actividad reciente
|
data/config/locales/hyrax.fr.yml
CHANGED
@@ -478,6 +478,7 @@ fr:
|
|
478
478
|
detail_label: Afficher les détails sommaires de
|
479
479
|
listing: Liste des éléments que vous avez déposés dans
|
480
480
|
press_to: Appuyez sur pour
|
481
|
+
results_per_page: Nombre de résultats à afficher par page
|
481
482
|
show_label: Afficher tous les détails de
|
482
483
|
works: Vos travaux
|
483
484
|
no_activity: L'utilisateur n'a aucune activité récente
|
data/config/locales/hyrax.it.yml
CHANGED
@@ -478,6 +478,7 @@ it:
|
|
478
478
|
detail_label: Visualizza dettagli riepilogo di
|
479
479
|
listing: Elenco di articoli che hai depositato
|
480
480
|
press_to: Premere per
|
481
|
+
results_per_page: Numero di risultati da visualizzare per pagina
|
481
482
|
show_label: Visualizza tutti i dettagli di
|
482
483
|
works: Le tue opere
|
483
484
|
no_activity: L'utente non ha attività recenti
|
@@ -478,6 +478,7 @@ pt-BR:
|
|
478
478
|
detail_label: Exibir detalhes resumidos de
|
479
479
|
listing: Listagem de itens que você depositou em
|
480
480
|
press_to: Pressione para
|
481
|
+
results_per_page: Número de resultados a serem exibidos por página
|
481
482
|
show_label: Exibir todos os detalhes de
|
482
483
|
works: Seus trabalhos
|
483
484
|
no_activity: O usuário não tem atividade recente
|
data/config/locales/hyrax.zh.yml
CHANGED
data/hyrax.gemspec
CHANGED
@@ -72,7 +72,7 @@ EOF
|
|
72
72
|
spec.add_dependency 'dry-struct', '~> 0.1'
|
73
73
|
spec.add_dependency 'redlock', '>= 0.1.2'
|
74
74
|
spec.add_dependency 'retriable', '>= 2.9', '< 4.0'
|
75
|
-
spec.add_dependency 'active-fedora', '>= 11.
|
75
|
+
spec.add_dependency 'active-fedora', '~> 11.5', '>= 11.5.2'
|
76
76
|
spec.add_dependency 'linkeddata' # Required for getting values from geonames
|
77
77
|
|
78
78
|
spec.add_development_dependency 'engine_cart', '~> 1.2'
|
data/lib/hyrax/version.rb
CHANGED
@@ -41,9 +41,14 @@ RSpec.describe GenericWork do
|
|
41
41
|
let(:work) { described_class.new(state: inactive) }
|
42
42
|
let(:inactive) { ::RDF::URI('http://fedora.info/definitions/1/0/access/ObjState#inactive') }
|
43
43
|
|
44
|
-
|
44
|
+
it 'is inactive' do
|
45
|
+
expect(work.state.rdf_subject).to eq inactive
|
46
|
+
end
|
45
47
|
|
46
|
-
it
|
48
|
+
it 'allows state to be set to ActiveTriples::Resource' do
|
49
|
+
other_work = described_class.new(state: work.state)
|
50
|
+
expect(other_work.state.rdf_subject).to eq inactive
|
51
|
+
end
|
47
52
|
end
|
48
53
|
|
49
54
|
describe '#suppressed?' do
|
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.0.0.
|
4
|
+
version: 2.0.0.rc3
|
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: 2017-11-
|
17
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -598,16 +598,22 @@ dependencies:
|
|
598
598
|
name: active-fedora
|
599
599
|
requirement: !ruby/object:Gem::Requirement
|
600
600
|
requirements:
|
601
|
+
- - "~>"
|
602
|
+
- !ruby/object:Gem::Version
|
603
|
+
version: '11.5'
|
601
604
|
- - ">="
|
602
605
|
- !ruby/object:Gem::Version
|
603
|
-
version: 11.
|
606
|
+
version: 11.5.2
|
604
607
|
type: :runtime
|
605
608
|
prerelease: false
|
606
609
|
version_requirements: !ruby/object:Gem::Requirement
|
607
610
|
requirements:
|
611
|
+
- - "~>"
|
612
|
+
- !ruby/object:Gem::Version
|
613
|
+
version: '11.5'
|
608
614
|
- - ">="
|
609
615
|
- !ruby/object:Gem::Version
|
610
|
-
version: 11.
|
616
|
+
version: 11.5.2
|
611
617
|
- !ruby/object:Gem::Dependency
|
612
618
|
name: linkeddata
|
613
619
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1065,6 +1071,7 @@ files:
|
|
1065
1071
|
- app/assets/javascripts/hyrax/uploader.js
|
1066
1072
|
- app/assets/javascripts/hyrax/user_search.js
|
1067
1073
|
- app/assets/javascripts/hyrax/workflow_actions_affix.js
|
1074
|
+
- app/assets/stylesheets/_bootstrap-default-overrides.scss
|
1068
1075
|
- app/assets/stylesheets/fileupload/jquery.fileupload-ui.scss
|
1069
1076
|
- app/assets/stylesheets/hyrax/_batch-edit.scss
|
1070
1077
|
- app/assets/stylesheets/hyrax/_browse_everything_overrides.scss
|