Project

General

Profile

« Previous | Next » 

Revision d52fe39b

Added by Andreas Kohlbecker over 10 years ago

fixing palmweb related problems

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.bibliography.theme
263 263
      case "BookSection":
264 264
        $referenceString .= "<li class=\"descriptionText DescriptionElement\">";
265 265
        if(isset($reference->citation->authorTeam)){
266
          $numberOfTeamMembers = count($reference->citation->authorTeam->teamMembers);
267 266
          $currentRecord = 1;
268 267
          if (!empty($reference->citation->authorTeam->teamMembers)) {
268
            $numberOfTeamMembers = count($reference->citation->authorTeam->teamMembers);
269 269
            foreach ($reference->citation->authorTeam->teamMembers as $teamMember) {
270 270
              if (!empty($teamMember->lastname) && !empty($teamMember->firstname)) {
271 271
                if ($numberOfTeamMembers != $currentRecord) {
7.x/themes/palmweb_2/template.php
201 201
          elements.
202 202
          */
203 203
          // TODO move into own theme.
204
          if (count($node->children) > 0) {
204
          if (isset($node->childNodes[0])) {
205 205

  
206 206
            // TODO support more than one level of children.
207 207
            // @see http://dev.e-taxonomy.eu/trac/ticket/2393/
208 208
            $text = '';
209
            foreach ($node->children as $child) {
210
             if (is_array($child->descriptionElements)) {
209
            foreach ($node->childNodes as $child) {
210

  
211
              if (isset($child->descriptionElements) && is_array($child->descriptionElements)) {
211 212
               foreach ($child->descriptionElements as $element) {
212 213

  
213 214
                 if (is_array($element->media)) {
214
                   // Append media of subordinate elements to the list of
215
                   // main features.
215
                    // Append media of supordinate elements to list of main
216
                    // feature.
216 217
                   $media_list = array_merge($media_list, $element->media);
217 218
                 }
218 219

  

Also available in: Unified diff