Lines Matching refs:this

32 		$this->db = $db;
34 $this->session = new SESSION();
36 $this->bibformat = new BIBFORMAT("core/styles/");
40 $this->bibformat->patternHighlight = "highlight";
44 $this->setupStyle = $this->session->getVar("exportRtf_style");
46 $this->setupStyle = $this->session->getVar("setup_style");
54 $styleInfo = $this->session->getVar("style_name");
55 $styleCommon = unserialize(base64_decode($this->session->getVar("style_common")));
56 $styleTypes = unserialize(base64_decode($this->session->getVar("style_types")));
60 || ($styleInfo != $this->setupStyle))
63 $this->bibformat->loadStyle("styles/bibliography/", $this->setupStyle);
64 $this->session->setVar("style_name", $info['name']);
65 $this->session->setVar("cite_citation", base64_encode(serialize($citation)));
66 $this->session->setVar("style_common", base64_encode(serialize($styleCommon)));
67 $this->session->setVar("style_types", base64_encode(serialize($styleTypes)));
68 $this->session->delVar("style_edited");
70 $this->bibformat->getStyle($styleCommon, $styleTypes);
71 $this->output = $output;
72 $this->bibformat->output = $output;
78 $this->row = $row;
85 $year2 = stripslashes($this->row['year2']);
86 if($year2 && !$this->row['year1'])
88 $this->row['year1'] = $year2;
89 unset($this->row['year2']);
91 else if($year2 && $this->row['year1'])
93 $this->row['year2'] = stripslashes($this->row['year1']);
94 $this->row['year1'] = $year2;
97 $this->row = $this->bibformat->preProcess($type, $this->row);
99 $type = $this->bibformat->type;
103 if(!$this->row['creator' . $index] ||
104 !array_key_exists('creator' . $index, $this->bibformat->styleMap->$type))
106 if(array_key_exists('creator' . $index, $this->bibformat->styleMap->$type))
107 $this->grabNames('creator' . $index);
110 $this->createTitle();
112 if($editionKey = array_search('edition', $this->bibformat->styleMap->$type))
113 $this->createEdition($editionKey);
115 $this->pages = FALSE; // indicates not yet created pages for articles
116 if(array_key_exists('pages', $this->bibformat->styleMap->$type))
117 $this->createPages();
119 if(array_key_exists('date', $this->bibformat->styleMap->$type))
120 $this->createDate();
122 if(array_key_exists('runningTime', $this->bibformat->styleMap->$type))
123 $this->createRunningTime();
125 if(array_key_exists('URL', $this->bibformat->styleMap->$type) &&
126 ($itemElement = $this->createUrl()))
127 $this->bibformat->addItem($itemElement, 'URL', FALSE);
129 $this->bibformat->addAllOtherItems($this->row);
135 $pString = $this->bibformat->map();
137 $pString = preg_replace_callback("/(\d+)\\$\^\{(.*)\}\\$/", array($this, "ordinals"), $pString);
144 if($this->output == 'html')
146 else if($this->output == 'rtf')
154 $pString = stripslashes($this->row['noSort']) . ' ' .
155 stripslashes($this->row['title']);
156 if($this->row['subtitle'])
157 $pString .= ': ' . stripslashes($this->row['subtitle']);
159 $this->bibformat->formatTitle($pString, "{", "}");
164 if(!$this->row['url'])
166 $url = ($this->output == 'html') ? htmlspecialchars(stripslashes($this->row['url'])) :
167 stripslashes($this->row['url']);
168 unset($this->row['url']);
169 if($this->output == 'html')
177 $startDay = isset($this->row['miscField2']) ? stripslashes($this->row['miscField2']) : FALSE;
178 $startMonth = isset($this->row['miscField3']) ? stripslashes($this->row['miscField3']) : FALSE;
179 unset($this->row['miscField2']);
180 unset($this->row['miscField3']);
181 $endDay = isset($this->row['miscField5']) ? stripslashes($this->row['miscField5']) : FALSE;
182 $endMonth = isset($this->row['miscField6']) ? stripslashes($this->row['miscField6']) : FALSE;
183 unset($this->row['miscField5']);
184 unset($this->row['miscField6']);
191 $this->bibformat->formatDate($startDay, $startMonth, $endDay, $endMonth);
196 $minutes = stripslashes($this->row['miscField1']);
197 $hours = stripslashes($this->row['miscField4']);
202 $this->bibformat->formatRunningTime($minutes, $hours);
207 if(!$this->row[$editionKey])
209 $edition = stripslashes($this->row[$editionKey]);
210 $this->bibformat->formatEdition($edition);
215 if(!$this->row['pageStart'] || $this->pages) // empty field or page format already done
217 $this->pages = TRUE;
220 $this->pages = TRUE;
221 $start = trim(stripslashes($this->row['pageStart']));
222 $end = $this->row['pageEnd'] ? trim(stripslashes($this->row['pageEnd'])) : FALSE;
223 $this->bibformat->formatPages($start, $end);
228 $recordset = $this->db->select(array("WKX_creator"), array("surname", "firstname",
230 " WHERE FIND_IN_SET(" . $this->db->formatField("id") . ", " .
231 $this->db->tidyInput($this->row[$nameType]) . ")");
232 $numNames = $this->db->numRows($recordset);
235 $ids = explode(",", $this->row[$nameType]);
236 while($row = $this->db->loopRecordSet($recordset))
242 $this->bibformat->formatNames($rowTemp, $nameType);
248 new CLOSE($this->db, $error);