DigitalLibraryofTennessee / DLTN_XSLT

XSL Transformations for DLTN Partner Metadata
4 stars 6 forks source link

UTK MODS Feed for utc_p16877coll6 has 2 bad records #299

Open markpbaggett opened 1 year ago

markpbaggett commented 1 year ago

Why are You Reporting an Issue

Problem with Set or Transform

I haven't looked at this too closely but this appears to be a problem with the trasform not properly spacing rights uris:

This is a bad record:
  {'mods': {'@xmlns': 'http://www.loc.gov/mods/v3', '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', '@xmlns:xlink': 'http://www.w3.org/1999/xlink', '@xmlns:oai_dc': 'http://www.openarchives.org/OAI/2.0/oai_dc/', '@xmlns:dc': 'http://purl.org/dc/elements/1.1/', '@xmlns:oai': 'http://www.openarchives.org/OAI/2.0/', '@version': '3.5', '@xsi:schemaLocation': 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd', 'titleInfo': {'title': '"Dead End" Ypres'}, 'identifier': ['30575', '90-288'], 'name': {'namePart': 'Warfield, Francis B.', 'role': {'roleTerm': {'@type': 'text', '@valueURI': 'http://id.loc.gov/vocabulary/relators/cre', '#text': 'Creator'}}}, 'originInfo': {'dateCreated': {'@encoding': 'edtf', '@keyDate': 'yes', '#text': '1918'}}, 'physicalDescription': {'internetMediaType': 'image/jp2'}, 'location': [{'url': [{'@usage': 'primary', '@access': 'object in context', '#text': 'http://cdm15138.contentdm.oclc.org/cdm/ref/collection/WWI/id/39'}, {'@access': 'preview', '#text': 'http://cdm15138.contentdm.oclc.org/utils/getthumbnail/collection/WWI/id/39'}, {'@note': 'iiif-manifest', '#text': 'http://cdm15138.contentdm.oclc.org/iiif/info/WWI/39/manifest.json'}], 'physicalLocation': 'Tennessee State Library and Archives'}, {'url': 'http://tennessee.gov/tsla/history/manuscripts/findingaids/90-288.pdf.'}], 'genre': {'@authority': 'aat', '@valueURI': 'http://vocab.getty.edu/aat/300046300', '#text': 'photographs'}, 'subject': [{'topic': 'War'}, {'topic': 'World War, 1914-1918'}, {'topic': 'Canals'}, {'topic': 'Barracks'}, {'topic': 'Military camps'}, {'topic': "Officers' quarters"}, {'topic': 'Mess halls'}, {'geographic': 'Ypres (Belgium)'}], 'abstract': 'This photograph features the "Dead End" of the Ypres Canal in the foreground of the image. Behind it appears the officers\' and noncommissioned officers\' billets and the mess hall. The caption reads: "All comforts of home. Roulette, Tea and boating in the afternoon."', 'accessCondition': {'@type': 'local rights statement', '#text': 'While TSLA houses an item, it does not necessarily hold the copyright on the item, nor may it be able to determine if the item is still protected under current copyright law. Users are solely responsible for determining the existence of such instances and for obtaining any other permissions and paying associated fees, that may be necessary for the intended use.'}, 'typeOfResource': 'still image', 'relatedItem': [{'@type': 'host', '@displayLabel': 'Collection', 'titleInfo': {'title': 'Frierson-Warfield Papers, 1813-1928'}}, {'@type': 'host', '@displayLabel': 'Project', 'titleInfo': {'title': 'Tennessee in World War I'}, 'abstract': 'The photographs in this online exhibit, selected from the Frierson-Warfield Papers and Karl Kleeman World War I Photographs, provide a thoughtful look at the Western Front during World War I from an American perspective. The photographs were chosen for their high quality and because they present a visual history of the 30th (Old Hickory) Division. Those researching this collection may find some of the images disturbing, especially the ones of dead soldiers. Some of the pictures were taken by individuals fighting in the war, while others were made by the U.S. Army Signal Corps and mass produced. Both types are striking in their portrayal of the horrors of the Great War...', 'location': {'url': 'http://cdm15138.contentdm.oclc.org/cdm/landingpage/collection/WWI'}}], 'recordInfo': {'recordContentSource': 'Tennessee State Library and Archives', 'recordChangeDate': '2023-05-24-04:00', 'languageOfCataloging': {'languageTerm': {'@type': 'code', '@authority': 'iso639-2b', '#text': 'eng'}}, 'recordOrigin': 'Record has been transformed into MODS 3.5 from a qualified Dublin Core record by the Digital Library of Tennessee, a service hub of the Digital Public Library of America, using a stylesheet available at https://github.com/utkdigitalinitiatives/DLTN. Metadata originally created in a locally modified version of qualified Dublin Core using ContentDM (data dictionary available: https://wiki.lib.utk.edu/display/DPLA.)'}}}
This is a bad record:
  {'mods': {'@xmlns': 'http://www.loc.gov/mods/v3', '@xmlns:xlink': 'http://www.w3.org/1999/xlink', '@xmlns:dltn': 'https://github.com/digitallibraryoftennessee', '@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance', '@version': '3.5', '@xsi:schemaLocation': 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd', 'titleInfo': {'title': 'Emma Bell Miles journal, 1915'}, 'abstract': "Journal authored by Walden's Ridge naturalist, artist, and author Emma Bell Miles from 1915 June 15 to 1915 September 22. The journal also includes newspaper clippings of Miles' Fountain Square Conversation column authored for the Chattanooga News.", 'name': {'namePart': 'Miles, Emma Bell, 1879-1919', 'role': {'roleTerm': {'@authority': 'marcrelator', '@authorityURI': 'http://id.loc.gov/vocabulary/relators/cre', '#text': 'Creator'}}}, 'subject': [{'topic': 'Women authors, American'}, {'topic': 'Emma Bell Miles, 1879-1919'}, {'geographic': 'Walden Ridge (Tenn.)'}, {'geographic': 'Appalachian Region, Southern'}], 'language': {'languageTerm': {'@type': 'code', '@authority': 'iso639-2b', '#text': 'eng'}}, 'identifier': {'@type': 'local', '#text': 'MS-078-02-16-03'}, 'originInfo': {'publisher': 'University of Tennessee at Chattanooga', 'dateCreated': {'@encoding': 'edtf', '@point': 'start', '#text': '1915'}}, 'accessCondition': {'@type': 'use and reproduction', '@xlink:href': '  https://creativecommons.org/publicdomain/mark/1.0/'}, 'location': {'url': [{'@usage': 'primary', '@access': 'object in context', '#text': 'http://cdm16877.contentdm.oclc.org/cdm/ref/collection/p16877coll6/id/1362'}, {'@access': 'preview', '#text': 'http://cdm16877.contentdm.oclc.org/utils/getthumbnail/collection/p16877coll6/id/1362'}]}, 'relatedItem': [{'@type': 'host', 'titleInfo': {'title': ['Emma Bell Miles journals, 1908-1918', 'Emma Bell Miles correspondence, journals, and other material, 1874-1918', 'Jean Miles Catino and Emma Bell Miles papers', 'Special Collections']}}, {'@displayLabel': 'Collection', 'titleInfo': {'title': 'Emma Bell Miles Southern Appalachia art and correspondence'}}], 'physicalDescription': {'internetMediaType': ['image/jp2', 'text/plain'], 'extent': '100 leaves', 'form': ['Text', 'diaries']}, 'recordInfo': {'recordContentSource': 'University of Tennessee at Chattanooga', 'recordChangeDate': '2023-05-24-04:00', 'languageOfCataloging': {'languageTerm': {'@type': 'code', '@authority': 'iso639-2b', '#text': 'eng'}}, 'recordOrigin': 'Record has been transformed into MODS 3.5 from a Qualified Dublin Core record by the Digital Library of Tennessee, a service hub of the Digital Public Library of America, using a stylesheet available at https://github.com/digitallibraryoftennessee/DLTN_XSLT. Metadata originally created in a locally modified version of Qualified Dublin Core using ContentDM (data dictionary available: https://dltn-technical-docs.readthedocs.io).'}}}