3 require_once(
'./Services/ActiveRecord/class.ActiveRecord.php');
22 return self::TABLE_NAME;
30 return self::TABLE_NAME;
100 $prefix =
"bib_default_";
101 if (!empty($attributes[$prefix .
"isbn"])) {
102 $attr =
array(
"isbn" );
103 } elseif (!empty($attributes[$prefix .
"pmid"])) {
104 $attr =
array(
"pmid" );
105 } elseif (!empty($attributes[$prefix .
"doi"])) {
106 $attr =
array(
"doi" );
107 } elseif (!empty($attributes[$prefix .
"issn"])) {
108 $attr =
array(
"issn" );
110 $attr =
array(
"title",
"author",
"year",
"number",
"volume" );
114 $prefix =
"ris_" . strtolower($entry->
getType()) .
"_";
115 if (!empty($attributes[$prefix .
"sn"])) {
116 $attr =
array(
"sn" );
117 } elseif (!empty($attributes[$prefix .
"do"])) {
118 $attr =
array(
"do" );
120 $attr =
array(
"ti",
"t1",
"au",
"py",
"is",
"vl" );
126 if (
sizeof($attr) == 1) {
127 if (($attr[0] ==
"doi") || ($attr[0] ==
"pmid")) {
128 $url_params .=
"id=" . $this->
formatAttribute($attr[0], $type, $attributes, $prefix) .
"%3A" . $attributes[$prefix . $attr[0]];
129 } elseif ($attr[0] ==
"do") {
130 $url_params .=
"id=" . $this->
formatAttribute($attr[0], $type, $attributes, $prefix) .
"i%3A" . $attributes[$prefix . $attr[0]];
132 $url_params .= $this->
formatAttribute($attr[0], $type, $attributes, $prefix) .
"=" . urlencode($attributes[$prefix . $attr[0]]);
134 foreach ($attr as $a) {
135 if (array_key_exists($prefix . $a, $attributes)) {
136 if (strlen($url_params) > 1) {
139 $url_params .= $this->
formatAttribute($a, $type, $attributes, $prefix) .
"=" . urlencode($attributes[$prefix . $a]);
145 $full_link = $this->
getUrl() . $url_params;
159 require_once(
'./Services/UIComponent/Button/classes/class.ilImageLinkButton.php');
162 $button->setImage($this->
getImg(),
false);
164 require_once(
'./Services/UIComponent/Button/classes/class.ilLinkButton.php');
167 $button->setCaption(
'bibl_link_online');
170 $button->setTarget(
'_blank');
172 return $button->render();
197 if (strlen($attributes[$prefix .
"sn"]) <= 9) {
213 } elseif ($type =
'bib') {
Class ilBibliographicSetting.
getButton(ilObjBibliographic $bibl_obj, ilBibliographicEntry $entry)
formatAttribute($a, $type, $attributes, $prefix)
generateLibraryLink(ilBibliographicEntry $entry, $type)
static returnDbTableName()
Create styles array
The data for the language used.
Class ilBibliographicEntry.
Class ilObjBibliographic.
setShowInList($show_in_list)
getConnectorContainerName()