Added links to identifiers.
This commit is contained in:
@ -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()) {
|
||||
|
Reference in New Issue
Block a user