45 $attributes = $this->facade->entryFactory()->loadParsedAttributesByEntryId($entry->
getId());
46 $type = $this->facade->typeFactory()->getInstanceForString(
$type);
47 switch (
$type->getId()) {
49 $prefix =
"bib_default_";
51 $attr = array(
"isbn" );
53 $attr = array(
"pmid" );
55 $attr = array(
"doi" );
57 $attr = array(
"issn" );
59 $attr = array(
"title",
"author",
"year",
"number",
"volume" );
63 $prefix =
"ris_" . strtolower($entry->
getType()) .
"_";
65 $attr = array(
"sn" );
67 $attr = array(
"do" );
69 $attr = array(
"ti",
"t1",
"au",
"py",
"is",
"vl" );
75 if (
sizeof($attr) == 1) {
76 if (($attr[0] ==
"doi") || ($attr[0] ==
"pmid")) {
79 } elseif ($attr[0] ==
"do") {
87 foreach ($attr as $a) {
89 if (strlen($url_params) > 1) {
99 $full_link = $this->library->getUrl() . $url_params;
113 if ($this->library->getImg()) {
116 $button->setImage($this->library->getImg(),
false);
117 $button->setTarget(
'_blank');
119 return $button->render();
123 $button->setTarget(
'_blank');
124 $button->setCaption(
'bibl_link_online');
126 return $button->render();
144 if (
$type ==
'ris') {
172 } elseif (
$type =
'bib') {
getButton(ilBiblFactoryFacadeInterface $bibl_factory_facade, ilBiblEntry $entry)
Interface ilBiblFactoryFacadeInterface.
generateLibraryLink(ilBiblEntry $entry, $type)
Interface ilBiblLibraryInterface.
formatAttribute($a, $type, $attributes, $prefix)
if(array_key_exists('yes', $_REQUEST)) $attributes
__construct(\ilBiblLibraryInterface $library, \ilBiblFactoryFacade $facade)
ilBiblLibraryPresentationGUI constructor.
Class ilBiblFactoryFacade.
Class ilBiblLibraryPresentationGUI.