Example #1
0
 /**
  * Method to print out the document detail based on template
  *
  * @return  void
  */
 public function showDetail()
 {
     if ($this->error) {
         return '<div style="padding: 5px; margin: 3px; border: 1px dotted #FF0000; color: #FF0000;">Error Fetching data for record detail. Server return error message: ' . $this->error . '</div>';
     } else {
         if ($this->output_format == 'html' and !empty($this->list_template)) {
             return parent::parseListTemplate($this->htmlOutput());
         } else {
             if ($this->output_format == 'mods') {
                 return $this->MODSoutput();
             } else {
                 // external output function
                 if (function_exists($this->output_format)) {
                     $_ext_func = $this->output_format;
                     return $_ext_func();
                 }
                 return null;
             }
         }
     }
 }
Example #2
0
 /**
  * Method to print out the document detail based on template
  *
  * @return  void
  */
 public function showDetail()
 {
     if ($this->error) {
         return '<div class="error">Error Fetching data for record detail. Server return error message: ' . $this->error . '</div>';
     } else {
         if ($this->output_format == 'html' and !empty($this->list_template)) {
             return parent::parseListTemplate($this->htmlOutput());
         } else {
             if ($this->output_format == 'mods') {
                 return $this->MODSoutput();
             } else {
                 // external output function
                 if (function_exists($this->output_format)) {
                     $_ext_func = $this->output_format;
                     return $_ext_func();
                 }
                 return null;
             }
         }
     }
 }