{I" class:ETI"ProcessedAsset;FI"logical_path;TI"!blacklight/search_context.js;FI" pathname;TI"/home/vagrant/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/search_context.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+ŠÂ¼VI" length;Ti!I" digest;TI"%532fc626e5ba0aff69788ebc9f09c6df;FI" source;TI"!(function($) { Blacklight.do_search_context_behavior = function() { $('a[data-context-href]').on('click.search-context', Blacklight.handleSearchContextMethod); }; // this is the $.rails.handleMethod with a couple adjustments, described inline: // first, we're attaching this directly to the event handler, so we can check for meta-keys Blacklight.handleSearchContextMethod = function(event) { var link = $(this); // instead of using the normal href, we need to use the context href instead var href = link.data('context-href'), method = 'post', target = link.attr('target'), csrfToken = $('meta[name=csrf-token]').attr('content'), csrfParam = $('meta[name=csrf-param]').attr('content'), form = $('
'), metadataInput = '', redirectHref = ''; // check for meta keys.. if set, we should open in a new tab if(event.metaKey || event.ctrlKey) { target = '_blank'; } if (csrfParam !== undefined && csrfToken !== undefined) { metadataInput += ''; } if (target) { form.attr('target', target); } form.hide().append(metadataInput).append(redirectHref).appendTo('body'); form.submit(); return false; }; Blacklight.onLoad(function() { Blacklight.do_search_context_behavior(); }); })(jQuery); ;TI"dependency_digest;TI"%0230b048c18ad6158ae35aa97b73e2e2;FI"required_paths;T[I"|/home/vagrant/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/core.js;FI"/home/vagrant/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/search_context.js;FI"dependency_paths;T[{I" path;TI"/home/vagrant/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/search_context.js;FI" mtime;TI"2016-02-11T17:19:06+00:00;TI" digest;TI"%3f82db546d49e1bf0d04fd341615f009;F{@I"|/home/vagrant/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/blacklight-5.8.2/app/assets/javascripts/blacklight/core.js;F@ I"2016-02-11T17:19:06+00:00;T@"I"%94a4d25a0aa301e860f52a9d68786009;FI" _version;TI"%5dbb392182285b4042e11c847d2199ba;F