specified in the CSS3 selector.</para>\r
<para>Example of a slot formatter:</para>\r
<programlisting>\r
- <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes volume uris uri' join=", ">\r
+ <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' \r
+ query='volumes volume uris uri' join=", ">\r
<script type='opac/slot-format'><![CDATA[\r
var link = '<a href="' + item.getAttribute('href') + '">' + item.getAttribute('label') + '</a>';\r
if (item.getAttribute('use_restriction'))\r
<programlisting>\r
dojo.require('openils.BibTemplate'); // Tell Dojo to load BibTemplate, if it is not already loaded\r
\r
- // Create a renderer supplying the record id and the short name of the org unit, if known, and call the render() method \r
+ // Create a renderer supplying the record id and the short name of the org unit, if known, \r
+ // and call the render() method \r
new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render(); \r
</programlisting>\r
<para>The argument hash supplied to the new <systemitem>openils.BibTemplate()</systemitem> constructor can have the following properties:</para>\r
<form action="http://[domain name]/opac/[locale]/skin/default/xml/rresult.xml" method="get">\r
<div>\r
Quick Catalog Search:<br />\r
- <input type="text" alt="Input Box for Catalog Search" maxlength="250" size="20" id="t" name="t" value="" />\r
+ <input type="text" alt="Input Box for Catalog Search" maxlength="250" \r
+ size="20" id="t" name="t" value="" />\r
<input type="hidden" id="rt" name="rt" value="keyword" />\r
<input type="hidden" id="tp" name="tp" value="keyword" />\r
<input type="hidden" id="l" name="l" value="2" />\r
<screen>\r
<hold:volumes xmlns:hold='http://open-ils.org/spec/holdings/v1'>\r
<hold:volume id="tag:open-ils.org,2008:asset-call_number/130607" lib="FRRLS-FA" label="GUTCHEON BETH">\r
- <act:owning_lib id="tag:open-ils.org,2008:actor-org_unit/111" name="Fayette County Public Library"/>\r
- <record xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ \r
+ <act:owning_lib id="tag:open-ils.org,2008:actor-org_unit/111" name="Fayette County Public Library"/>\r
+ <record xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ \r
standards/marcxml/schema/MARC21slim.xsd"\r
id="tag:open-ils.org,2008:biblio-record_entry/21669/FRRLS-FA">\r
<leader>09319pam a2200961 a 4500</leader>\r
</record>\r
<record>\r
..\r
- </record>\r
+ </record>\r
</hold:volume>\r
</hold:volumes> \r
</screen>\r