We also have "en" as our default language code. "*" and [] are added as you describe. And we get deposits from Elements as you describe. Our solution has been a nightly script to convert everything to [en], as reported in https://github.com/VTUL/vtechworks/issues/737. On Wednesday, April 20, 2022 at 10:41:57 PM UTC-4 [email protected] wrote:
> When we (v5.8 XMLUI Mirage2) export a CSV from Batch Metadata Editing, we > can get multiple columns for each metadata field due to different > “text_lang” codes being assigned = eg dc.title, dc.title[], dc.title[en], > dc.title[en_US], dc.title[*], etc. This is partially described at > https://wiki.lyrasis.org/display/DSPACE/TechnicalFAQ#TechnicalFAQ-MetadatavaluesinCSVexportseemtohaveduplicatecolumns > > and I’m comfortable with using both the CSV and SQL fixes for existing > data. But I’d like a more permanent solution for data created from this > point forward which, as the page notes, depends on the import methods. > > > > We have data from the following sources: > > 1. Records already in DSpace when we use the Edit Metadata > functionality – this mostly does what we tell it transparently, but > experimentation shows that on saving, any null language codes get saved as > '' instead. I suspect this is hard-coded and we’ll just need to live with > it. > 2. Records manually submitted direct to the DSpace workflow – these > seem to automatically add our instance’s default language en to some > fields; * to the Creative Commons license fields; and null to other > fields. > Is there somewhere we can edit any/all of these defaults? > 3. Records submitted from Symplectic Elements via SWORD v2 – these > come across as null, except a dc.provenance field is created by DSpace > with > en. We’re checking with the vendor whether we can specify language codes > on > their side, but I thought I’d better ask on the DSpace end are there any > configurable defaults in SWORD? > > > > Our dspace.cfg file has > > # Default language for metadata values > > default.language = en > > > > but this doesn’t explain why only some metadata fields are using that > value while others are using null or *. I can’t find anything in any of the > other config files or through the web interface. Is there anything > configurable, or is the ‘fix’ to just periodically run either the CSV or > SQL fix? > > > > Deborah > > –––––––––––––––––––––––––––––––––– > > *Deborah Fitchett* (she/her) MLIS, RLIANZA > > Associate University Librarian, Digital Scholarship > > > > –––––––––––––––––––––––––––––––––– > > *Learning, Teaching and Library – Te Whare Pūrākau* > > PO Box 85064, Lincoln University > > Lincoln 7647, Christchurch, New Zealand > > +64 3 423 0358 <+64%203-423%200358> > > [email protected] > > ltl.lincoln.ac.nz > > > > –––––––––––––––––––––––––––––––––– > > *Lincoln University* > > Te Whare Wānaka o Aoraki > > –––––––––––––––––––––––––––––––––– > > > > ------------------------------ > > "The contents of this e-mail (including any attachments) may be > confidential and/or subject to copyright. Any unauthorised use, > distribution, or copying of the contents is expressly prohibited. If you > have received this e-mail in error, please advise the sender by return > e-mail or telephone and then delete this e-mail together with all > attachments from your system." > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/c252f0c8-b036-4e08-9fca-a8f0416e22e3n%40googlegroups.com.
