There is no space between the title and the medium. I've only seen this in the heading on the bookings list page, but I think the problem is in biblio-title-head.inc, so it could pop up elsewhere. To replicate: 1. Find a biblio record 2. Edit the record to add 245$h (in MARC21) Optionally reorder the title subfields in this order a, n, p, h, b, c; the slash should also go at the end of 245$h 3. Go to the items tab on the left 4. Change Bookable to Yes and update 5. Go to the bookings tab on the left --> There is no space between the title and the medium 6. Go to the holds tab on the left --> Spacing is OK
That janky title is all over the place, holds queue and holds to pull, <title> element for detail.pl and MARCdetail.pl, <title> and in the body for ISBD, circ history, place hold... I never actually noticed the lack of a space, because to a cataloger the way it just jams subfields in out of their proper order without doing anything about the punctuation stands out far, far more. "Title. [GMD] / Season two" looked at with cataloger eyes is horrifying, never mind the lack of a space.
Yes the order was bothering me too tbh... The $n after the $h is very weird to me. But I don't know enough about subfield order to propose something. I had a short conversation with Heather on that subject on Mattermost https://chat.koha-community.org/koha-community/pl/gg9m75e443grmdxutduqqkthcw The best way the title and its subfields are handled is in detail.pl, but that is done with XSLT, not TT, so I don't know if it is possible to do it like that with TT.
Well, it was possible to do it like detail.pl and we did, but as bug 11529 noted, it was expensive. And alas, that bug made the wrong choice, and rather than stick biblio.complete_title in the database it decided to jam in all the parts individually and then reassemble them without looking at the directions, which works fine if you only have two or three parts and there's only one way they can go together. There's absolutely no way to avoid the fact that that approach will turn some titles into a hopeless muddle: with parallel titles with part names and numbers translated, you will have $aPhil's cataloging rants.$pTitles.$nPart 3 =$bLas diatribas sobre catalogación de Phil$pTítulos$nParte 3 / which won't be reassembled well as Phil's cataloging rants.Las diatribas sobre catalogación de Phil.Part 3 =Titles.Parte 3 /Títulos We don't have a great track record with stripping and replacing punctuation, but possibly the simplest cases could be made a little better by stripping trailing ".", " :", and " /", and then for everything after title putting in the punctuation and spaces we think should go before it, based on the previous thing. Maybe. We've absolutely lost the game if anything ends with " =" so I'm not sure what we could do there.
As to the question of where $h belongs, that's not actually prescribed by MARC despite it mentioning the where a couple of times, but by AACR2, which wasn't ever online and is out of print. Happens I have a copy, though. GMD follows the "title proper," which by and large means after $a$n$p. That's what MARC says too, "It follows the title proper (subfields $a, $n, $p) and precedes the remainder of the title ($b)" But, that's MARC21. biblio-title-head.inc clearly supports UNIMARC too, with multiple subtitles, separated by commas in UNIMARC (and MARC21 doesn't support multiple subtitles, $b isn't repeatable). Ignoring the UNIMARC question, best for MARC21 would probably be biblio.title, part_numbers.[0], part_names.[0], biblio.medium, biblio.subtitle, part_numbers.[1-n], part_names.[1-n]. There are still a lot of things that would mess up, but I can't think of any where it's at all possible to get them right.