|
Lines 1-3
Link Here
|
|
|
1 |
[% SET footerjs = 1 %] |
| 1 |
[% PROCESS 'authorities.inc' %] |
2 |
[% PROCESS 'authorities.inc' %] |
| 2 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
| 3 |
<title>Koha › Authorities › |
4 |
<title>Koha › Authorities › |
|
Lines 8-63
Link Here
|
| 8 |
[% END %] |
9 |
[% END %] |
| 9 |
</title> |
10 |
</title> |
| 10 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
| 11 |
[% IF ( displayhierarchy ) %] |
|
|
| 12 |
<script type="text/javascript" src="/intranet-tmpl/lib/jquery/plugins/jquery.jstree.js"></script> |
| 13 |
[% END %] |
| 14 |
<script type="text/javascript"> |
| 15 |
|
| 16 |
//<![CDATA[ |
| 17 |
|
| 18 |
$(document).ready(function() { |
| 19 |
$('#authoritiestabs').tabs(); |
| 20 |
[% IF ( displayhierarchy ) %] |
| 21 |
var current_nodes = []; |
| 22 |
$('.currentauth').each(function() { |
| 23 |
current_nodes.push('#' + $(this).parent().parents('li:first').attr('id')); |
| 24 |
}); |
| 25 |
$('#hierarchies').jstree({ |
| 26 |
"plugins": [ "themes", "html_data"], |
| 27 |
"themes": { "theme": "classic", |
| 28 |
"icons": false }, |
| 29 |
"core": { "initially_open": current_nodes } |
| 30 |
}); |
| 31 |
[% END %] |
| 32 |
}); |
| 33 |
|
| 34 |
function confirm_deletion() { |
| 35 |
var is_confirmed = confirm(_("Are you sure you want to delete this authority?")); |
| 36 |
if (is_confirmed) { |
| 37 |
window.location="authorities-home.pl?op=delete&authid=[% authid %]&csrf_token=[% csrf_token %]"; |
| 38 |
} |
| 39 |
} |
| 40 |
function Dopop(link) { |
| 41 |
newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes'); |
| 42 |
} |
| 43 |
//]]> |
| 44 |
</script> |
| 45 |
<script type="text/javascript"> |
| 46 |
function Help() { |
| 47 |
newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes'); |
| 48 |
} |
| 49 |
|
| 50 |
function addauthority() { |
| 51 |
X = document.forms[0].authtype.value; |
| 52 |
window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X; |
| 53 |
} |
| 54 |
function searchauthority() { |
| 55 |
X = document.forms[0].authtype2.value; |
| 56 |
Y = document.forms[0].value.value; |
| 57 |
window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains"; |
| 58 |
} |
| 59 |
</script> |
| 60 |
</head> |
12 |
</head> |
|
|
13 |
|
| 61 |
<body id="auth_detail" class="auth"> |
14 |
<body id="auth_detail" class="auth"> |
| 62 |
[% INCLUDE 'header.inc' %] |
15 |
[% INCLUDE 'header.inc' %] |
| 63 |
[% INCLUDE 'authorities-search.inc' %] |
16 |
[% INCLUDE 'authorities-search.inc' %] |
|
Lines 143-146
function searchauthority() {
Link Here
|
| 143 |
[% END %] |
96 |
[% END %] |
| 144 |
</div> |
97 |
</div> |
| 145 |
|
98 |
|
|
|
99 |
[% MACRO jsinclude BLOCK %] |
| 100 |
[% INCLUDE 'authorities_js.inc' %] |
| 101 |
[% IF ( displayhierarchy ) %] |
| 102 |
<script type="text/javascript" src="/intranet-tmpl/lib/jquery/plugins/jquery.jstree.js"></script> |
| 103 |
[% END %] |
| 104 |
<script type="text/javascript"> |
| 105 |
$(document).ready(function() { |
| 106 |
$('#authoritiestabs').tabs(); |
| 107 |
[% IF ( displayhierarchy ) %] |
| 108 |
var current_nodes = []; |
| 109 |
$('.currentauth').each(function() { |
| 110 |
current_nodes.push('#' + $(this).parent().parents('li:first').attr('id')); |
| 111 |
}); |
| 112 |
$('#hierarchies').jstree({ |
| 113 |
"plugins": [ "themes", "html_data"], |
| 114 |
"themes": { "theme": "classic", |
| 115 |
"icons": false }, |
| 116 |
"core": { "initially_open": current_nodes } |
| 117 |
}); |
| 118 |
[% END %] |
| 119 |
}); |
| 120 |
</script> |
| 121 |
[% END %] |
| 122 |
|
| 146 |
[% INCLUDE 'intranet-bottom.inc' %] |
123 |
[% INCLUDE 'intranet-bottom.inc' %] |