Index: trunk/extensions/SolrStore/templates/SolrSearchTemplate_FIS.php |
— | — | @@ -44,7 +44,6 @@ |
45 | 45 | // Bugfix: clear the var! |
46 | 46 | unset( $this->Inhalt_de_t ); |
47 | 47 | unset( $this->methode ); |
48 | | - print_r( $xml ); |
49 | 48 | // get Size, Wordcound, Date, Inhalt_de_t from XML: |
50 | 49 | foreach ( $xml->arr as $doc ) { |
51 | 50 | switch ( $doc[ 'name' ] ) { |
— | — | @@ -69,31 +68,31 @@ |
70 | 69 | case 'Zuletzt geändert_dt': |
71 | 70 | $this->mDate = $doc->date; |
72 | 71 | break; |
73 | | - |
| 72 | + |
74 | 73 | case 'Inhalt de_t': |
75 | 74 | $this->Inhalt_de_t[ ] = $doc->str; |
76 | 75 | break; |
77 | | - |
| 76 | + |
78 | 77 | case 'Inhalt fr_t': |
79 | 78 | $this->Inhalt_de_t[ ] = $doc->str; |
80 | 79 | break; |
81 | | - |
| 80 | + |
82 | 81 | case 'Inhalt en_t': |
83 | 82 | $this->Inhalt_de_t[ ] = $doc->str; |
84 | 83 | break; |
85 | | - |
| 84 | + |
86 | 85 | case 'category': |
87 | 86 | $this->category = $doc->str; |
88 | 87 | break; |
89 | | - |
| 88 | + |
90 | 89 | case 'Higher-Dept_s': |
91 | 90 | $this->higherdept = $doc->str; |
92 | 91 | break; |
93 | | - |
| 92 | + |
94 | 93 | case 'Main-Dept_s': |
95 | 94 | $this->maindept = $doc->str; |
96 | 95 | break; |
97 | | - |
| 96 | + |
98 | 97 | case 'Methode_t': |
99 | 98 | foreach ( $doc->str as $methoden ) { |
100 | 99 | $this->methode[ ] = $methoden; |
— | — | @@ -184,11 +183,16 @@ |
185 | 184 | $tmpmethode = ""; |
186 | 185 | if ( count( $this->methode ) > 0 ) { |
187 | 186 | for ( $i = 0; $i <= count( $this->methode ); $i++ ) { |
188 | | - if ( $i == 0 ) { |
189 | | - $tmpmethode = "Vorgehensweise: " . $this->methode[ $i ]; |
190 | | - } else { |
191 | | - if ( $this->methode[ $i ] != "" ) { |
192 | | - $tmpmethode.=", " . $this->methode[ $i ]; |
| 187 | + |
| 188 | + if ( isset( $this->methode[ $i ] ) ) { |
| 189 | + if ( $this->methode[ $i ] != "keine Angabe" ) { // FRAGEN !! |
| 190 | + if ( $i == 0 ) { |
| 191 | + $tmpmethode = "Vorgehensweise: " . $this->methode[ $i ]; |
| 192 | + } else { |
| 193 | + if ( isset( $this->methode[ $i ] ) ) { |
| 194 | + $tmpmethode.=", " . $this->methode[ $i ]; |
| 195 | + } |
| 196 | + } |
193 | 197 | } |
194 | 198 | } |
195 | 199 | } |