Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
buechereielektrik:unapi:picarecord.php [2009-12-20 13:41] – Check whether curl-Module is available, if not use file_get_contents(). strolsbuechereielektrik:unapi:picarecord.php [2009-12-20 14:51] – Some minor bugfixes. strols
Line 29: Line 29:
   20091220: Check whether curl-Module is available, if not use   20091220: Check whether curl-Module is available, if not use
               file_get_contents().               file_get_contents().
 +              Some minor bugfixes.
   20091215:   Added function "getJson" to class "Picappn".   20091215:   Added function "getJson" to class "Picappn".
               Made ISBN in getBibTex() unique.               Made ISBN in getBibTex() unique.
Line 126: Line 127:
              $ch = substr($str,++$i,1); //new tag ahead              $ch = substr($str,++$i,1); //new tag ahead
              $tag = $this->getTagName($ch);              $tag = $this->getTagName($ch);
 +             $res[$tag] = "";
              break;              break;
- 
           case 30: //information separator two, another field to follow           case 30: //information separator two, another field to follow
              break;              break;
- 
           case 226: //pica two byte char accent like "é";           case 226: //pica two byte char accent like "é";
              $ch = substr($str,++$i,1); // read one char ahead              $ch = substr($str,++$i,1); // read one char ahead
-             $res .= $this->getCode2($ch);+             $res[$tag] .= $this->getCode2($ch);
              break;              break;
- 
           default:           default:
              $res[$tag] .= $this->getCode($ch);              $res[$tag] .= $this->getCode($ch);
              break;              break;
         } //switch         } //switch
- 
     }     }
     return $res;     return $res;
Line 387: Line 385:
             break;             break;
      }      }
-     return $res;+     //return $res;
   }   }
  
Line 660: Line 658:
              xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";              xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\n";
     $res .= "<rdf:Description rdf:about=\""     $res .= "<rdf:Description rdf:about=\""
-            .$this->myself."?ppn=$ppn&amp;format=rdf"."\">\n";+            .$this->myself."?ppn=".$this->ppn."&amp;format=rdf"."\">\n";
     $res .= "<dc:contributor>".$this->prec->contributor."</dc:contributor>\n";     $res .= "<dc:contributor>".$this->prec->contributor."</dc:contributor>\n";
     $res .= "<dc:coverage>".$this->prec->coverage."</dc:coverage>\n";     $res .= "<dc:coverage>".$this->prec->coverage."</dc:coverage>\n";
Line 787: Line 785:
     $record_nice = $this->getArrayNice($record_raw);     $record_nice = $this->getArrayNice($record_raw);
     $keys_nice = $this->getKeysText();     $keys_nice = $this->getKeysText();
 +    $res = "";
  
     if (substr($record_nice['type'], 0, 2) == "Aa") {     if (substr($record_nice['type'], 0, 2) == "Aa") {
buechereielektrik/unapi/picarecord.php.txt · Last modified: 2010-01-10 22:28 by rosenke
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0