]> git.sur5r.net Git - glabels/commit
Libglabels mods to support reorganization of template database
authorJim Evins <evins@snaught.com>
Mon, 7 Dec 2009 02:41:40 +0000 (21:41 -0500)
committerJim Evins <evins@snaught.com>
Mon, 7 Dec 2009 02:56:56 +0000 (21:56 -0500)
commit2d0ad672af26c3bc863e0a56a65a6be89944ced8
tree926f61c11e6d5456bdb73d519704bba2d76a34fa
parent5f45a608055226f06cd013a414439293174121f4
Libglabels mods to support reorganization of template database

Added "equiv" attribute to "Template" tag.  The "equiv" attribute works
differently than the "Alias" tag: instead of defining a simple alias for
the current template struct, it says to use the equivalent part as the
prototype for this template.  The template could override (or append)
unique meta data for this part number.  The "Alias" tag is still supported,
but is deprecated.

Added a "product_url" attribute to the "Meta" tag.

Added a "vendor.xml" file which contains a database of vendors and their
primary url.  This file has only been populated with a few examples so far.

A new DTD file has been created to describe the above changes.

The "Avery 5160" family in "avery-us-templates.xml", has been organized in
the new scheme as an example.
17 files changed:
libglabels/Makefile.am
libglabels/db.c
libglabels/db.h
libglabels/libglabels-private.h
libglabels/template.c
libglabels/template.h
libglabels/vendor.c [new file with mode: 0644]
libglabels/vendor.h [new file with mode: 0644]
libglabels/xml-template.c
libglabels/xml-template.h
libglabels/xml-vendor.c [new file with mode: 0644]
libglabels/xml-vendor.h [new file with mode: 0644]
templates/Makefile.am
templates/avery-us-templates.xml
templates/glabels-2.2.dtd [deleted file]
templates/glabels-2.3.dtd [new file with mode: 0644]
templates/vendors.xml [new file with mode: 0644]