diff --git a/app/assets/stylesheets/components/globus.scss b/app/assets/stylesheets/components/globus.scss
new file mode 100644
index 00000000..014e4d41
--- /dev/null
+++ b/app/assets/stylesheets/components/globus.scss
@@ -0,0 +1,5 @@
+#globus {
+ a {
+ color: #ffffff;
+ }
+}
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 11a8b350..10cbeeca 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -32,4 +32,20 @@ def render_field_row_link(title, url)
html.html_safe
end
# rubocop:enable Rails/OutputSafety
+
+ # rubocop:disable Rails/OutputSafety
+ def render_globus_download(uri)
+ return if uri.blank?
+ html = <<-HTML
+
+
+
+ HTML
+ html.html_safe
+ end
+ # rubocop:enable Rails/OutputSafety
end
diff --git a/app/models/solr_document.rb b/app/models/solr_document.rb
index 00b922e1..a5fd4191 100644
--- a/app/models/solr_document.rb
+++ b/app/models/solr_document.rb
@@ -93,4 +93,8 @@ def files
def referenced_by
fetch("referenced_by_ssim", [])
end
+
+ def uri
+ fetch("uri_tesim", [])
+ end
end
diff --git a/app/views/catalog/_show_documents.html.erb b/app/views/catalog/_show_documents.html.erb
index 2aef8e80..9349d0d1 100644
--- a/app/views/catalog/_show_documents.html.erb
+++ b/app/views/catalog/_show_documents.html.erb
@@ -32,11 +32,9 @@
-
+ <% @document.uri.each do |uri| %>
+ <%= render_globus_download(uri) if uri.include?("app.globus.org") %>
+ <% end %>
diff --git a/spec/fixtures/globus_items.xml b/spec/fixtures/globus_items.xml
new file mode 100644
index 00000000..0d6284f2
--- /dev/null
+++ b/spec/fixtures/globus_items.xml
@@ -0,0 +1,321 @@
+
+
+
+ 88435/dsp01dn39x4181
+ 88163
+ Noise correlations in the human brain and their impact on pattern classification
+ item
+ true
+
+ parent
+ policies
+ all
+ 114309
+ license.txt
+ bitstream
+ LICENSE
+ 1e204dad3e9e1e2e6660eef9c33467e9
+ License
+ text/plain
+ /bitstreams/114309/retrieve
+ 3
+ 3223
+
+
+ parent
+ policies
+ all
+ 114347
+ README.txt
+ bitstream
+ ORIGINAL
+ 0adebe81c7a6bde191a16e0aac7c62f8
+ Text
+ text/plain
+ /bitstreams/114347/retrieve
+ 4
+ 2887
+
+
+ parent
+ policies
+ all
+ 114308
+ Corr_MVPA_archive.tar.gz
+ bitstream
+ ORIGINAL
+ 58d40d8ffe48f1e5ac402e135ce04993
+ Unknown
+ application/octet-stream
+ /bitstreams/114308/retrieve
+ 2
+ 2750449822
+
+
+ parent
+ policies
+ all
+ 114348
+ README.txt.txt
+ bitstream
+ TEXT
+ 638def192538ce3a9ec7e2886efb4721
+ Extracted text
+ Text
+ text/plain
+ /bitstreams/114348/retrieve
+ 5
+ 2878
+
+ 2020-12-09 21:39:02.118
+
+ dc.contributor.author
+ Bejjanki, Vikranth R.
+
+
+ dc.contributor.author
+ da Silveira, Rava Azeredo
+
+
+ dc.contributor.author
+ Cohen, Jonathan D.
+
+
+ dc.contributor.author
+ Turk-Browne, Nicholas B.
+
+
+ dc.date.accessioned
+ 2017-08-10T18:42:18Z
+
+
+ dc.date.available
+ 2017-08-10T18:42:18Z
+
+
+ dc.date.issued
+ 2017-08
+
+
+ dc.identifier.uri
+ http://arks.princeton.edu/ark:/88435/dsp01dn39x4181
+
+
+ dc.identifier.uri
+ https://app.globus.org/file-manager?origin_id=dc43f461-0ca7-4203-848c-33a9fc00a464&origin_path=%2F9a07-f696%2F
+
+
+ dc.description
+ en_US
+ fMRI data used to carry out the analyses described in: Vikranth R. Bejjanki, Rava Azeredo da Silveira, Jonathan D. Cohen, & Nicholas B. Turk-Browne, "Noise correlations in the human brain and their impact on pattern classification". Includes data from 17 human participants, acquired with a 3T scanner (Siemens Skyra) using a 16-channel head coil. For each participant, data from two face/scene "localizer" runs, where participants were presented with blocks of face or scene stimuli interleaved with blank periods, and two "rest" runs, where participants passively viewed a central fixation point, is included. Further information is available in the dataset README file. This dataset is too large to download directly from this item page. You can access and download the data via Globus at this link: https://app.globus.org/file-manager?origin_id=dc43f461-0ca7-4203-848c-33a9fc00a464&origin_path=%2F9a07-f696%2F (See https://docs.globus.org/how-to/get-started/ for instructions on how to use Globus, sign-in is required).
+
+
+ dc.description.abstract
+ en_US
+ Multivariate decoding methods, such as multivoxel pattern analysis (MVPA), are highly effective at extracting information from brain imaging data. Yet, the precise nature of the information that MVPA draws upon remains controversial. Most current theories emphasize the enhanced sensitivity imparted by aggregating across voxels that have mixed and weak selectivity. However, beyond the selectivity of individual voxels, neural variability is correlated across voxels, and such noise correlations may contribute importantly to accurate decoding. Indeed, a recent computational theory proposed that noise correlations enhance multivariate decoding from heterogeneous neural populations. Here we extend this theory from the scale of neurons to functional magnetic resonance imaging (fMRI) and show that noise correlations between heterogeneous populations of voxels (i.e., voxels selective for different stimulus variables) contribute to the success of MVPA. Specifically, decoding performance is enhanced when voxels with high vs. low noise correlations (measured during rest or in the background of the task) are selected during classifier training. Conversely, voxels that are strongly selective for one class in a GLM or that receive high classification weights in MVPA tend to exhibit high noise correlations with voxels selective for the other class being discriminated against. Furthermore, we use simulations to show that this is a general property of fMRI data and that selectivity and noise correlations can have distinguishable influences on decoding. Taken together, our findings demonstrate that if there is signal in the data, the resulting above-chance classification accuracy is modulated by the magnitude of noise correlations.
+
+
+ dc.title
+ en_US
+ Noise correlations in the human brain and their impact on pattern classification
+
+
+ dc.type
+ en_US
+ Dataset
+
+
+ pu.projectgrantnumber
+ PRINU-24400-G0002-10005089-101
+
+
+ parentCommunityList
+ parentCommunity
+ items
+ license
+ logo
+ all
+ 88435/dsp010g354h44r
+ 1061
+ Research Data Sets
+ collection
+
+
+ 28
+
+
+
+
+ parentCommunityList
+ parentCommunity
+ items
+ license
+ logo
+ all
+ 88435/dsp010g354h44r
+ 1061
+ Research Data Sets
+ collection
+
+
+ 28
+
+
+
+
+ parentCommunity
+ collections
+ subCommunities
+ logo
+ all
+ 88435/dsp0147429c369
+ 326
+ Princeton Neuroscience Institute
+ community
+
+ 28
+
+
+
+
+ false
+
+
+ 88435/dsp016395w7223
+ 6517
+ Antialigned Rapidly Spinning Dipoles
+ item
+ true
+
+ parent
+ policies
+ all
+ 12273
+ t180s40.mpeg
+ bitstream
+ ORIGINAL
+ 4fafcf073dc7c18d7b794a6dba55f65c
+ MPEG
+ video/mpeg
+ /bitstreams/12273/retrieve
+ 1
+ 14170112
+
+
+ parent
+ policies
+ all
+ 12274
+ license.txt
+ bitstream
+ LICENSE
+ ae283e337459cd3987abe61b476da4f2
+ License
+ text/plain
+ /bitstreams/12274/retrieve
+ 2
+ 3223
+
+ 2013-11-21 15:09:46.279
+
+ dc.contributor
+ Li, Jason
+
+
+ dc.creator
+ Li, Jason
+
+
+ dc.date.accessioned
+ 2013-11-21T20:09:46Z
+
+
+ dc.date.available
+ 2013-11-21T20:09:46Z
+
+
+ dc.date.issued
+ 2013-11-21
+
+
+ dc.identifier.uri
+ http://arks.princeton.edu/ark:/88435/dsp016395w7223
+
+
+ dc.description.abstract
+ en_US
+ Magnetic field lines and current sheets for an orbiting neutron star binary with the magnetic moment of one star aligned with the rotation axis, and the magnetic moment of the other star tilted and antialigned with the rotation axis. The stars are spinning rapidly at ∼ ms periods, with R_{LC,∗} /R_∗ = 2.7. Stellar spin winds fields backwards toroidally. This movie shows the corotating field pattern as the orbit progresses.
+
+
+ dc.language.iso
+ en_US
+ en_US
+
+
+ dc.title
+ en_US
+ Antialigned Rapidly Spinning Dipoles
+
+
+ dc.type
+ en_US
+ moving image
+
+
+ pu.projectgrantnumber
+ en_US
+ 120-6425
+
+
+ parentCommunityList
+ parentCommunity
+ items
+ license
+ logo
+ all
+ 88435/dsp01ff365529x
+ 261
+ Research Data Sets
+ collection
+
+
+ 15
+
+
+
+
+ parentCommunityList
+ parentCommunity
+ items
+ license
+ logo
+ all
+ 88435/dsp01ff365529x
+ 261
+ Research Data Sets
+ collection
+
+
+ 15
+
+
+
+
+ parentCommunity
+ collections
+ subCommunities
+ logo
+ all
+ 88435/dsp01k643b120w
+ 186
+ Astrophysical Sciences
+ community
+
+ 15
+
+
+
+
+ false
+
+
diff --git a/spec/system/globus_item_metadata_spec.rb b/spec/system/globus_item_metadata_spec.rb
new file mode 100644
index 00000000..40d59f4e
--- /dev/null
+++ b/spec/system/globus_item_metadata_spec.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+describe 'Item page with Globus download integration', type: :system, js: true do
+ let(:globus_fixtures) { File.read(File.join(fixture_path, 'globus_items.xml')) }
+ let(:indexer) do
+ Indexer.new(globus_fixtures)
+ end
+
+ before do
+ Blacklight.default_index.connection.delete_by_query("*:*")
+ Blacklight.default_index.connection.commit
+ indexer.index
+ end
+
+ it "displays the Globus download button when the integration is present" do
+ visit '/catalog/88163'
+ expect(page).to have_content "Download from Globus"
+ end
+
+ it "does not display the Globus download button when the integration is not present" do
+ visit '/catalog/6517'
+ expect(page).not_to have_content "Download from Globus"
+ end
+end