-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #736 from sul-dlss/t714-collection2
Adds items in this collection section.
- Loading branch information
Showing
11 changed files
with
316 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<% if document.collection? && document.folio_instance_hrid %> | ||
<div class="section"> | ||
<div class="section-heading"> | ||
<h2>Items in collection</h2> | ||
</div> | ||
<div class="section-body"> | ||
<%= link_to 'View items in this collection in SearchWorks', "#{Settings.searchworks.url}/catalog?f[collection][]=#{document.folio_instance_hrid}" %> | ||
</div> | ||
</div> | ||
<% end %> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" version="3.7" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd"> | ||
<titleInfo usage="primary"> | ||
<title>Native American Alumni Oral Histories</title> | ||
</titleInfo> | ||
<typeOfResource manuscript="yes" collection="yes">mixed material</typeOfResource> | ||
<language> | ||
<languageTerm authority="iso639-2b" type="code">eng</languageTerm> | ||
</language> | ||
<originInfo> | ||
<place> | ||
<placeTerm authority="marccountry" type="code">cau</placeTerm> | ||
</place> | ||
<issuance>monographic</issuance> | ||
</originInfo> | ||
<location> | ||
<url usage="primary display">https://purl.stanford.edu/bb631ry3167</url> | ||
</location> | ||
<location> | ||
<physicalLocation>Dept. of Special Collections and University Archives Stanford University Libraries Stanford, CA 94305</physicalLocation> | ||
</location> | ||
<recordInfo> | ||
<recordContentSource authority="marcorg">CSt</recordContentSource> | ||
<descriptionStandard>aacr</descriptionStandard> | ||
<descriptionStandard>dacs</descriptionStandard> | ||
<recordOrigin>Converted from MARCXML to MODS version 3.7 using MARC21slim2MODS3-7_SDR_v2-5.xsl (SUL 3.7 version 2.5 20210421; LC Revision 1.140 20200717)</recordOrigin> | ||
<recordCreationDate encoding="marc">210811</recordCreationDate> | ||
<recordIdentifier source="SIRSI">a13965062</recordIdentifier> | ||
</recordInfo> | ||
<accessCondition type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</accessCondition> | ||
<accessCondition type="copyright">Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</accessCondition> | ||
</mods> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<publicObject id="druid:bb631ry3167" published="2023-01-05T18:31:17Z" publishVersion="cocina-models/0.86.0"> | ||
<identityMetadata> | ||
<objectType>collection</objectType> | ||
<objectLabel>Native American Alumni Oral Histories</objectLabel> | ||
<otherId name="catkey">13965062</otherId> | ||
<otherId name="folio_instance_hrid">a13965062</otherId> | ||
</identityMetadata> | ||
<rightsMetadata> | ||
<access type="discover"> | ||
<machine> | ||
<world/> | ||
</machine> | ||
</access> | ||
<access type="read"> | ||
<machine> | ||
<world/> | ||
</machine> | ||
</access> | ||
<use> | ||
<human type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</human> | ||
<license/> | ||
</use> | ||
<copyright> | ||
<human>Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</human> | ||
</copyright> | ||
</rightsMetadata> | ||
<rdf:RDF xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | ||
<rdf:Description rdf:about="info:fedora/druid:bb631ry3167"> | ||
|
||
|
||
</rdf:Description> | ||
</rdf:RDF> | ||
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:srw_dc="info:srw/schema/1/dc-schema" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> | ||
<dc:title>Native American Alumni Oral Histories</dc:title> | ||
<dc:type>Collection</dc:type> | ||
<dc:language>eng</dc:language> | ||
<dc:identifier>https://purl.stanford.edu/bb631ry3167</dc:identifier> | ||
</oai_dc:dc> | ||
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" version="3.7" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd"> | ||
<titleInfo usage="primary"> | ||
<title>Native American Alumni Oral Histories</title> | ||
</titleInfo> | ||
<typeOfResource manuscript="yes" collection="yes">mixed material</typeOfResource> | ||
<language> | ||
<languageTerm authority="iso639-2b" type="code">eng</languageTerm> | ||
</language> | ||
<originInfo> | ||
<place> | ||
<placeTerm authority="marccountry" type="code">cau</placeTerm> | ||
</place> | ||
<issuance>monographic</issuance> | ||
</originInfo> | ||
<location> | ||
<url usage="primary display">https://purl.stanford.edu/bb631ry3167</url> | ||
</location> | ||
<location> | ||
<physicalLocation>Dept. of Special Collections and University Archives Stanford University Libraries Stanford, CA 94305</physicalLocation> | ||
</location> | ||
<recordInfo> | ||
<recordContentSource authority="marcorg">CSt</recordContentSource> | ||
<descriptionStandard>aacr</descriptionStandard> | ||
<descriptionStandard>dacs</descriptionStandard> | ||
<recordOrigin>Converted from MARCXML to MODS version 3.7 using MARC21slim2MODS3-7_SDR_v2-5.xsl (SUL 3.7 version 2.5 20210421; LC Revision 1.140 20200717)</recordOrigin> | ||
<recordCreationDate encoding="marc">210811</recordCreationDate> | ||
<recordIdentifier source="SIRSI">a13965062</recordIdentifier> | ||
</recordInfo> | ||
<accessCondition type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</accessCondition> | ||
<accessCondition type="copyright">Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</accessCondition> | ||
</mods> | ||
<releaseData> | ||
<release to="Searchworks">true</release> | ||
</releaseData> | ||
</publicObject> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" version="3.7" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd"> | ||
<titleInfo usage="primary"> | ||
<title>Native American Alumni Oral Histories</title> | ||
</titleInfo> | ||
<typeOfResource manuscript="yes" collection="yes">mixed material</typeOfResource> | ||
<language> | ||
<languageTerm authority="iso639-2b" type="code">eng</languageTerm> | ||
</language> | ||
<originInfo> | ||
<place> | ||
<placeTerm authority="marccountry" type="code">cau</placeTerm> | ||
</place> | ||
<issuance>monographic</issuance> | ||
</originInfo> | ||
<location> | ||
<url usage="primary display">https://purl.stanford.edu/bb631ry3167</url> | ||
</location> | ||
<location> | ||
<physicalLocation>Dept. of Special Collections and University Archives Stanford University Libraries Stanford, CA 94305</physicalLocation> | ||
</location> | ||
<recordInfo> | ||
<recordContentSource authority="marcorg">CSt</recordContentSource> | ||
<descriptionStandard>aacr</descriptionStandard> | ||
<descriptionStandard>dacs</descriptionStandard> | ||
<recordOrigin>Converted from MARCXML to MODS version 3.7 using MARC21slim2MODS3-7_SDR_v2-5.xsl (SUL 3.7 version 2.5 20210421; LC Revision 1.140 20200717)</recordOrigin> | ||
<recordCreationDate encoding="marc">210811</recordCreationDate> | ||
<recordIdentifier source="SIRSI">a13965062</recordIdentifier> | ||
</recordInfo> | ||
<accessCondition type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</accessCondition> | ||
<accessCondition type="copyright">Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</accessCondition> | ||
</mods> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<publicObject id="druid:bb631ry3167" published="2023-01-05T18:31:17Z" publishVersion="cocina-models/0.86.0"> | ||
<identityMetadata> | ||
<objectType>collection</objectType> | ||
<objectLabel>Native American Alumni Oral Histories</objectLabel> | ||
<otherId name="catkey">13965062</otherId> | ||
</identityMetadata> | ||
<rightsMetadata> | ||
<access type="discover"> | ||
<machine> | ||
<world/> | ||
</machine> | ||
</access> | ||
<access type="read"> | ||
<machine> | ||
<world/> | ||
</machine> | ||
</access> | ||
<use> | ||
<human type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</human> | ||
<license/> | ||
</use> | ||
<copyright> | ||
<human>Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</human> | ||
</copyright> | ||
</rightsMetadata> | ||
<rdf:RDF xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | ||
<rdf:Description rdf:about="info:fedora/druid:bb631ry3167"> | ||
|
||
|
||
</rdf:Description> | ||
</rdf:RDF> | ||
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:srw_dc="info:srw/schema/1/dc-schema" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> | ||
<dc:title>Native American Alumni Oral Histories</dc:title> | ||
<dc:type>Collection</dc:type> | ||
<dc:language>eng</dc:language> | ||
<dc:identifier>https://purl.stanford.edu/bb631ry3167</dc:identifier> | ||
</oai_dc:dc> | ||
<mods xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" version="3.7" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-7.xsd"> | ||
<titleInfo usage="primary"> | ||
<title>Native American Alumni Oral Histories</title> | ||
</titleInfo> | ||
<typeOfResource manuscript="yes" collection="yes">mixed material</typeOfResource> | ||
<language> | ||
<languageTerm authority="iso639-2b" type="code">eng</languageTerm> | ||
</language> | ||
<originInfo> | ||
<place> | ||
<placeTerm authority="marccountry" type="code">cau</placeTerm> | ||
</place> | ||
<issuance>monographic</issuance> | ||
</originInfo> | ||
<location> | ||
<url usage="primary display">https://purl.stanford.edu/bb631ry3167</url> | ||
</location> | ||
<location> | ||
<physicalLocation>Dept. of Special Collections and University Archives Stanford University Libraries Stanford, CA 94305</physicalLocation> | ||
</location> | ||
<recordInfo> | ||
<recordContentSource authority="marcorg">CSt</recordContentSource> | ||
<descriptionStandard>aacr</descriptionStandard> | ||
<descriptionStandard>dacs</descriptionStandard> | ||
<recordOrigin>Converted from MARCXML to MODS version 3.7 using MARC21slim2MODS3-7_SDR_v2-5.xsl (SUL 3.7 version 2.5 20210421; LC Revision 1.140 20200717)</recordOrigin> | ||
<recordCreationDate encoding="marc">210811</recordCreationDate> | ||
<recordIdentifier source="SIRSI">a13965062</recordIdentifier> | ||
</recordInfo> | ||
<accessCondition type="useAndReproduction">The materials are open for research use and may be used freely for non-commercial purposes with an attribution. For commercial permission requests, please contact the Stanford University Archives ([email protected]).</accessCondition> | ||
<accessCondition type="copyright">Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved.</accessCondition> | ||
</mods> | ||
<releaseData> | ||
<release to="Searchworks">true</release> | ||
</releaseData> | ||
</publicObject> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'purl/_collection_items' do | ||
context 'when collection has a folio HRID' do | ||
let(:purl) { PurlResource.new(id: 'bb631ry3167') } | ||
|
||
it 'displays a View items in this collection link' do | ||
# render | ||
render 'purl/collection_items', document: purl | ||
expect(rendered).to have_css 'a[href="https://searchworks.stanford.edu/catalog?f[collection][]=a13965062"]', | ||
text: 'View items in this collection in SearchWorks' | ||
end | ||
end | ||
|
||
context 'when collection does not have a folio HRID' do | ||
let(:purl) { PurlResource.new(id: 'gk894yk3598') } | ||
|
||
it 'does not display View items in this collection link' do | ||
# render | ||
render 'purl/collection_items', document: purl | ||
expect(rendered).not_to have_css 'a' | ||
end | ||
end | ||
|
||
context 'when not a collection' do | ||
let(:purl) { PurlResource.new(id: 'cg357zz0321') } | ||
|
||
it 'does not display View items in this collection link' do | ||
# render | ||
render 'purl/collection_items', document: purl | ||
expect(rendered).not_to have_css 'a' | ||
end | ||
end | ||
end |