Skip to content

Commit

Permalink
Fix test: TrlnArgon::SolrDocument export as ris exports the document …
Browse files Browse the repository at this point in the history
…as RIS
  • Loading branch information
Genia Kazymova committed Jan 11, 2024
1 parent 3beb7c4 commit 77a23f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trln_argon/solr_document/ris_field_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def ris_field_mapping
# Notes
N1: TrlnArgon::Fields::NOTE_GENERAL,
# Publisher (Note: Combined with Place Published in Argon imprint_main)
PB: proc { publisher_name_text },
PB: proc { publisher_name_text },

# Publication year (YYYY/MM/DD)
PY: TrlnArgon::Fields::PUBLICATION_YEAR,
Expand Down
2 changes: 2 additions & 0 deletions spec/fixtures/files/documents/DUKE002952265.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
- '{"type":"imprint", "label":"", "value":"Washington : Smithsonian Institution Press, 1986."}'
publisher_location_a:
- 'Washington'
publisher_a:
- ["Smithsonian Institution Press"]
misc_id_qual_a:
- ''
misc_id_type_a:
Expand Down
1 change: 1 addition & 0 deletions spec/lib/trln_argon/solr_document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ class SolrDocumentTestClass
"KW - Echinodermata -- Classification\r\n"\
"KW - Echinodermata -- Atlantic Ocean -- Classification\r\n"\
"LA - English\r\n"\
"PB - Smithsonian Institution Press\r\n"\
"PY - 1986\r\n"\
'TI - Revision of the Atlantic Brisingida (Echinodermata:Asteroidea), '\
"with description of a new genus and family /\r\n"\
Expand Down

0 comments on commit 77a23f2

Please sign in to comment.