Revision 2615
Added by sgarg about 19 years ago
register-dataset.cgi | ||
---|---|---|
1117 | 1117 |
$doc .= $metaP; |
1118 | 1118 |
$doc .= $apart; |
1119 | 1119 |
|
1120 |
# add the publication Date to the eml document. |
|
1121 |
my $Second = ""; |
|
1122 |
my $Minute = ""; |
|
1123 |
my $Hour = ""; |
|
1124 |
my $Day = ""; |
|
1125 |
my $Month = ""; |
|
1126 |
my $Year = ""; |
|
1127 |
my $WeekDay = ""; |
|
1128 |
my $DayOfYear = ""; |
|
1129 |
my $IsDST = ""; |
|
1130 |
($Second, $Minute, $Hour, $Day, $Month, $Year, $WeekDay, $DayOfYear, $IsDST) = localtime(time) ; |
|
1131 |
$Month = $Month + 1; |
|
1132 |
if($Month < 10) { |
|
1133 |
$Month = "0".$Month; |
|
1134 |
} |
|
1135 |
if($Day < 10) { |
|
1136 |
$Day = "0".$Day; |
|
1137 |
} |
|
1138 |
$Year = $Year + 1900; |
|
1139 |
|
|
1140 |
$doc .= "<pubDate>\n"; |
|
1141 |
$doc .= $Year."-".$Month."-".$Day; |
|
1142 |
$doc .= "</pubDate>\n"; |
|
1143 |
|
|
1120 | 1144 |
$doc .= "<abstract>\n"; |
1121 | 1145 |
$doc .= "<para>".normalize($FORM::abstract)."</para>\n"; |
1122 | 1146 |
$doc .= "</abstract>\n"; |
Also available in: Unified diff
Added code to enter publication date into the dataset.