Minor Feature : username when cataloguing
biblios can now be added librarian name automatically when cataloguing. add "user" in the Default value of the biblio Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
parent
8cd4d221d8
commit
8d82c2cd6b
|
|
@ -308,6 +308,9 @@ sub create_input {
|
|||
$value =~ s/YYYY/$year/g;
|
||||
$value =~ s/MM/$month/g;
|
||||
$value =~ s/DD/$day/g;
|
||||
my $username=(C4::Context->userenv?C4::Context->userenv->{'surname'}:"superlibrarian");
|
||||
$value=~s/user/$username/g;
|
||||
|
||||
}
|
||||
my $dbh = C4::Context->dbh;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue