Skip to content

Commit

Permalink
Retire ontology reviews code
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Jul 26, 2023
1 parent c087005 commit 81ff74e
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 376 deletions.
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//= require bp_class_tree
//= require bp_ajax_controller
//= require bp_ontology_viewer
//= require bp_reviews
//= require bp_notes
//= require bp_ontolobridge
//= require bp_form_complete
Expand Down
17 changes: 0 additions & 17 deletions app/assets/javascripts/bp_reviews.js

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/javascripts/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
//= require jquery.hoverIntent
//= require jquery.simple.tree
//= require jquery.scrollTo-1.4.0-min
//= require jquery.rating.pack
//= require history/jquery.history
//= require alertify
//= require jquery.tooltip
Expand Down
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*= require fg.menu
*= require jquery-ui-1.8.1.custom
*= require jquery.autocomplete
*= require jquery.rating
*= require jquery.tooltip
*= require thickbox
*= require select2
Expand Down
15 changes: 0 additions & 15 deletions app/assets/stylesheets/bioportal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -437,21 +437,6 @@ tr.mainresource td {
background: #e2ebf0;
}

/* Ratings */
.star_ratings{
color: #234979;
border: 1px solid #C1DAD7;
background: #e2ebf0;
width:300px;
float:left;
margin-right:10px;

}
.star_ratings li{
list-style:none;
border-bottom:1px solid white;
}

/*Projects */
.pheader {
cursor:pointer;
Expand Down
9 changes: 0 additions & 9 deletions app/controllers/ontologies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ def index
analytics = LinkedData::Client::Analytics.last_month
@analytics = Hash[analytics.onts.map {|o| [o[:ont].to_s, o[:views]]}]

reviews = {}
LinkedData::Client::Models::Review.all(display_links: false, display_context: false).each do |r|
reviews[r.reviewedOntology] ||= []
reviews[r.reviewedOntology] << r
end

metrics_hash = get_metrics_hash

@formats = Set.new
Expand All @@ -86,11 +80,9 @@ def index
o[:id] = ont.id
o[:type] = ont.viewOf.nil? ? "ontology" : "ontology_view"
o[:show] = ont.viewOf.nil? ? true : false # show ontologies only by default
o[:reviews] = reviews[ont.id] || []
o[:groups] = ont.group || []
o[:categories] = ont.hasDomain || []
o[:note_count] = ont.notes.length
o[:review_count] = ont.reviews.length
o[:project_count] = ont.projects.length
o[:private] = ont.private?
o[:popularity] = @analytics[ont.acronym] || 0
Expand All @@ -112,7 +104,6 @@ def index

o[:artifacts] = []
o[:artifacts] << "notes" if ont.notes.length > 0
o[:artifacts] << "reviews" if ont.reviews.length > 0
o[:artifacts] << "projects" if ont.projects.length > 0
o[:artifacts] << "summary_only" if ont.summaryOnly

Expand Down
90 changes: 0 additions & 90 deletions app/controllers/reviews_controller.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/helpers/reviews_helper.rb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/ontologies/browse.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
<option value="-individual_count">Instances/Concepts count</option>
<option value="-project_count">Projects</option>
<option value="-note_count">Notes</option>
<!-- <option value="ratings">Rating</option> -->
<option value="-creationDate">Upload Date</option>
<option value="-search_rank" ng-show="searchText.length > 0">Search Rank</option>
</select>
Expand Down
30 changes: 0 additions & 30 deletions app/views/reviews/_review.html.haml

This file was deleted.

56 changes: 0 additions & 56 deletions app/views/reviews/edit.html.erb

This file was deleted.

56 changes: 0 additions & 56 deletions app/views/reviews/index.html.erb

This file was deleted.

24 changes: 0 additions & 24 deletions app/views/reviews/new.html.haml

This file was deleted.

Loading

0 comments on commit 81ff74e

Please sign in to comment.