Releases: samvera/hydra-head
v6.3.0
v6.2.2
v6.2.1
- 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
v6.1.1
- 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
- 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
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