Frédéric Demians
492dd7dc7f
- Note field (3xx) are not displayed on search result page. We get 'HASH()' text. - Parallel/Other forms (7xx) are not displayed, with language name in front of heading, both on result and detail page. - Note are not displayed. - On result page, seealso form are displayed, but end with a superfluous '--' - Style the result page, with condensed block, and space between them. - Done both on OPAC/staff To be applied on 3.8.x after bug 8523. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
92 lines
3.5 KiB
HTML
92 lines
3.5 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.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 %][% lang %]
|
|
[% END %]
|
|
[% END %]
|