Lines Matching full:br

23 <p><em>May 2005<br>
24 </em>Mark Grimshaw (<a href="http://wikindx.sourceforge.net">WIKINDX</a>)<br>
25 Andrea Rossato (<a href="http://uniwakka.sourceforge.net/HomePage">Uniwakka</a>)<br>
26 Guillaume Gardey (<a href="http://biborb.glymn.net/doku.php">BibOrb</a>)<br>
29 <p><a href="#introduction">INTRODUCTION</a><br>
30 <a href="#bibstyle">BIBSTYLE</a><br>
31 <a href="#parsexml">PARSEXML</a><br>
32 <a href="#loadstyle">LOADSTYLE</a><br>
33 <a href="#parsestyle">PARSESTYLE</a><br>
34 <a href="#stylemap">STYLEMAP</a><br>
35 <a href="#utf8">UTF8</a><br>
36 <a href="#bibformat">BIBFORMAT</a><br>
43 …yle files are stored in XML format and are available for download from the Bibliophile site at:<br>
44 <a href="http://bibliophile.sourceforge.net">http://bibliophile.sourceforge.net</a><br>
45 The naming of the style files to be downloaded is (for example):<br>
46 <code>OSBib-americanPsychologicalAssociation_1.0_1.1</code><br>
58 <p> <span class="style3"><code>include_once($pathToOsbibClasses . &quot;LOADSTYLE.php&quot;);<br>
60 …betically sorted (on the key) array of available bibliographic styles e.g.<span class="style3"><br>
61 <code>$styles = LOADSTYLE::loadDir(&quot;styles/bibliography&quot;);<br>
63 <p>An example output from this would be :<br>
72 … management system and OSBib. There are plenty of comments in that file so read them carefully.<br>
73 1/ You should edit <code>$this-&gt;types</code> array.<br>
75 …rmat suitable for OSBib processing may return the following associative array for one resource:<br>
81 <code><br>
87 …<a name="utf8EncodeUtf8" id="utf8EncodeUtf8"></a><span class="style9">UTF8::encodeUtf8()</span><br>
93 <br>
96 …<a name="utf8DecodeUtf8" id="utf8DecodeUtf8"></a><span class="style9">UTF8::decodeUtf8()</span><br>
101 <br>
104 <td><p class="style3"><code><span class="style9">UTF8::utf8_strtolower()</span><br>
109 <br>
112 <td><p class="style3"><code><span class="style9">UTF8::utf8_strtoupper()</span><br>
117 <br>
120 <td><p class="style3"><code><span class="style9">UTF8::utf8_substr()</span><br>
125 <br>
128 <td><p class="style3"><code><span class="style9">UTF8::utf8_ucfirst()</span><br>
133 <br>
136 <td><p class="style3"><code><span class="style9">UTF8::utf8_strlen()</span><br>
141 <br>
144 <p> This is the main OSBib engine.<br>
145 <span class="style3"><code>include_once($pathToOsbibClasses . &quot;BIBFORMAT.php&quot;);<br>
149 …ass="style8">PROPERTIES </span>(to be set after instantiating the <code>BIBFORMAT</code> class)<br>
150 …ain text. It is used to format bold, underline, italics etc. for the appropriate output medium.<br>
151 … its value will be ignored if <code>$bibformat-&gt;output</code> is anything other than 'html'.<br>
152 …rnHighlight</code></span> -- A CSS class defining the highlighting for above. Default is FALSE.<br>
158 …formatLoadstyle" id="bibformatLoadstyle"></a><span class="style9">BIBFORMAT::loadStyle()</span><br>
160 …rmatGetstyle"><code>BIBFORMAT::getStyle()</code></a>. The four associative arrays returned are:<br>
161 …</span> -- general information about the resource including description, language, version etc.<br>
162 … class="style3"><code>$citation</code></span> -- in-text citation styling (not currently used).<br>
163 … common styling for bibliographic output such as formatting of names, title capitalisation etc.<br>
168 <br>
171 …style3"><code><span class="style9"><a name="bibformatGetstyle"></a>BIBFORMAT::getStyle()</span><br>
178 <br>
181 <td><p class="style3"><code><span class="style9">BIBFORMAT::preProcess()</span><br>
183 …your SQL query as described in the <a href="#stylemap"><code>STYLEMAP</code></a> section above.<br>
191 <td><p><span class="style9"><code>BIBFORMAT::formatNames()</code></span><br>
194 …iative array of creator names. e.g. this array might be of the primary authors (in 'creator1'):<br>
195 <span class="style7"><code>array(<br>
196 …rname'] =&gt; 'Grimshaw', ['firstname'] =&gt; Mark, ['initials'] =&gt; 'N', ['prefix'] =&gt; ),<br>
197 …(['surname'] =&gt; 'Witt', ['firstname'] =&gt; Jan, ['initials'] =&gt; , ['prefix'] =&gt; 'de')<br>
198 );</code></span><br>
202 <br>
205 …"><code><span class="style9"><a name="bibformatFormattitle"></a>BIBFORMAT::formatTitle()</span><br>
208 <p><span class="style3"><code>$title</code></span> -- The title of the resource.<br>
209 <span class="style3"><code>$delimitLeft <br>
213 <br>
216 <td><p class="style3"><code><span class="style9">BIBFORMAT::formatEdition()</span><br>
221 <br>
224 <td><span class="style3"><code><span class="style9">BIBFORMAT::formatPages()</span><br>
228 <br>
231 <td><span class="style3"><code><span class="style9">BIBFORMAT::formatDate()</span><br>
235 <br>
238 <td><p><span class="style3"><code><span class="style9">BIBFORMAT::formatRunningTime()</span><br>
243 <br>
246 <td><p class="style3"><code><span class="style9">BIBFORMAT::addItem()</span><br>
251 <br>
254 <td><p class="style3"><code><span class="style9">BIBFORMAT::addAllOtherItems()</span><br>
259 <br>
262 <td><span class="style3"><code><span class="style9">BIBFORMAT::map()</span><br>
263 STRING $bibformat-&gt;map();</code></span><br>
274 <p>// Instantiate the <code>BIBFORMAT</code> class and initialize various parameters<br>
275 <span class="style3"><code>include_once(&quot;core/styles/BIBFORMAT.php&quot;);<br>
276 $bibformat = new BIBFORMAT();<br>
277 …on, $styleTypes) = $bibformat-&gt;loadStyle(&quot;styles/bibliography/&quot;, &quot;APA&quot;);<br>
279 <p>// process loop starts here:<br>
280 // Get the resource type ('book', 'journal_article', 'artwork' etc.)<br>
281 <span class="style3"><code>$resourceType = $row['type'];<br>
282 $row = $bibformat-&gt;preProcess($resourceType, $databaseRow);</code></span><br>
283 // PreProcessing may change the value of <code>$resourceType</code> so get it back!<br>
284 <span class="style3"><code>$resourceType = $bibformat-&gt;type;</code></span><br>
285 …ements to <code>the BIBFORMAT::item</code> array that require special processing and formatting<br>
286 1. Creator names<br>
287 2. Resource title<br>
288 3. Resource edition<br>
289 4. Resource pages<br>
290 5. Resource date<br>
291 6. Resource running time<br>
292 7. Add the URL creating a hyperlink for web browser display<br>
293 // Add all the other elements of the resource to <code>BIBFORMAT::item</code> array<br>
294 <span class="style3"><code>$bibformat-&gt;addAllOtherItems($row);</code></span><br>
295 …urce string ready for printing to the web browser or exporting to RTF, OpenOffice or plain text<br>
296 <span class="style3"><code>$string = $bibformat-&gt;map();<br>
300 <br>
304 <p>// Instantiate the <code>BIBFORMAT</code> class and initialize various parameters<br>
305 <span class="style3"><code>include_once(&quot;core/styles/BIBFORMAT.php&quot;);<br>
306 $bibformat = new BIBFORMAT(FALSE, TRUE);<br>
307 …on, $styleTypes) = $bibformat-&gt;loadStyle(&quot;styles/bibliography/&quot;, &quot;APA&quot;);<br>
309 <p>// process loop starts here:<br>
310 …the elements in the resource where the key names are valid, lowercase BibTeX field names. e.g.:<br>
311 <span class="style3"><code>$resourceArray = array(<br>
312 'author' =&gt; 'Grimshaw, Mark and Boulanger, Christian',<br>
313 'title' =&gt; 'How Bibliographies Ruined our Lives',<br>
314 'year' =&gt; '2005',<br>
315 'volume' =&gt; '20',<br>
316 'number' =&gt; '4',<br>
317 'journal' =&gt; 'Journal of Mundane Trivia',<br>
318 'pages' =&gt; '42--111',<br>
319 'howpublished' =&gt; &quot;\url{http://bibliophile.sourceforge.net}&quot;,<br>
320 );<br>
321 </code></span>// Get the resource type ('book', 'article', 'inbook' etc.)<br>
322 <span class="style3"><code>$resourceType = 'misc';</code></span><br>
323 …code> adds all the resource elements automatically to the <code>BIBFORMAT::item</code> array...<br>
324 …an class="style3"><code>$bibformat-&gt;preProcess($resourceType, $resourceArray);</code></span><br>
325 …urce string ready for printing to the web browser or exporting to RTF, OpenOffice or plain text<br>
326 <code><span class="style3">$string = $bibformat-&gt;map();<code><br>