Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt
Jonathan Druart 5825026448 Bug 21526: uri escape TT variables when used in 'a href'
This patch has been generated with the script provided on bug 21576.
It only affects variable used in the href attribute of a link *when*
href it the first attribute of the node (grep "a href")

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-26 17:09:57 +00:00

87 lines
3.9 KiB
Text

[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% PROCESS 'opac-authorities.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Entry [% authtypetext | html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %][% END %]
</head>
[% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
[% INCLUDE 'masthead.inc' %]
<div class="main">
<ul class="breadcrumb">
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
<li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">&rsaquo;</span></li>
<li><a href="#">Entry [% authtypetext | html %]</a></li>
</ul>
<div class="container-fluid">
<div class="row-fluid">
[% IF ( OpacNav || OpacNavBottom ) %]
<div class="span2">
<div id="navigation">
[% INCLUDE 'navigation.inc' %]
</div>
</div>
<div class="span10">
[% ELSE %]
<div class="span12">
[% END %]
<div id="userauthMARCdetails" class="maincontent">
<div id="views">
<span class="view">
<a id="Normalview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]">Normal view</a>
</span>
<span class="view">
<span id="MARCview">MARC view</span>
</span>
</div>
[% IF ( displayhierarchy ) %]
<div id="hierarchies">
[% PROCESS showhierarchy trees = loophierarchies %]
</div>
[% END %]
<h1>Entry [% authtypetext | html %]</h1>
<p><a href="opac-search.pl?type=opac&amp;q=[% authid | uri %]&amp;idx=an,phr">Number of records used in: [% count | html %]</a></p>
[% FOREACH Tag0X IN Tab0XX %]
<p><b>[% Tag0X.tag | html %]</b></p>
<ul>
[% FOREACH subfiel IN Tag0X.subfield %]
<li><b>[% subfiel.marc_lib | $raw %]:</b>
[% IF subfiel.isurl %]<a href="[% subfiel.marc_value | uri %]">[% subfiel.marc_value | html %]</a>
[% ELSE %][% subfiel.marc_value | html %][% END %]</li>
[% END %]
</ul>
[% END %]
</div> <!-- / #userauthMARCdetails -->
</div> <!-- / .span10/12 -->
</div> <!-- / .row-fluid -->
</div> <!-- / .container-fluid -->
</div> <!-- / .main -->
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
<script>
//<![CDATA[
$(document).ready(function() {
[% IF ( displayhierarchy ) %]
var current_nodes = [];
$('.currentauth').each(function() {
current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
});
$('#hierarchies').jstree({
"plugins": [ "themes", "html_data"],
"themes": { "theme": "classic",
"icons": false },
"core": { "initially_open": current_nodes }
});
[% END %]
});
//]]>
</script>
[% END %]