ADD: added better presentation of misc entries
FIX: correct ordering by date of publications
This commit is contained in:
parent
5e27a3efdd
commit
e4ee147fab
@ -61,6 +61,14 @@ sub generate {
|
|||||||
$pub{title}=$entry->get('title') . ", " . $entry->get('school') . ", " . $entry->get('address');
|
$pub{title}=$entry->get('title') . ", " . $entry->get('school') . ", " . $entry->get('address');
|
||||||
} elsif($entry->type eq "inproceedings") {
|
} elsif($entry->type eq "inproceedings") {
|
||||||
$pub{title}=$entry->get('title') . ", " .$entry->get('booktitle') . ", ". $entry->get('address');
|
$pub{title}=$entry->get('title') . ", " .$entry->get('booktitle') . ", ". $entry->get('address');
|
||||||
|
} elsif($entry->type eq "misc") {
|
||||||
|
$pub{title}=$entry->get('title');
|
||||||
|
if (defined($entry->get('howpublished')) && length($entry->get('howpublished'))>0) {
|
||||||
|
$pub{title}.="," . $entry->get('howpublished');
|
||||||
|
}
|
||||||
|
if (defined($entry->get('address')) && length($entry->get('address'))>0) {
|
||||||
|
$pub{title}.="," . $entry->get('address');
|
||||||
|
}
|
||||||
}else {
|
}else {
|
||||||
$pub{title}=$entry->get('title');
|
$pub{title}=$entry->get('title');
|
||||||
}
|
}
|
||||||
@ -74,7 +82,7 @@ sub generate {
|
|||||||
push(@publications, \%pub);
|
push(@publications, \%pub);
|
||||||
}
|
}
|
||||||
|
|
||||||
@publications=reverse(@publications);
|
@publications=sort { $b->{year} <=> $a->{year} } @publications;
|
||||||
|
|
||||||
# create the new page
|
# create the new page
|
||||||
my $page = HiD::Page->new({
|
my $page = HiD::Page->new({
|
||||||
|
Loading…
Reference in New Issue
Block a user