projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 7839 [ENH] : Add tab in patron record to show patron's routing lists
[koha_fer]
/
authorities
/
detail.pl
diff --git
a/authorities/detail.pl
b/authorities/detail.pl
index
57e0737
..
458746c
100755
(executable)
--- a/
authorities/detail.pl
+++ b/
authorities/detail.pl
@@
-50,7
+50,7
@@
use C4::Koha;
our ($tagslib);
our ($tagslib);
-sub build_tabs
($$$$$)
{
+sub build_tabs {
my ( $template, $record, $dbh, $encoding,$input ) = @_;
# fill arrays
my ( $template, $record, $dbh, $encoding,$input ) = @_;
# fill arrays
@@
-172,8
+172,7
@@
my ($template, $loggedinuser, $cookie)
my $authid = $query->param('authid');
my $authid = $query->param('authid');
-# Using default authtypecode, so all fields are seen
-my $authtypecode = '';
+my $authtypecode = GetAuthTypeCode($authid);
$tagslib = &GetTagsLabels(1,$authtypecode);
# Build list of authtypes for showing them
$tagslib = &GetTagsLabels(1,$authtypecode);
# Build list of authtypes for showing them
@@
-242,5
+241,7
@@
$template->param(authid => $authid,
authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
authtypesloop => \@authtypesloop,
);
authtypetext => $authtypes->{$authtypecode}{'authtypetext'},
authtypesloop => \@authtypesloop,
);
+
+$template->{VARS}->{marcflavour} = C4::Context->preference("marcflavour");
output_html_with_http_headers $query, $cookie, $template->output;
output_html_with_http_headers $query, $cookie, $template->output;