Kyle M Hall
a8942c2884
Revert "DBRev to make notes of the XSS patches and the new important dependency." This reverts commite140603a59
. Revert "Bug 13618: Specific for branches.opac_info" This reverts commit06e4a50f00
. Revert "Bug 13618: (follow-up) Specific for other prefs" This reverts commitd6475a111f
. Revert "Bug 13618: Fix for debarredcomment and patron messages" This reverts commitdd98c9df92
. Revert "Bug 13618: Do not display html tags in patron's notices" This reverts commita065b243fe
. Revert "Bug 13618: Do not display and html tags in item fields content" This reverts commitbaeeaffbf8
. Revert "Bug 13618: Fix for system preference description" This reverts commita967a09261
. Revert "Bug 13618: Remove html filters for newly pushed code" This reverts commit0e98662b10
. Revert "Bug 13618: (follow-up) add missing lines for opac-shelves" This reverts commitfc2fb605e5
. Revert "Bug 13618: (follow-up) Specific for ColumnsSettings" This reverts commitbc308fdd9c
. Revert "Bug 13618: Fix for edit biblios and items" This reverts commit811c4e8402
. Revert "Bug 13618: followup to remove tabs" This reverts commitca8e8c397c
. Revert "Bug 13618: Fix last occurrences recently introduced to master" This reverts commitbb417b256b
. Revert "Bug 13618: Fix for news" This reverts commitae5b98020a
. Revert "Bug 13618: Fix escape on sending baskets or shelves by email" This reverts commita7731ffe25
. Revert "Bug 13618: Specific for XSLTBloc" This reverts commit11fa38dc29
. Revert "Bug 13618: Specific for Salutation on editing a patron" This reverts commit36c07ad6d3
. Revert "Bug 13618: Specific for other prefs" This reverts commite6ea281a3b
. Revert "Bug 13618 - memberentrygen.tt errors Not a GLOB reference" This reverts commit7824874557
. Revert "Bug 13618: Specific for ColumnsSettings" This reverts commit1834da3da3
. Revert "Bug 13618: Specific for IntranetUser* and OPACUser* prefs" This reverts commit21ae62b253
. Revert "Bug 13618: Fix error 'Not a GLOB reference'" This reverts commit602bdbab4c
. Revert "Bug 13618: Specific for the ISBD view" This reverts commitd254362435
. Revert "Bug 13618: Specific for pagination_bar" This reverts commit8837a8ae68
. Revert "Bug 13618: Specific places where we don't need to escape variables - intra" This reverts commit00eff140b3
. Revert "Bug 13618: Remove html filters at the intranet" This reverts commit7db851ff03
. Revert "Bug 13618: Specific places where we don't need to escape variables" This reverts commit49a3738b8d
. Revert "Bug 13618: Remove html filters at the OPAC" This reverts commitcedaa0e23e
. Revert "Bug 13618: Use Template::Stash::AutoEscaping to use the html filter" This reverts commit01b38d3b13
. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
146 lines
5.3 KiB
HTML
146 lines
5.3 KiB
HTML
[% BLOCK showreference %]
|
|
[%#
|
|
Parameters:
|
|
heading: the heading itself
|
|
linkType: currently 'seefrom' or 'seealso', controls the label for the entry
|
|
type:
|
|
authid: if it is a linked authority, its authid
|
|
%]
|
|
[% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
|
|
[% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
|
|
|
|
[% 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 %]
|
|
<span class="heading">
|
|
[% IF ( linkType=='seealso' ) %]
|
|
[% IF ( authid ) %]
|
|
<a href="[% authidurl | url %][% authid | url %]">[% heading | html %]</a>
|
|
[% ELSE %]
|
|
<a href="[% searchurl | url %][% heading | html %]">[% heading | html %]</a>
|
|
[% END %]
|
|
[% 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.label ) %][% summary.label | html %]:[% END %]
|
|
[% IF summary.summary %]
|
|
<div class="authority-summary">
|
|
[% summary.summary %]
|
|
</div>
|
|
[% END %]
|
|
[% UNLESS ( summary.summaryonly ) %]
|
|
<div class="authorizedheading">
|
|
[% FOREACH authorize IN summary.authorized %]
|
|
<span class="authorizedheading">[% authorize.heading | html %]</span>
|
|
[% UNLESS loop.last %] | [% END %]
|
|
[% END %]
|
|
</div>
|
|
[% IF ( marcflavour == 'UNIMARC' ) %]
|
|
[% IF summary.notes %]
|
|
<div class="authres_notes">
|
|
[% FOREACH note IN summary.notes %]
|
|
<span>[% note.note | html %]</span>
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% IF summary.seefrom %]
|
|
<div class="authres_seefrom">
|
|
[% FOREACH see IN summary.seefrom %]
|
|
[% PROCESS showreference heading=see.heading linkType="" 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 linkType="" 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.size >= 1 ) %]
|
|
<div class="seefrom">
|
|
<span class="seefrom">used for/see from:</span>
|
|
[% FOREACH seefro IN summary.seefrom %]
|
|
<div class="authref">
|
|
[% PROCESS showreference
|
|
heading=seefro.heading
|
|
linkType='seefrom'
|
|
type=seefro.type
|
|
authid=seefro.authid
|
|
%]
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
[% IF ( summary.seealso.size >= 1 ) %]
|
|
<div class="seealso">
|
|
<span class="seealso">see also:</span>
|
|
[% FOREACH seeals IN summary.seealso %]
|
|
<div class="authref">
|
|
[% PROCESS showreference
|
|
heading=seeals.heading
|
|
linkType='seealso'
|
|
type=seeals.type
|
|
authid=seeals.authid
|
|
%]
|
|
</div>
|
|
[% END %]
|
|
</div>
|
|
[% 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 %]
|