Project

General

Profile

Revision 79f9e857

ID79f9e8572951afe34a0ae93326ed97e5451b35e4
Parent 954051e2
Child 621f2ae0

Added by Andreas Kohlbecker over 1 year ago

ref #7767 checking all possible tag types for sec microreferences

View differences:

modules/cdm_dataportal/cdm_api/tagged_text.inc
255 255
        }
256 256
        unset($tagged_text[$i + 1]);
257 257
        // also get the microreference which could be in $tagged_text[$i + 3]
258
        if(isset($tagged_text[$i + 3])  && $tagged_text[$i + 2]->type == "separator" && $tagged_text[$i + 3]->type == "secMicroReference"){
258
        // HOTFIX to circumvent problems due to #7767 is to check for secMicroReference + microReference + secReference:
259
        if(isset($tagged_text[$i + 3])  && $tagged_text[$i + 2]->type == "separator" && ($tagged_text[$i + 3]->type == "secMicroReference" || $tagged_text[$i + 3]->type == "microreference" || $tagged_text[$i + 3]->type == "secReference")){
259 260
          $extracted_tt[2] = $tagged_text[$i + 2];
260 261
          $extracted_tt[3] = $tagged_text[$i + 3];
261 262
          unset($tagged_text[$i + 2]);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)