-
Notifications
You must be signed in to change notification settings - Fork 5
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 #493 from UCLALibrary/URS-512_Redirect_to_Collecti…
…on_Page The collection item on the search results page should link to the Collection Page
- Loading branch information
Showing
4 changed files
with
160 additions
and
3 deletions.
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,119 @@ | ||
# frozen_string_literal: true | ||
|
||
TEST1_WORK = { | ||
id: 'test1123', | ||
ark_ssi: ['ark:/24920492/029402'], | ||
has_model_ssim: ['Work'], | ||
title_tesim: ['The Title of my Work'], | ||
sort_title_ssort: 'The Title of my Work', | ||
description_tesim: ['Description 1', 'Description 2'], | ||
subject_tesim: ['Subj 1', 'Subj 2'], | ||
human_readable_resource_type_tesim: ['still image'], | ||
human_readable_rights_statement_tesim: ['copyrighted'], | ||
genre_tesim: ['Genre 1', 'Genre 2', 'Genre 3'], | ||
named_subject_tesim: ["Named Subject 1", "Named Subject 2", "Named Subject 3", "Named Subject 4"], | ||
repository_tesim: ['University of California, Los Angeles. Library. Department of Special Collections'], | ||
location_tesim: ['Los Angeles'], | ||
publisher_tesim: ['Los Angeles Daily News'], | ||
rights_country_tesim: ['US'], | ||
rights_holder_tesim: ['Charles E. Young'], | ||
normalized_date_sim: ['1934-56-78'], # unique value so we can test it doesn't display | ||
local_identifier_ssm: ['local id 123'], | ||
date_created_tesim: ["September 17, 1947"], | ||
medium_tesim: ['1 photograph'], | ||
extent_tesim: ['1 photograph'], | ||
dimensions_tesim: ['10 x 12.5 cm.'], | ||
funding_note_tesim: ['Info about funding'], | ||
caption_tesim: ['the caption'], | ||
human_readable_language_tesim: ['No linguistic content'], | ||
photographer_tesim: ['Poalillo, Charles'], | ||
member_of_collections_ssim: ['Bennett'], | ||
member_of_collection_ids_ssim: ['coll456'], | ||
license_tesim: ['https://creativecommons.org/licenses/by/4.0/'], | ||
services_contact_ssm: ['UCLA Special Collections Services Contact'], | ||
longitude_tesim: ['-118.4398'], | ||
latitude_tesim: ['34.0700'], | ||
alternative_title_tesim: ['Alernative Title of my Work'], | ||
uniform_title_tesim: ['Uniform Title of my Work'], | ||
architect_tesim: ['Alexander Butterfly'], | ||
# year_isim: ['1974'], | ||
place_of_origin_tesim: ['Dudley, MA'], | ||
oclc_tesim_ssi: ['Powell Library'], | ||
format_tesim: ['Film Still'], | ||
support_tesim: ['Mom & Dad'], | ||
read_access_group_ssim: ["public"], | ||
thumbnail_url_ss: ["http://thumbnail/work_1.jpg"], | ||
visibility_ssi: ['open'] | ||
}.freeze | ||
|
||
TEST2_WORK = { | ||
id: 'test2id123', | ||
has_model_ssim: ['Work'], | ||
title_tesim: ['Title One'], | ||
sort_title_ssort: 'Title One', | ||
identifier_tesim: ['ark 123'], | ||
description_tesim: ['Description 1', 'Description 2'], | ||
date_created_tesim: ["Date 1"], | ||
sort_year_isi: 1923, | ||
human_readable_resource_type_tesim: ['still image'], | ||
subject_tesim: ['Testing', 'RSpec'], | ||
photographer_tesim: ['Person 1', 'Person 2'], | ||
place_of_origin_tesim: ['Boston, MA', 'Philadelphia, PA', 'New York, NY', 'Los Angeles, CA'], | ||
location_tesim: ['search_results_spec'], # to control what displays, | ||
member_of_collections_ssim: ['Bennett'], | ||
member_of_collection_ids_ssim: ['coll456'], | ||
read_access_group_ssim: ["public"], | ||
thumbnail_url_ss: ["http://thumbnail/work_2.jpg"], | ||
visibility_ssi: ['open'] | ||
}.freeze | ||
|
||
TEST3_WORK = { | ||
id: 'test3id456', | ||
has_model_ssim: ['Work'], | ||
title_tesim: ['Title Two'], | ||
sort_title_ssort: 'Title Two', | ||
identifier_tesim: ['ark 456'], | ||
description_tesim: ['bennett', 'Description 4'], | ||
date_created_tesim: ["Date 1"], | ||
sort_year_isi: 1945, | ||
human_readable_resource_type_tesim: ['still image'], | ||
subject_tesim: ['Testing', 'Minitest'], | ||
photographer_tesim: ['Person 1'], | ||
location_tesim: ['search_results_spec'], # to control what displays | ||
collection_tesim: ['Slide Film', 'Analog', 'Photographs'], | ||
member_of_collections_ssim: ['Bennett'], | ||
member_of_collection_ids_ssim: ['coll456'], | ||
read_access_group_ssim: ["public"], | ||
thumbnail_url_ss: ["http://thumbnail/work_3.jpg"], | ||
visibility_ssi: ['open'] | ||
}.freeze | ||
|
||
BENNETT_COLLECTION = { | ||
id: 'coll456', | ||
title_tesim: ['Bennett'], | ||
services_contact_ssm: ['someone somewhere'], | ||
description_tesim: ['bennett', 'Description 4', 'another desc'], | ||
date_created_tesim: ["Date 1"], | ||
repository_tesim: ['UCLA Collection'], | ||
languages_tesim: ['en', 'es', 'gk'], | ||
human_readable_language_tesim: ['English', 'Spanish', 'Greek'] | ||
}.freeze | ||
|
||
TEST4_WORK = { | ||
id: 'test4id456', | ||
has_model_ssim: ['Work'], | ||
title_tesim: ['Title Three'], | ||
sort_title_ssort: 'Title Three', | ||
identifier_tesim: ['ark 456'], | ||
description_tesim: ['bennett', 'Description 4', 'another desc'], | ||
date_created_tesim: ["Date 1"], | ||
sort_year_isi: 1929, | ||
human_readable_resource_type_tesim: ['still image'], | ||
photographer_tesim: ['Person 1'], | ||
location_tesim: ['search_results_spec'], # to control what displays | ||
collection_tesim: ['Photographs', 'Digital'], | ||
thumbnail_url_ss: ["http://thumbnail/work_4.jpg"], | ||
member_of_collections_ssim: ['Bennett'], | ||
member_of_collection_ids_ssim: ['coll456'], | ||
visibility_ssi: ['open'] | ||
}.freeze |
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