3 if (class_exists(
'ActiveRecord') !=
true) {
4 require_once(
'./Services/ActiveRecord/class.ActiveRecord.php');
102 $prefix =
"bib_default_";
103 if (!empty($attributes[$prefix .
"isbn"])) {
104 $attr = Array(
"isbn" );
105 } elseif (!empty($attributes[$prefix .
"issn"])) {
106 $attr = Array(
"issn" );
108 $attr = Array(
"title",
"author",
"year",
"number",
"volume" );
112 $prefix =
"ris_" . strtolower($entry->
getType()) .
"_";
113 if (!empty($attributes[$prefix .
"sn"])) {
114 $attr = Array(
"sn" );
116 $attr = Array(
"ti",
"t1",
"au",
"py",
"is",
"vl" );
122 if (
sizeof($attr) == 1) {
123 $url_params .= $this->
formatAttribute($attr[0], $type, $attributes, $prefix) .
"=" . urlencode($attributes[$prefix . $attr[0]]);
125 foreach ($attr as $a) {
126 if (array_key_exists($prefix . $a, $attributes)) {
127 if (strlen($url_params) > 1) {
130 $url_params .= $this->
formatAttribute($a, $type, $attributes, $prefix) .
"=" . urlencode($attributes[$prefix . $a]);
136 $full_link = $this->
getUrl() . $url_params;
150 require_once(
'./Services/UIComponent/Button/classes/class.ilImageLinkButton.php');
153 $button->setImage($this->
getImg(),
false);
154 $button->setTarget(
'_blank');
155 return $button->render();
157 require_once(
'./Services/UIComponent/Button/classes/class.ilLinkButton.php');
160 $button->setTarget(
'_blank');
161 $button->setCaption(
'bibl_link_online');
163 return $button->render();
189 if (strlen($attributes[$prefix .
"sn"]) <= 9) {
205 } elseif ($type =
'bib') {