Removing subjects and additionalauthors (they dont belong at the biblioitem level)
[koha.git] / updatebiblio.pl
index ed4a2c5..c8a607d 100755 (executable)
@@ -54,12 +54,11 @@ my @names;
 my $count;
 my $error;
 
-&modbiblio($biblio);
 &modsubtitle($bibnum, $subtitle);
 &modaddauthor($bibnum, $addauthor);
 
 $subject = uc($subject);
-@sub     = split(/\|/, $subject);
+@sub     = split(/\||\n/, $subject);
 $count   = @sub;
 
 for (my $i = 0; $i < $count; $i++) {
@@ -68,6 +67,8 @@ for (my $i = 0; $i < $count; $i++) {
 
 $error = &modsubject($bibnum,$force,@sub);
 
+&modbiblio($biblio);
+
 if ($error ne ''){
                my ($template, $loggedinuser, $cookie) = get_template_and_user({
                        template_name   => "updatebiblio.tmpl",