Sha256: c72880c3be4f6eabdf1d52a94dac12d5cc55fac9f92644a2fcd1140fc3960407
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
# *Using this Module is not necessary if you're writing Controllers in Rails3.* # In a Rails3 app, simply define regular Rails Controllers to expose the Resources & Actions you need and use Hydra::Controller to add Hydra support. # For search & discovery in those apps, use Blacklight and customize the "index" partials for each type of content to include links to the show/edit actions of the corresponding Controllers. # # This Module extends Blacklight Catalog behaviors to give you a "Hydra" Catalog with edit and show behaviors on top of the Blacklight search behaviors. # Include this module into any of your Blacklight Catalog classes (ie. CatalogController) to add Hydra functionality. # module Hydra::Catalog extend ActiveSupport::Concern included do # Other modules to auto-include include Hydra::Controller include Hydra::UI::Controller # Controller filters # Also see the generator (or generated CatalogController) to see more before_filters in action before_filter :load_fedora_document, :only=>[:show,:edit] # View Helpers helper :hydra_uploader helper :article_metadata end def edit show render "show" end # This will render the "delete" confirmation page and a form to submit a destroy request to the assets controller def delete show render "show" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hydra-head-4.0.0.rc4 | lib/hydra/catalog.rb |
hydra-head-4.0.0.rc3 | lib/hydra/catalog.rb |
hydra-head-4.0.0.rc2 | lib/hydra/catalog.rb |
hydra-head-3.3.0 | lib/hydra/catalog.rb |