This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add geo_concerns to Gemfile * install GeoConcerns * add simple-tiles dependencies to circleci * remove geo_concerns fileset presenter behavior * generate thumbnail paths for geo works * skip removal of pending uploads for objects that don't respond to pending_uploads * add geo extensions to PairtreeDerivativePath * update to geo_concerns 0.2.0 * trigger manifest event in file set actor only if parent is not a geo work * reorganize welcome page to accommodate geo works * add icons to works on welcome page * change work-icons src to font-url * add staging to geoconcerns messaging config file * upgrade to geo_concerns v0.3.0 * use ark noid in gbl slug * create separate geo derivatives path * index thumbnail path in geo works using local thumbnail path service * change bbox label color to black * upgrade to geo_concerns v0.3.1 (#880) * add shared geo-derivatives directory to capistrano (#881) * override the geo_concerns metadata_xml method on file set (#884) * add local presenters for geo works * add local forms for geo works * add metadata for geo works and put state behavior in separate module * add state and rights_statement geo work views * add flagging to geo works and put flagging behavior in separate module * extract common presenter methods into module * upgrade to geo_concerns v0.3.2 (#889) * override geoserver delivery service base path method (#888) * Fix Geoblacklight document generation (#891) * set different provenance for geoblacklight documents * upgrade to geo_concerns v0.3.3 * use curation concern base view partials for geo file manager * add geo works to collections in the same way as other works (#904) * limit number of subjects displayed on index page (#907) * fire geo works events only when state is complete (#909)
- Loading branch information
1 parent
31d2c4c
commit 90a1315
Showing
123 changed files
with
1,528 additions
and
157 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module CurationConcerns | ||
module Actors | ||
class ImageWorkActor < CurationConcerns::Actors::BaseActor | ||
end | ||
end | ||
end |
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,6 @@ | ||
module CurationConcerns | ||
module Actors | ||
class RasterWorkActor < CurationConcerns::Actors::BaseActor | ||
end | ||
end | ||
end |
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,6 @@ | ||
module CurationConcerns | ||
module Actors | ||
class VectorWorkActor < CurationConcerns::Actors::BaseActor | ||
end | ||
end | ||
end |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
//= require geo_concerns/application |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.bbox-inputs { | ||
span.input-group-addon { | ||
color: $black; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,31 @@ | ||
.row > .classify-work { | ||
.classify-work { | ||
padding-left: 0px; | ||
& > .work-type { | ||
min-height: 190px; | ||
float: left; | ||
display: block; | ||
} | ||
& > .work-type-Collection { | ||
& > .work-type { | ||
.short-description { | ||
height: 6.1em; | ||
} | ||
.work-icon { | ||
font-size: 50px; | ||
color: $blue; | ||
padding: 15px 0 15px 0; | ||
} | ||
} | ||
.title { | ||
margin-top: 5px; | ||
} | ||
} | ||
|
||
.panel-classify-work { | ||
@include panel-variant(none, $gray-light, $light-gray, $panel-default-border); | ||
-webkit-box-shadow: none; | ||
box-shadow: none; | ||
& > .panel-heading { | ||
border-style: solid; | ||
border-width: 1px; | ||
} | ||
} |
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,3 @@ | ||
/* | ||
*= require geo_concerns/application | ||
*/ |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module CurationConcerns | ||
module Flagging | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
def flag | ||
curation_concern.state = 'flagged' | ||
note = params[curation_concern.class.name.underscore][:workflow_note] | ||
curation_concern.workflow_note = curation_concern.workflow_note + [note] unless note.blank? | ||
if curation_concern.save | ||
respond_to do |format| | ||
format.html { redirect_to [main_app, curation_concern], notice: "Resource updated" } | ||
format.json { render json: { state: state } } | ||
end | ||
else | ||
respond_to do |format| | ||
format.html { redirect_to [main_app, curation_concern], alert: "Unable to update resource" } | ||
format.json { render json: { error: "Unable to update resource" } } | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
25 changes: 25 additions & 0 deletions
25
app/controllers/concerns/curation_concerns/geo_messenger_behavior.rb
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,25 @@ | ||
module CurationConcerns | ||
module GeoMessengerBehavior | ||
extend ActiveSupport::Concern | ||
|
||
def destroy | ||
geo_concerns_messenger.record_deleted(geo_concern) | ||
super | ||
end | ||
|
||
def after_update_response | ||
super | ||
return unless geo_concern.state == 'complete' | ||
geo_concerns_messenger.record_updated(geo_concern) | ||
end | ||
|
||
def geo_concerns_messenger | ||
@geo_concerns_messenger ||= GeoConcerns::Messaging.messenger | ||
end | ||
|
||
def geo_concern | ||
doc = SolrDocument.new(curation_concern.to_solr) | ||
show_presenter.new(doc, current_ability, request) | ||
end | ||
end | ||
end |
Oops, something went wrong.