spina-admin-journal 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spina/admin/journal/application_controller.rb +2 -0
- data/app/controllers/spina/admin/journal/articles_controller.rb +1 -1
- data/app/controllers/spina/admin/journal/authors_controller.rb +4 -4
- data/app/controllers/spina/admin/journal/institutions_controller.rb +1 -1
- data/app/controllers/spina/admin/journal/issues_controller.rb +1 -1
- data/app/controllers/spina/admin/journal/journals_controller.rb +1 -1
- data/app/controllers/spina/admin/journal/licences_controller.rb +1 -1
- data/app/views/spina/admin/journal/articles/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/authors/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/authors/_form_affiliation.html.haml +1 -1
- data/app/views/spina/admin/journal/institutions/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/issues/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/journals/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/licences/_form.html.haml +1 -1
- data/app/views/spina/admin/journal/volumes/_form.html.haml +1 -1
- data/lib/spina/admin/journal/engine.rb +2 -0
- data/lib/spina/admin/journal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17b7c3f700ab8ee1935120ec11f228117c6db7085a7960c8382f0d54d81e508
|
4
|
+
data.tar.gz: f711f066d315fe44115e50420eeade827aaf83a2451cc0c6dd29cc4aec290b89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8964198f6c9c720f9678acb9fb227a32812c2bc4d3de17f3761b77ae59789d386711b9285a658a5a2cc15237b922e75a28eac9b344835e6c3772021b64c4bc8
|
7
|
+
data.tar.gz: aea65ca8967a73a0b9a0c83964bc19445ea668eed7964681e19625d242a3ff11c8e290d7ef2564130d6caae4a2dbb16c9054c25867c3be1f8bd413c7c4f40118
|
@@ -5,6 +5,8 @@ module Spina
|
|
5
5
|
module Journal
|
6
6
|
# Custom controller for journal plugin. Sets the layout and adds a flash type.
|
7
7
|
class ApplicationController < AdminController
|
8
|
+
helper ::Spina::Engine.routes.url_helpers
|
9
|
+
|
8
10
|
add_flash_types :success
|
9
11
|
|
10
12
|
layout :admin_layout, only: %i[new edit]
|
@@ -64,13 +64,13 @@ module Spina
|
|
64
64
|
private
|
65
65
|
|
66
66
|
def author_params
|
67
|
-
params.require(:
|
68
|
-
|
69
|
-
|
67
|
+
params.require(:author).permit(:primary_affiliation_index,
|
68
|
+
affiliations_attributes: %i[id institution_id first_name
|
69
|
+
surname])
|
70
70
|
end
|
71
71
|
|
72
72
|
def modified_params
|
73
|
-
primary_affiliation_index = params[:
|
73
|
+
primary_affiliation_index = params[:author][:primary_affiliation_index]
|
74
74
|
new_params = author_params.except :primary_affiliation_index
|
75
75
|
unless new_params[:affiliations_attributes].nil? || primary_affiliation_index.nil?
|
76
76
|
new_params[:affiliations_attributes].each_key do |index|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @article, html: { autocomplete: "off" } do |f|
|
11
|
+
= form_for [:admin_journal, @article], html: { autocomplete: "off" } do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: {close_notification: true} do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @author, html: {autocomplete: "off"} do |f|
|
11
|
+
= form_for [:admin_journal, @author], html: {autocomplete: "off"} do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
@@ -17,4 +17,4 @@
|
|
17
17
|
.page-form-label
|
18
18
|
= t '.primary'
|
19
19
|
.page-form-content
|
20
|
-
= radio_button_tag '
|
20
|
+
= radio_button_tag 'author[primary_affiliation_index]', ff.index, ff.object.status == 'primary'
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @institution, html: {autocomplete: "off"} do |f|
|
11
|
+
= form_for [:admin_journal, @institution], html: {autocomplete: "off"} do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @issue, html: { autocomplete: 'off' } do |f|
|
11
|
+
= form_for [:admin_journal, @issue], html: { autocomplete: 'off' } do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @journal, html: { autocomplete: "off" } do |f|
|
11
|
+
= form_for [:admin_journal, @journal], html: { autocomplete: "off" } do |f|
|
12
12
|
%header#header
|
13
13
|
.breadcrumbs
|
14
14
|
= render_breadcrumbs
|
@@ -8,7 +8,7 @@
|
|
8
8
|
= link_to '#', data: { close_notification: true } do
|
9
9
|
= icon 'cross'
|
10
10
|
|
11
|
-
= form_for @licence, html: { autocomplete: 'off' } do |f|
|
11
|
+
= form_for [:admin_journal, @licence], html: { autocomplete: 'off' } do |f|
|
12
12
|
%header#header
|
13
13
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina-admin-journal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Van Steene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|