;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: views.lisp,v 1.16 2002/12/13 12:23:17 kevin Exp $
+;;;; $Id: views.lisp,v 1.17 2002/12/24 06:30:29 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
)
)
+
(defun initialize-view-by-category (obj-cl view)
"Initialize a view based upon a preset category"
(let ((fmtstr nil)
(unless (in category :compact-text :compact-text-labels
:html :html-labels :html-link-labels
:xhtml :xhtml-labels :xhtml-link-labels
- :xml :xml-labels :xml-link-labels)
+ :xml :xml-labels :xml-link :ie-xml-link
+ :xml-link-labels :ie-xml-link-labels)
(error "Unknown view category ~A" category))
(unless (slots view)
(if (esd-hyperlink slot)
(string-append fmtstr "<~~a>" value-fmt "</~~a>")
(string-append fmtstr (concatenate 'string "<span class=\"" namestr-lower "\">" value-fmt "</span>"))))
- (:xml-link
+ ((or :xml-link :ie-xml-link)
(push name links)
(if (esd-hyperlink slot)
(string-append fmtstr "<~~a>" value-fmt "</~~a>")
(if (esd-hyperlink slot)
(string-append fmtstr "<span class=\"label\"><[!CDATA[" namestr-lower "]]></span> <~~a>" value-fmt "</~~a>")
(string-append fmtstr (concatenate 'string "<span class=\"label\"><![CDATA[" namestr-lower "]]></span> <span class=\"" namestr-lower "\">" value-fmt "</span>"))))
- (:xml-link-labels
+ ((or :xml-link-labels :ie-xml-link-labels)
(push name links)
(if (esd-hyperlink slot)
(string-append fmtstr "<label><[![CDATA[" namestr-lower "]]></label> <~~a>" value-fmt "</~~a>")
(string-append fmtstr (concatenate 'string "<label><![CDATA[" namestr-lower "]]></label> <" namestr-lower ">" value-fmt "</" namestr-lower ">")))))
) ;; let value-fmt
-
+
(let ((func (if print-formatter
`(,print-formatter (slot-value x (quote ,name)))
`(slot-value x (quote ,name)))))