User Tools

Site Tools


opac:bibtemplate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
opac:bibtemplate [2010/05/05 12:21] – created mikeropac:bibtemplate [2022/02/10 13:34] (current) – external edit 127.0.0.1
Line 7: Line 7:
 Before BibTemplate, only a portion of the total bibliographic data was readily available to Evergreen admins and developers for the purpose of customizing the OPAC.  With BibTemplate we hope to break out of this situation, and make OPAC customization more flexible and future-proof. Before BibTemplate, only a portion of the total bibliographic data was readily available to Evergreen admins and developers for the purpose of customizing the OPAC.  With BibTemplate we hope to break out of this situation, and make OPAC customization more flexible and future-proof.
  
-====How to use BibTemplate in Evergreen 1.6====+=====How to use BibTemplate in Evergreen 1.6=====
  
  
 BibTemplate arrived in Evergreen version 1.6.0.0.  In this first version the capabilities are somewhat limited, and while you can access all of the bibliographic data that unAPI can deliver, formatting is not as flexible as we want.  Also, BibTemplate only knows how to retrieve bibliographic records, not metarecords or direct holdings data, in Evergreen 1.6.  However, even with these formatting and display restrictions, enormous progress has been made in providing better and more useful bibliographic data display. BibTemplate arrived in Evergreen version 1.6.0.0.  In this first version the capabilities are somewhat limited, and while you can access all of the bibliographic data that unAPI can deliver, formatting is not as flexible as we want.  Also, BibTemplate only knows how to retrieve bibliographic records, not metarecords or direct holdings data, in Evergreen 1.6.  However, even with these formatting and display restrictions, enormous progress has been made in providing better and more useful bibliographic data display.
  
-===HTML API===+====HTML API====
 BibTemplate follows the Dojo convention of adding attributes to existing (X)HTML in order to progressively change its behavior.  The 1.6.0 HTML API consists of a set of attributes that are added to existing OPAC markup, and fall into two classes: BibTemplate follows the Dojo convention of adding attributes to existing (X)HTML in order to progressively change its behavior.  The 1.6.0 HTML API consists of a set of attributes that are added to existing OPAC markup, and fall into two classes:
  
Line 45: Line 45:
 </code> </code>
  
-===JavaScript API===+====JavaScript API====
 In order for BibTemplate to find the **slot markers** and invoke the **slot formatters** JavaScript renderer must be instantiated and called.  This must be done for each record that is to contribute to a pages display.  The API for this is simple and straight-forward: In order for BibTemplate to find the **slot markers** and invoke the **slot formatters** JavaScript renderer must be instantiated and called.  This must be done for each record that is to contribute to a pages display.  The API for this is simple and straight-forward:
  
Line 59: Line 59:
  
  
-====How to use BibTemplate in Evergreen trunk (to become 2.0)====+=====How to use BibTemplate in Evergreen trunk (to become 2.0)=====
  
  
Line 65: Line 65:
  
  
-===HTML API===+====HTML API====
 BibTemplate follows the Dojo convention of adding attributes to existing (X)HTML in order to progressively change its behavior.  The 1.6.0 HTML API consists of a set of attributes that are added to existing OPAC markup, and fall into two classes: BibTemplate follows the Dojo convention of adding attributes to existing (X)HTML in order to progressively change its behavior.  The 1.6.0 HTML API consists of a set of attributes that are added to existing OPAC markup, and fall into two classes:
  
   * The **slot marker** -- Elements that denote the location of bibliographic data to insert   * The **slot marker** -- Elements that denote the location of bibliographic data to insert
-  * The **slot formatter** -- Elements that specify how the named data should be formatted for display+  * The **slot formatter** and **template values** -- Elements that specify how the named data should be formatted for display
  
 ==Slot Marker== ==Slot Marker==
Line 129: Line 129:
 </code> </code>
  
-===JavaScript API===+====JavaScript API====
 In order for BibTemplate to find the **slot markers** and invoke the **slot formatters** JavaScript renderer must be instantiated and called.  This must be done for each record that is to contribute to a pages display.  The API for this is simple and straight-forward: In order for BibTemplate to find the **slot markers** and invoke the **slot formatters** JavaScript renderer must be instantiated and called.  This must be done for each record that is to contribute to a pages display.  The API for this is simple and straight-forward:
  
opac/bibtemplate.1273076480.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.