includes/content.php
/**
   * Data Exploder
   *
   * Explodes the given data based on the semicolons.
   *
   * In CONTENTdm's data, it is assumed that semicolons means a new entry, or
   * line break, of new data within the same field.
   *
   * @param String $data
   *   Data comprised of at least one semicolon.
   *
   * @return String
   */
Data Exploder
Explodes the given data based on the semicolons.

In CONTENTdm's data, it is assumed that semicolons means a new entry, or
line break, of new data within the same field.

@param String $data
Data comprised of at least one semicolon.

@return String
Data Exploder Explodes the given data based on the semicolons . In CONTENTdm ' s data it is assumed that semicolons means a new entry or line break of new data within the same field . @param String $data Data comprised of at least one semicolon . @return String
private function explodeData($data) {
    if (strpos($data, ";") === false) {
      return $data;
    }
    $list = "";
    foreach (explode(";", $data) as $item) {
      $list .= "<li>" . $item . "</li>";
    }
    return "<ul>" . $list . "</ul>";
  }
private function explodeData ( $ data ) { if ( strpos ( $ data , " ; " ) === false ) { return $ data ; } $ list = " " ; foreach ( explode ( " ; " , $ data ) as $ item ) { $ list .= " <li> " . $ item . " </li> " ; } return " <ul> " . $ list . " </ul> " ; }
Data Exploder
 Explodes the given data based on the semicolons.
Data Exploder Explodes the given data based on the semicolons .
// Return if there are no semicolons discovered.