Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
buechereielektrik:unapi:unapi.inc.php [2010-01-31 19:14] – Added (e)Journals to "getBibTex()", "getOpenUrlKev()" and "getText()" in class "Picappn" rosenke | buechereielektrik:unapi:unapi.inc.php [2010-03-03 17:13] – strols | ||
---|---|---|---|
Line 52: | Line 52: | ||
| | ||
* | * | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
| | ||
| | ||
Line 103: | Line 107: | ||
// URL-prefix for XML interface | // URL-prefix for XML interface | ||
- | $opac_url = ' | + | $opac_url = ' |
// URL-prefix for Bibsonomy' | // URL-prefix for Bibsonomy' | ||
Line 264: | Line 268: | ||
| | ||
| | ||
- | | + | |
**/ | **/ | ||
function getArrayNice($array_raw) { | function getArrayNice($array_raw) { | ||
Line 406: | Line 410: | ||
// DDC | // DDC | ||
- | $res['DDC'] = strtr($record[' | + | $res['ddc'] = strtr($record[' |
- | $res[' | + | $res[' |
- | $res[' | + | $res[' |
- | $res[' | + | $res[' |
// RVK | // RVK | ||
- | $res['RVK'] = strtr($record[' | + | $res['rvk'] = strtr($record[' |
- | $res[' | + | $res[' |
- | $res[' | + | $res[' |
- | $res[' | + | $res[' |
// EZB link | // EZB link | ||
Line 830: | Line 834: | ||
| | ||
| | ||
+ | | ||
| | ||
| | ||
Line 912: | Line 917: | ||
| | ||
| | ||
- | | + | |
**/ | **/ | ||
function getArray() { | function getArray() { | ||
Line 1022: | Line 1027: | ||
// trailing element | // trailing element | ||
$res .= " | $res .= " | ||
+ | } | ||
+ | |||
+ | // return result | ||
+ | return $res; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | **/ | ||
+ | function getCsv() { | ||
+ | // check if $this-> | ||
+ | if ($this-> | ||
+ | |||
+ | // get pica data as array | ||
+ | $record_raw = $this-> | ||
+ | // transform raw to nice array | ||
+ | $record_nice = $this-> | ||
+ | // declare $res | ||
+ | $res = ''; | ||
+ | |||
+ | // set categories to used for CSV | ||
+ | $i = array(' | ||
+ | ' | ||
+ | |||
+ | // fetch them from array, format and output them | ||
+ | foreach ($i as $j) { | ||
+ | $res .= '"' | ||
+ | } | ||
+ | |||
+ | // stripping et al. | ||
+ | if (isset($res)) { | ||
+ | // check if last characters of $res are ", | ||
+ | $res = rtrim($res, " | ||
} | } | ||
Line 1035: | Line 1076: | ||
**/ | **/ | ||
function getData($ppn) { | function getData($ppn) { | ||
+ | // get global $use_curl as switch for the following conditional | ||
+ | global $use_curl; | ||
+ | |||
// check whether curl-Module is available, if not available use fallback | // check whether curl-Module is available, if not available use fallback | ||
- | if (function_exists(' | + | if (function_exists(' |
$ch = curl_init(" | $ch = curl_init(" | ||
curl_setopt($ch, | curl_setopt($ch, | ||
Line 1282: | Line 1326: | ||
// set the field which are fetched: author et al. | // set the field which are fetched: author et al. | ||
$i = array(' | $i = array(' | ||
- | ' | + | ' |
' | ' | ||
Line 1313: | Line 1357: | ||
// set the field which are fetched: title et al. | // set the field which are fetched: title et al. | ||
- | $i = array(' | + | $i = array(' |
' | ' | ||