Skip to content

Commit

Permalink
remove legacy zotero bibliography sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Oct 3, 2017
1 parent d630a3a commit ba09667
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 741 deletions.
45 changes: 0 additions & 45 deletions app/controllers/services_controller.rb

This file was deleted.

7 changes: 0 additions & 7 deletions app/jobs/sync_bibliography_service_job.rb

This file was deleted.

28 changes: 0 additions & 28 deletions app/models/bibliography_service.rb

This file was deleted.

4 changes: 0 additions & 4 deletions app/models/concerns/bibliography_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
# A concern to be mixed into SolrDocument for accessing a document's
# bibliography
module BibliographyConcern
def bibliography
fetch(Settings.zotero_api.solr_document_field, nil)
end

def reference?
fetch('format_main_ssim', []).first == 'Reference'
end
Expand Down
14 changes: 0 additions & 14 deletions app/models/zotero_api/bibliography.rb

This file was deleted.

51 changes: 0 additions & 51 deletions app/models/zotero_api/bibliography_item.rb

This file was deleted.

29 changes: 0 additions & 29 deletions app/models/zotero_api/bibliography_item_creator.rb

This file was deleted.

70 changes: 0 additions & 70 deletions app/models/zotero_api/client.rb

This file was deleted.

58 changes: 0 additions & 58 deletions app/services/sync_bibliography_service.rb

This file was deleted.

6 changes: 0 additions & 6 deletions app/views/catalog/_bibliography_default.html.erb

This file was deleted.

44 changes: 0 additions & 44 deletions app/views/services/edit.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/views/spotlight/shared/_configuration_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<li><%= link_to t(:'spotlight.configuration.sidebar.metadata'), spotlight.edit_exhibit_metadata_configuration_path(current_exhibit) %></li>
<li><%= link_to t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(current_exhibit) %></li>
<% end %>
<% if (can? :manage, BibliographyService) && Settings.sync_bibliography_service.enabled # FeatureFlag: SyncBibliograhyService %>
<li><%= link_to t(:'services.menu_link'), edit_exhibit_services_path(current_exhibit) %></li>
<% end %>
<% if can? :manage, Viewer %>
<li><%= link_to t(:'viewers.menu_link'), edit_exhibit_viewers_path(current_exhibit) %></li>
<% end %>
Expand Down
5 changes: 0 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
resources :exhibits, path: '/', only: [] do
resource :dor_harvester, controller: :"dor_harvester", only: [:create, :update]
resource :bibliography_resources, only: [:create, :update]
resource :services, only: [:create, :edit, :update] do
member do
patch 'sync'
end
end if Settings.sync_bibliography_service.enabled # FeatureFlag: SyncBibliograhyService
resource :viewers, only: [:create, :edit, :update]
end

Expand Down

0 comments on commit ba09667

Please sign in to comment.