Skip to content

Commit

Permalink
NBNP-410 Add applicable issue missing pages alert to bottom of page v…
Browse files Browse the repository at this point in the history
…iewer
  • Loading branch information
jtmcd75 committed Dec 5, 2023
1 parent 720e26d commit b85f15f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,24 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit

$form['page_viewer']['metadata'] = $this->getMetadataRenderElement($digital_serial_title, $digital_serial_issue);

if (!empty($issue_missingp_note)) {
$form['page_viewer']['missing_pages_note'] = [
'#type' => 'container',
'child' => [
'#markup' => $this->t("This issue is missing pages: @note.", [
'@note' => $issue_missingp_note,
]),
],
'#attributes' => [
'class' => [
'alert',
'alert-info',
],
],
'#weight' => 5,
];
}

// Determine if we're using DZI or the plain old image.
if (file_exists($dzi_path)) {
$tile_sources = str_replace(".$image_extension", '.dzi', $image_path);
Expand Down

0 comments on commit b85f15f

Please sign in to comment.