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:
Henri-Damien LAURENT 2008-08-01 10:18:10 +02:00
parent 8cd4d221d8
commit 8d82c2cd6b
1 changed files with 3 additions and 0 deletions

View File

@ -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;