<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by David Wong (National Library of Australia) -->
<db_archive xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="archive-spec.xsd">
    <admin>
        <title>Publication List</title>
        <shortname>publist</shortname>
        <description>This system maintains a list of items sold by the NLA Bookshop.</description>
        <publisher>NLA Shop</publisher>
        <archivedate>2003-04-21</archivedate>
        <archiver>mberko</archiver>
        <status>open</status>
    </admin>
    <datamodel>
        <item>
            <name>publication</name>
            <label>Publication</label>
            <description>This object describes a publication.</description>
            <property>
                <name>title</name>
                <composition>simple</composition>
                <obligation>mandatory</obligation>
                <repeatable>false</repeatable>
                <label>Title</label>
                <description>The official title of the publication</description>
                <type>text</type>
            </property>
            <property>
                <name>author</name>
                <composition>reference</composition>
                <obligation>optional</obligation>
                <repeatable>true</repeatable>
                <reference>person</reference>
                <label>Author of Publication</label>
            </property>
            <property>
                <name>type</name>
                <composition>simple</composition>
                <obligation>mandatory</obligation>
                <repeatable>false</repeatable>
                <label>Publication Type</label>
                <description>The format of the publicaton eg book, article, brochure, Web Site, CDRom</description>
                <type>enumeration</type>
                <valueset>
                    <value>book</value>
                    <value>article</value>
                    <value>magazine</value>
                    <value>CDRom</value>
                    <value>website</value>
                    <value>brochure</value>
                </valueset>
            </property>
            <property>
                <name>subject</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>true</repeatable>
                <label>Subject</label>
                <type>enumeration</type>
                <valueset>
                    <value>crime</value>
                    <value>fiction</value>
                    <value>mystery</value>
                    <value>romance</value>
                    <value>history</value>
                    <value>XML</value>
                    <value>publicity</value>
                    <value>technical</value>
                    <value>entertainment</value>
                </valueset>
            </property>
            <property>
                <name>serialno</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>false</repeatable>
                <label>ISSN or ISBN</label>
                <description>Official serial number for this publication</description>
                <type>identifier</type>
            </property>
            <property>
                <name>status</name>
                <composition>structured</composition>
                <obligation>optional</obligation>
                <repeatable>true</repeatable>
                <label>Publication Status</label>
                <description>The status of the publication</description>
                <propertygroup>
                    <property>
                        <name>date</name>
                        <obligation>mandatory</obligation>
                        <type>date</type>
                        <label>Status Date</label>
                    </property>
                    <property>
                        <name>statuscode</name>
                        <obligation>mandatory</obligation>
                        <label>Status</label>
                        <type>enumeration</type>
                        <valueset>
                            <value>commissioned</value>
                            <value>draft</value>
                            <value>final</value>
                            <value>prepress</value>
                            <value>published</value>
                            <value>obsolete</value>
                        </valueset>
                    </property>
                    <property>
                        <name>comment</name>
                        <obligation>optional</obligation>
                        <type>text</type>
                        <label>Comment</label>
                    </property>
                </propertygroup>
            </property>
        </item>
        <item>
            <name>person</name>
            <label>Personal Details</label>
            <property>
                <name>person_id</name>
                <composition>identifier</composition>
                <obligation>mandatory</obligation>
                <repeatable>false</repeatable>
                <type>identifier</type>
                <label>Unique ID</label>
            </property>
            <property>
                <name>familyname</name>
                <composition>simple</composition>
                <obligation>mandatory</obligation>
                <repeatable>false</repeatable>
                <type>text</type>
                <label>Family Name</label>
            </property>
            <property>
                <name>givenname</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>false</repeatable>
                <type>text</type>
                <label>Given Name</label>
            </property>
            <property>
                <name>birthdate</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>false</repeatable>
                <type>date</type>
                <label>Born</label>
            </property>
            <property>
                <name>deceased</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>false</repeatable>
                <type>flag</type>
                <label>Deceased?</label>
            </property>
            <property>
                <name>deathdate</name>
                <composition>simple</composition>
                <obligation>conditional</obligation>
                <repeatable>false</repeatable>
                <type>date</type>
                <label>Date of Death</label>
            </property>
            <property>
                <name>bio</name>
                <composition>simple</composition>
                <obligation>optional</obligation>
                <repeatable>false</repeatable>
                <type>text</type>
                <label>Biographical Notes</label>
            </property>
        </item>
    </datamodel>
    <search_rules>
        <search>
            <entity>publication</entity>
            <field>title</field>
            <field>type</field>
            <field>author<subfield>familyname</subfield>
            </field>
            <field>author<subfield>givenname</subfield>
            </field>
            <field>author<subfield>deceased</subfield>
            </field>
        </search>
        <search>
            <entity>person</entity>
            <field>familyname</field>
            <field>givenname</field>
            <field>deceased</field>
            <field>birthdate</field>
        </search>
    </search_rules>
    <display_rules>
        <resultsummary>
            <entity>publication</entity>
            <results-style>table</results-style>
            <results-chunk>20</results-chunk>
            <field link="true" sortorder="ascending">title</field>
            <field>type</field>
            <field>author<subfield>givenname</subfield>
            </field>
            <field>author<subfield>familyname</subfield>
            </field>
        </resultsummary>
        <resultsummary>
            <entity>person</entity>
            <results-style>table</results-style>
            <results-chunk>10</results-chunk>
            <field>givenname</field>
            <field>deceased</field>
            <field>birthdate</field>
        </resultsummary>
    </display_rules>
</db_archive>

