Added links to identifiers.

This commit is contained in:
2023-08-01 21:53:28 -05:00
parent 26d503e691
commit 44a27d544f

View File

@ -254,10 +254,19 @@ while ($row = $series->fetchArray()) {
echo '['.$row_tags.'] ';
}
echo '<br/ ><strong>Identifiers: </strong><br />';
while ($row = $identifiers->fetchArray()) {
while ($row = $identifiers->fetchArray()) {
$row_id_type = $row['type'];
$row_id_val = $row['val'];
echo '<span style="margin-left: 10px;">'.$row_id_type.': ' .$row_id_val.'</span><br />';
$row_id_val = $row['val'];
//echo '<span style="margin-left: 10px;">'.$row_id_type.': ' .$row_id_val.'</span><br />';
if ($row_id_type == 'google') {
$identifierURL = 'https://books.google.com/books?id=';
} elseif ($row_id_type == 'isbn') {
$identifierURL = 'https://www.librarything.com/isbn/';
} elseif ($row_id_type == 'oclc') {
$identifierURL = 'https://worldcat.org/title/';
} else { $identifierURL = '#';
}
echo '<span style="margin-left: 10px;">'.$row_id_type.': <a href="'.$identifierURL.$row_id_val.'" target="_blank">'.$row_id_val.'</a></span><br />';
}
echo '<strong>Language(s): </strong>';
while ($row = $languages->fetchArray()) {