I’m copying the solrmarc-tech mailing list into this reply in case anyone there can shed additional light. This feels like a feature that would be useful, but it’s not a use case I’ve run into before, and I’m not aware of a way to do it purely with the specification language. That being said, sometimes I think something is impossible and then somebody pops up with a solution. 😉
If you do need to build a custom method to do the job, you might find the code in FieldSpecTools.java useful for its examples of working with MARC data and processing field specs. You might even be able to use some of this logic (e.g. the getFieldData method) to simplify your own work. For an example of a custom Java class that uses FieldSpecTools, see WorkKeys.java.
You can find all the custom Java code here:
https://github.com/vufind-org/vufind/tree/dev/import/index_java/src/org/vufind/index
(And you can put files into the $VUFIND_LOCAL_DIR/import/index_java directory if you do end up building your own).
I hope this helps; please let me know if you need anything more!
- Demian
From: Romy Forrer via Vufind-tech <vufin...@lists.sourceforge.net>
Sent: Tuesday, August 13, 2024 9:01 PM
To: vufin...@lists.sourceforge.net
Subject: [EXTERNAL] [VuFind-Tech] Is joining subfields from 2 different tags for marc import indexing possible?
Hi everyone
Still working on expanding our title alphabetic browse to include other title related fields and have had a request related to uniform titles.
Staff would like to have 240’s added to the title browse BUT indexed with the content of the 100 coming first.
e.g. in the following example – we would want Bach,Johann Sebastian, 1685-1750 Cantatas. Texts. English

I’m trying to work out if this is possible with solrmarc/marc_local.properties.
Looking at the SolrMarc specification modifiers the “join” parameter only works on subfields from the same tag.
Has anyone worked out syntax to do this or have a custom method example we could try out?
Kind Regards,
Romy
Romy Forrer (she/her)
Library Systems Coordinator | Kairuruku Ratonga Matihiko
Library Access and Collections |Tūāpā Kohinga
Central Library | Te Puna Mātauraka o Waitaha
Puaka - James Hight Building| Room 519
Phone: +64 3 369 3875
University of Canterbury |Te Whare Wānanga o Waitaha |Private Bag 4800 |Christchurch 8140| New Zealand
Website: https://www.canterbury.ac.nz/study/library/
This email may be confidential and subject to legal privilege, it may not reflect the views of the University of Canterbury, and it is not guaranteed to be virus free. If you are not an intended recipient, please notify the sender immediately and erase all copies of the message and any attachments.