forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from lifewatch-eric/ecoportal-ontoportal-reset
Merge to master: Agroportal release 2.8.0 - Re-implement custom Ecoportal features
- Loading branch information
Showing
38 changed files
with
551 additions
and
508 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,6 @@ | |
margin-bottom: -2em; | ||
} | ||
|
||
hr { | ||
width: 50%; | ||
margin: 40px 0px; | ||
} | ||
|
||
#chartTooltip { | ||
position: absolute; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
class Admin::DoiRequestController < ApplicationController | ||
|
||
include DoiRequest, TurboHelper | ||
|
||
def index | ||
end | ||
|
||
def show | ||
@ontology = LinkedData::Client::Models::Ontology.get(params[:ontology_id]) rescue nil | ||
|
||
ontology_not_found(params[:ontology_id]) unless @ontology | ||
|
||
@submission = @ontology.explore.latest_submission | ||
|
||
@identifier_request = first_pending_doi_request | ||
end | ||
|
||
def create | ||
@ontology = LinkedData::Client::Models::Ontology.get(params[:ontology_id]) rescue nil | ||
|
||
ontology_not_found(params[:ontology_id]) unless @ontology | ||
|
||
@submission = @ontology.explore.latest_submission | ||
|
||
ontology_not_found(params[:ontology_id]) unless @submission | ||
|
||
@identifier_request = submit_new_doi_request(@submission.id) | ||
|
||
if response_error?(@identifier_request) | ||
render_turbo_stream alert_error(id: "#{@ontology.acronym}_doi_request") { "An error occurred while creating the DOI request" } | ||
else | ||
render_turbo_stream replace("#{@ontology.acronym}_doi_request") { render_to_string('admin/doi_request/show', layout: nil) } | ||
end | ||
end | ||
|
||
def update | ||
@ontology = LinkedData::Client::Models::Ontology.get(params[:ontology_id]) rescue nil | ||
|
||
ontology_not_found(params[:ontology_id]) unless @ontology | ||
|
||
cancel_pending_doi_requests | ||
|
||
render_turbo_stream replace("#{@ontology.acronym}_doi_request") { render_to_string('admin/doi_request/show', layout: nil) } | ||
end | ||
|
||
end |
Oops, something went wrong.