[OPEN-ILS-DEV] ***SPAM*** Looking at BibTemplate

Dan Scott dan at coffeecode.net
Sun May 2 20:23:07 EDT 2010


On 2 May 2010 11:19, Jason Boyer <jasonb at myjclibrary.org> wrote:
> I'm looking a little at BibTemplate in 1.6 and have a couple quick
> questions.
> One, I've been having some trouble getting any tags but <td> to work with
> the type and query attributes. I've seen examples using spans, but I
> couldn't get them to do anything.

On our 1.6.0.4 system, I just tried adding:

<p type='opac/slot-data' query='datafield[tag=245]'></p>

to the top of our rdetails/rdetail_summary.xml file, above the table
that normally displays the elements. And... it showed the contents of
the 245 field as you would expect. Maybe you want to share an example
of what you were trying to do?

> Second, is BibTemplate enabled on the search results page, or only record
> details? If it's not on the results page, how difficult would it be to add,
> and is that already planned for a later release?

There's not much to do to enable BibTemplate; Dojo is already active
on the search results page, so you just need to clone the
dojo.addOnLoad() section of rdetails/rdetail_summary.xml that contains
the dojo.require('openils.BibTemplate') call and adjust the request to
reflect the bib ID of each record.

My colleague Kevin Beswick has an initial draft of a results page that
uses BibTemplate running at
http://laurentian-test.concat.ca/opac/en-CA/skin/btresult/xml/rresult.xml?t=android&tp=title&l=105&d=1&rt=title
- there's still some work he needs to do, but it's the direction we're
heading. And in general, yes, I think BibTemplate on the default skin
for search results and more use of it on the record details page are
goals for a future release.

-- 
Dan Scott
Laurentian University


More information about the Open-ils-dev mailing list