Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2521

Undefined variable in Newspaper template when page JP2 missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.x-1.13
    • Fix Version/s: None
    • Labels:
      None

      Description

      If you are viewing a newspaper page that is missing its JP2 datastream, you get the following warning:

      Notice: Undefined variable: content in include() (line 24 of /var/www/drupal/sites/all/modules/islandora_solution_pack_newspaper/theme/islandora-newspaper-page.tpl.php).

      We should check for the content at that point. And if there is no content, either we could avoid the warning by skipping the rest of the stuff associated with $content, or (better approach) we should log an error like "JP2 derivative missing for this:pid".

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            brandonw Brandon Weigel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: