68c44093a4
To reproduce and test: To reproduce: 1) Create an authority record with main heading (100) in Latin script (e.g. Oppenheimer, Aharon -- subfields $a and $b) and parallel form (700) in Hebrew (אופנהיימר, אהרן -- subfields $a and $b). Mark it correctly in $8 with freheb (or engheb if you like); 2) Reindex and search; 3) You will see: Oppenheimer Aharon freheb: אופנהיימר Whereas you would rather like to see (mind language and lack of $b above): Oppenheimer, Aharon Hebrew: אופנהיימר, אהרן The patch corrects the issue and should not harm those who (improperly) put only one triple in $8 Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Work as described. No koha-qa errors. Same result on OPAC and STAFF Turns out that test plan is wrong, you neet to fill tag 200ab, not 100ab, for main heading. I filled 100a with some example data from UNIMARC auth manual. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Took me a bit to figure it out, works according to test plan. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
104 lines
4 KiB
HTML
104 lines
4 KiB
HTML
[% BLOCK showreference %]
|
|
[% IF marcflavour == 'UNIMARC' %]
|
|
[% SWITCH type %]
|
|
[% CASE 'broader' %]
|
|
<span class="BT">BT: [% heading | html %]</span>
|
|
[% CASE 'narrower' %]
|
|
<span class="NT">NT: [% heading | html %]</span>
|
|
[% CASE 'seefrom' %]
|
|
<span class="UF">UF: [% heading | html %]</span>
|
|
[% CASE 'seealso' %]
|
|
<span class="RT">RT: [% heading | html %]</span>
|
|
[% END %]
|
|
[% ELSE %]
|
|
[% IF ( label ) %]<span class="label">[% label | html %]</span>[% END %]
|
|
<span class="heading">
|
|
[% IF ( linkpath && search ) %]<a href="[% link | url %][% search | url %]">[% heading | html %]</a>
|
|
[% ELSE %][% heading | html %][% END %]
|
|
</span>
|
|
[% UNLESS ( type=='seefrom' || type=='seealso' ) %]<span class="type">[% SWITCH type %]
|
|
[% CASE 'earlier' %](Earlier heading)
|
|
[% CASE 'later' %](Later heading)
|
|
[% CASE 'acronym' %](Acronym)
|
|
[% CASE 'musical' %](Musical composition)
|
|
[% CASE 'broader' %](Broader heading)
|
|
[% CASE 'narrower' %](Narrower heading)
|
|
[% CASE 'parent' %](Immediate parent body)
|
|
[% CASE %][% IF type %]([% type | html %])[% END %]
|
|
[% END %]</span>[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% BLOCK authresult %]
|
|
[% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
|
|
[% UNLESS ( summary.summaryonly ) %]
|
|
<div class="authorizedheading">
|
|
[% FOREACH authorize IN summary.authorized %]
|
|
<span class="authorizedheading">[% authorize.heading | html %]</span>
|
|
[% END %]
|
|
</div>
|
|
[% IF ( marcflavour == 'UNIMARC' ) %]
|
|
[% IF summary.notes %]
|
|
<div class="authres_notes">
|
|
[% FOREACH note IN summary.notes %]
|
|
[% note.note | html %]</span>
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% IF summary.seefrom %]
|
|
<div class="authres_seefrom">
|
|
[% FOREACH see IN summary.seefrom %]
|
|
[% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
|
|
[% IF ! loop.last %] ; [% END %]
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% IF summary.seealso %]
|
|
<div class="authres_seealso">
|
|
[% FOREACH see IN summary.seealso %]
|
|
[% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
|
|
[% IF ! loop.last %] ; [% END %]
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% IF summary.otherscript %]
|
|
<div class="authres_otherscript">
|
|
[% FOREACH other IN summary.otherscript %]
|
|
[% PROCESS language lang=other.lang | trim %]:
|
|
[% other.term %]
|
|
[% IF ! loop.last %] ; [% END %]
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
|
|
[% ELSE %]
|
|
[% IF ( summary.seefrom ) %]
|
|
[% FOREACH seefro IN summary.seefrom %]
|
|
<div class="seefrom authref">
|
|
[% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF ( summary.seealso ) %]
|
|
[% FOREACH seeals IN summary.seealso %]
|
|
<div class="seealso authref">
|
|
[% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
|
|
</div>
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% END %]
|
|
[% BLOCK language %]
|
|
[% SWITCH lang %]
|
|
[% CASE ['en', 'eng'] %]English
|
|
[% CASE ['fr', 'fre'] %]French
|
|
[% CASE ['it', 'ita'] %]Italian
|
|
[% CASE ['de', 'ger', 'deu'] %]German
|
|
[% CASE ['es', 'spa'] %]Spanish
|
|
[% CASE ['heb'] %]Hebrew
|
|
[% CASE ['ara'] %]Arabic
|
|
[% CASE ['gre'] %]Greek (modern)
|
|
[% CASE ['grc'] %]Greek (to 1453)
|
|
[% CASE %][% lang %]
|
|
[% END %]
|
|
[% END %]
|