Skip to content

Releases: samvera/hydra-head

v6.3.0

06 Sep 13:58
Compare
Choose a tag to compare
  • Use Om in a way that is compatible with 3.0.1 [Justin Coyne]
  • Rails 4 support [Justin Coyne]

v6.2.2

06 Sep 13:57
Compare
Choose a tag to compare
  • Rights metadata should only update the user you tell it to update. [Justin Coyne]

v6.2.1

06 Sep 13:57
Compare
Choose a tag to compare
  • Removed commented out line that was changed in commit bd53011. [David Chandek-Stark]
  • Adding CONTRIBUTORS.md [Jeremy Friesen]
  • Patched Hydra::PolicyAwareAccessControlsEnforcement to properly handle anonymous users by amending #policies_with_access (previously returned empty list when current_user is nil) and #apply_policy_individual_permissions. [David Chandek-Stark]
  • Change the version of hydra-head in the readme [Justin Coyne]
  • Updating hydra generator for rspec [Jeremy Friesen]
  • Removing trailing whitespace from generators [Jeremy Friesen]
  • Update CONTRIBUTING.md [Justin Coyne]

v6.2.0

06 Sep 13:57
Compare
Choose a tag to compare
  • Fix mismatched arguments in DownloadBehavior
  • Allow discovery_permissions to be set in AccessControlsEnforcement
  • Fix solr name for the embargo release date

v6.1.1

06 Sep 13:57
Compare
Choose a tag to compare
  • Correct typo in CatalogController template
  • Fix bug where default_content_ds, was not being checked in DownloadController
  • BlacklightHelperBehavior#document_partial_name should work on single values fields
  • BlacklightHelperBehavior#document_partial_name should replace periods in partial name
  • Use AF::Base.load_instance_from_solr in the DownloadController
  • DownloadController raises an error if no datastream can be loaded
  • Solrizer 3.1.0 compatible tests

v6.1.0

06 Sep 13:57
Compare
Choose a tag to compare
  • Fixed Solr 4 compatibility issue in construction of policy clauses in Hydra::PolicyAwareAccessControlsEnforcement.
  • Removed references to dictionaries that are not in the default solrconfig.
  • Config templates are now in active-fedora.
  • hydra-access-controls requires blacklight.
  • Upgrade guide removed -- see wiki for upgrade notes.
  • Added .yardopts so that rdoc.info generates correct API documentation.
  • active-fedora upgraded to 6.1.

Version 6.0.0

25 Feb 17:04
Compare
Choose a tag to compare

Changes

  • Added a jetty generator
    If you want to install a version of jetty on your local machine to develop you project,
    you can now do: ‘rails generate hydra:jetty’
  • Using new solr schema
    The new solr schema is written to be a more efficient (smaller document size) and easier to configure
    in your OmDatastream or RDFDatastreams.

You need to put in place the new schema.xml and solrconfig.xml. Then restart solr and reindex using: ActiveFedora::Base.reindex_everything You’re going to want to search your project to make sure you don’t have any fields coded like: *_t or *_s These field names have changed to *_tesim and *_ssim respectively. Finally change your config/initializer/hydra_config.rb to look something like this: https://github.com/projecthydra/hydra-head/blob/master/hydra-core/lib/generators/hydra/templates/config/initializers/hydra_config.rb For more information about the new index see the Solrizer 3.0.0 docs: https://github.com/projecthydra/hydra-head/wiki/Solr-Schema https://github.com/projecthydra/solrizer/blob/master/README.textile

Added a Hydra::Controllers::DownloadBehavior which allows you to easily create
a controller to serve the content of datastreams.
class DownloadsController < ApplicationController
  include Hydra::Controller::DownloadBehavior
end

then in config/routes.rb add:

resources :downloads

then you can do a GET /downloads/{pid}?datastream_id=thumbnail to get the thumbnail datastream. By default this allows any user with read access to the object identified by pid to download any of the datatreams. If you want to control which datastreams a user has access to, overwrite the can_download? method. This example allows anyone to download a ‘thumbnail’ datastream:

  def can_download?
    datastream.dsid == ‘thumbnail’
  end

v5.4.0

06 Sep 13:56
Compare
Choose a tag to compare
  • Hydra::Ability should use a separate cache for each permission document
  • Fixed bug with policy access enforcement which occurs when you select a facet.
  • Fixed logging typo
  • Hydra::User now has a groups method. Use this instead of RoleMapper.

v5.3.0

06 Sep 13:56
Compare
Choose a tag to compare
  • add Hydra::ModelMethods.add_file
  • Don't generate solr_mappings.yml by default

v5.2.0

06 Sep 13:56
Compare
Choose a tag to compare
  • Custom abilities (cancan) via ability_logic_chain
  • Refactor upload behavior so that add_posted_blob_to_asset() isn't tightly coupled to Rack::Multipart::UploadedFile