projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 7143 some cleaning
[koha_gimpoz]
/
authorities
/
authorities.pl
diff --git
a/authorities/authorities.pl
b/authorities/authorities.pl
index
9429a58
..
23653f6
100755
(executable)
--- a/
authorities/authorities.pl
+++ b/
authorities/authorities.pl
@@
-47,7
+47,7
@@
builds list, depending on authorised value...
=cut
=cut
-sub build_authorized_values_list
($$$$$$$)
{
+sub build_authorized_values_list {
my ( $tag, $subfield, $value, $dbh, $authorised_values_sth,$index_tag,$index_subfield ) = @_;
my @authorised_values;
my ( $tag, $subfield, $value, $dbh, $authorised_values_sth,$index_tag,$index_subfield ) = @_;
my @authorised_values;
@@
-204,7
+204,7
@@
sub create_input {
}
elsif ( $tagslib->{$tag}->{$subfield}->{'value_builder'} ) {
}
elsif ( $tagslib->{$tag}->{$subfield}->{'value_builder'} ) {
- # opening plugin. Just check w
ether we are on a develop
per computer on a production one
+ # opening plugin. Just check w
hether we are on a develo
per computer on a production one
# (the cgidir differs)
my $cgidir = C4::Context->intranetdir . "/cgi-bin/cataloguing/value_builder";
unless (-r $cgidir and -d $cgidir) {
# (the cgidir differs)
my $cgidir = C4::Context->intranetdir . "/cgi-bin/cataloguing/value_builder";
unless (-r $cgidir and -d $cgidir) {
@@
-321,11
+321,11
@@
Create a random value to set it into the input name
=cut
=cut
-sub CreateKey
()
{
+sub CreateKey
{
return int(rand(1000000));
}
return int(rand(1000000));
}
-sub build_tabs
($$$$$)
{
+sub build_tabs {
my ( $template, $record, $dbh, $encoding,$input ) = @_;
# fill arrays
my ( $template, $record, $dbh, $encoding,$input ) = @_;
# fill arrays
@@
-499,7
+499,7
@@
sub build_tabs ($$$$$) {
}
}
-sub build_hidden_data
()
{
+sub build_hidden_data {
# build hidden data =>
# we store everything, even if we show only requested subfields.
# build hidden data =>
# we store everything, even if we show only requested subfields.
@@
-545,7
+545,9
@@
my $linkid=$input->param('linkid');
my $authtypecode = $input->param('authtypecode');
my $dbh = C4::Context->dbh;
my $authtypecode = $input->param('authtypecode');
my $dbh = C4::Context->dbh;
-$authtypecode = &GetAuthTypeCode($authid) if !$authtypecode;
+if(!$authtypecode) {
+ $authtypecode = $authid? &GetAuthTypeCode($authid): '';
+}
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "authorities/authorities.tmpl",
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "authorities/authorities.tmpl",
@@
-579,8
+581,7
@@
if ($op eq "add") {
# build indicator hash.
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
# build indicator hash.
my @ind_tag = $input->param('ind_tag');
my @indicator = $input->param('indicator');
- my @params = $input->param();
- my $record = TransformHtmlToMarc(\@params,$input);
+ my $record = TransformHtmlToMarc($input);
if (C4::Context->preference("marcflavour") eq "UNIMARC"){
unless ($record->field('100')){
use POSIX qw(strftime);
if (C4::Context->preference("marcflavour") eq "UNIMARC"){
unless ($record->field('100')){
use POSIX qw(strftime);