This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% stylesheet_links << "../javascripts/date-picker/css/datepicker" %> | |
<% javascript_includes << infusion_javascripts(:default_no_jquery, :extras=>[:inline_editor_integrations], :debug=>true, :render_html=>false) %> | |
<% javascript_includes << "jquery.jeditable.mini" %> | |
<% javascript_includes << "date-picker/js/datepicker" %> | |
<% javascript_includes << "jquery.form.js" %> | |
<% javascript_includes << 'custom' %> | |
<% javascript_includes << "catalog/edit" %> | |
<% javascript_includes << "jquery.hydraMetadata.js" %> | |
<% javascript_includes << "/plugin_assets/fluid-infusion/infusion/components/undo/js/Undo.js" %> | |
<% javascript_includes << "jquery.notice.js" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="document_metadata" action="<%= url_for(:action=>"update", :controller=>"assets", :content_type=>"hydra_tune")%>" method="post" data-resourceType="hydra_tune" accept-charset="utf-8"> | |
<fieldset id="title_fields"> | |
<legend>Title</legend> | |
<input id="content_type" type="hidden" name="content_type" value="hydra_audio" /> | |
<dl> | |
<dt> | |
<%= fedora_field_label("descMetadata", :title, "Title:") %> | |
</dt> | |
<dd class="title"> | |
<%= fedora_text_field(@document_fedora,"descMetadata", [:title], :multiple=>false) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tr class="document" class="<%= cycle("even","odd") %>"> | |
<td> | |
<%= link_to_document(document, :label => Blacklight.config[:show][:heading].to_sym, :counter => (counter + 1 + @response.params[:start].to_i)) %> | |
</td> | |
<td> | |
<% creator = get_person_from_role(document, "Creator") %> | |
<%= [creator[:last], creator[:first]].join(", ") unless creator.nil? %> | |
</td> | |
<td> | |
<%= DateTime.parse(document.get(:system_create_dt)).to_time %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% javascript_includes << "/plugin_assets/fluid-infusion/infusion-1.2-src/lib/jquery/ui/js/jquery.ui.accordion.js" %> | |
<% javascript_includes << 'custom' %> | |
<% javascript_includes << "catalog/show" %> | |
<div class="document_viewer" id="cover_container"> | |
<div id="accordion"> | |
<h2 class="section-title"><a href="#">Description</a></h2> | |
<%= render :partial => 'hydra_tunes/show_description' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dl> | |
<% unless get_values_from_datastream(@document_fedora,"descMetadata", [:title]).empty? %> | |
<dt> | |
<%= fedora_field_label("descMetadata", [:title], "Title:") %> | |
</dt> | |
<dd class="title"> | |
<%= get_values_from_datastream(@document_fedora,"descMetadata", [:title]) %> | |
</dd> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HydraTune | |
# | |
# Default content datastreams: content | |
# | |
require 'hydra' | |
class HydraTune < ActiveFedora::Base | |
include Hydra::ModelMethods # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright | |
has_metadata :name => "rightsMetadata", :type => Hydra::RightsMetadata | |
has_metadata :name => "descMetadata", :type => HydraTuneDS | |
# A place to put extra metadata values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HydraTuneDS | |
class HydraTuneDS < ActiveFedora::NokogiriDatastream | |
set_terminology do |t| t.root(:path=>"dc", :xmlns=>"http://purl.org/dc/elements/1.1/", :schema=>"http://purl.org/dc/elements/1.1/") | |
t.title(:index_as=>[:searchable, :displayable, :facetable, :sortable], :required=>:true, :type=>:string ) | |
t.creator(:index_as=>[:searchable, :displayable, :facetable, :sortable], :required=>:true, :type=>:string) | |
end | |
def self.xml_template | |
builder = Nokogiri::XML::Builder.new do |xml| | |
xml.dc(:xmlns=>"http://purl.org/dc/elements/1.1/") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/projecthydra/hydrangea.git | |
$ cd hydrangea | |
$ git submodule init | |
$ git submodule update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _footer_menu_build_tree() { | |
$tree = menu_build_tree('main-menu', array('max_depth'=>2)); | |
$tree = array_slice($tree, 0, 9); | |
$tree = menu_tree_output($tree); | |
return $tree; | |
} | |
function wmu_base_preprocess(&$vars, $hook) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insertBookCoverImage = (data) -> | |
for id, values of data | |
imgId = values.bib_key.toLowerCase().replace(":", "_") | |
$("##{imgId}").attr("src", values.thumbnail_url) | |
addBookCovers = (ids) -> | |
url = "http://books.google.com/books?bibkeys=#{ids}&jscmd=viewapi&callback=?" | |
$.getJSON url, {}, insertBookCoverImage |
OlderNewer