33 include_once(
'Services/MetaData/classes/class.ilMDSettings.php');
34 include_once(
'Services/MetaData/classes/class.ilMDRights.php');
61 $this->mode = $a_mode;
62 $this->rbac_id = $a_rbac_id;
63 $this->obj_id = $a_obj_id;
76 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
80 if(!$this->settings->isCopyrightSelectionActive() or
83 $this->tpl->setVariable(
"TXT_COPYRIGHT",$this->lng->txt(
'meta_copyright'));
84 $this->tpl->setVariable(
'COPYRIGHT_VAL',
91 include_once(
'Services/MetaData/classes/class.ilMDCopyrightSelectionEntry.php');
93 foreach($entries as $entry)
95 $this->tpl->setCurrentBlock(
'copyright_selection');
97 if($entry->getEntryId() == $default_id)
100 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
102 $this->tpl->setVariable(
'COPYRIGHT_ID',$entry->getEntryId());
103 $this->tpl->setVariable(
'COPYRIGHT_TITLE',$entry->getTitle());
104 $this->tpl->setVariable(
'COPYRIGHT_DESCRIPTION',$entry->getDescription());
105 $this->tpl->parseCurrentBlock();
108 $this->tpl->setCurrentBlock(
'copyright_selection');
111 $this->tpl->setVariable(
'COPYRIGHT_CHECKED',
'checked="checked"');
113 $this->tpl->setVariable(
'COPYRIGHT_ID',0);
114 $this->tpl->setVariable(
'COPYRIGHT_TITLE',$this->lng->txt(
'meta_cp_own'));
116 $this->tpl->setVariable(
"TXT_COPYRIGHT",$this->lng->txt(
'meta_copyright'));
119 $this->tpl->setVariable(
'COPYRIGHT_VAL',
$desc);