rewrote citation support to support new version of CSL schema. bibliographic output is much improved.

This commit is contained in:
Simon Kornblith 2006-08-12 23:23:56 +00:00
parent bf96eca337
commit 05edc2a08b
2 changed files with 1036 additions and 541 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
-- 44 -- 45
-- Set the following timestamp to the most recent scraper update date -- Set the following timestamp to the most recent scraper update date
REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-11 11:18:00')); REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-11 11:18:00'));
@ -4859,101 +4859,138 @@ function doImport(url) { // the URL is actually here for other translators
} }
}'); }');
REPLACE INTO "csl" VALUES('id-not-yet-given', '2006-08-03 00:33:00', 'American Psychological Association', REPLACE INTO "csl" VALUES('id-not-yet-given', '2006-08-12 19:22:00', 'American Psychological Association',
'<citationstyle xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en"> '<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="file:/Users/darcusb/xbiblio/csl/schema/trunk/csl-alt.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="author-date" xml:lang="en">
<info> <info>
<title>American Psychological Association</title> <title>American Psychological Association</title>
<title-short>APA</title-short> <id>http://purl.org/net/xbiblio/csl/styles/apa.csl</id>
<edition>5</edition> <link>http://purl.org/net/xbiblio/csl/styles/apa.csl</link>
<author> <author>
<name>Bruce DÕArcus</name> <name>Bruce DArcus</name>
<email>bdarcus@sourceforge.net</email> <email>bdarcus@sourceforge.net</email>
</author> </author>
<dateCreated>2005-05-18</dateCreated> <updated>2006-08-03T11:01:30-05:00</updated>
<dateModified>2006-07-09</dateModified>
<source
href="http://www.english.uiuc.edu/cws/wworkshop/writer_resources/citation_styles/apa/apa.htm"
>Citation Styles Handbook: APA</source>
<field>psychology</field>
<description>Style for the American Psychological
Association.</description>
</info> </info>
<general> <defaults>
<names and="text" sort-separator=", " initialize-with="."> <contributor>
<original-script position="after" prefix=" "/> <name and="symbol" sort-separator=", " initialize-with="."/>
</names> <role prefix=", " />
<contributors> </contributor>
<label position="before-unless-first" type="verb"/> <author>
</contributors> <substitute>
<locators> <choose>
<label position="before" form="short"/> <editor>
</locators> <name and="symbol" sort-separator=", " initialize-with="."/>
<role prefix=" (" suffix=")" />
</editor>
<translator>
<name and="symbol" sort-separator=", " initialize-with="."/>
<role prefix=" (" suffix=")" />
</translator>
<titles relation="container" font-style="italic"/>
<titles> <titles>
<original-script position="after" prefix=" "/> <name form="short"/>
</titles> </titles>
<dates format="year, month day" month="full"> </choose>
<original position="after" prefix=" [" suffix="]"/> </substitute>
</dates> </author>
<publishers order="address-publisher" separator=":"/> <locator>
<access order="url-date" separator=", "/> <number/>
</general> </locator>
<citation delimiter=";" type="author-year" sort-order="author-date" <identifier>
prefix="(" suffix=")"> <number/>
<use-et_al min-authors="6" use-first="6" position="first"/> </identifier>
<use-et_al min-authors="6" use-first="1" position="subsequent"/> <titles>
<item-layout> <title/>
<author form="short" suffix=", "/> </titles>
<date>
<year/> <year/>
<point-locator prefix=": " include-label="false"/> <month prefix=", "/>
</item-layout> <day prefix=" "/>
</date>
<publisher>
<place suffix=": "/>
<name/>
</publisher>
<access>
<url/>
<date prefix=", "/>
</access>
</defaults>
<citation prefix="(" suffix=")" delimiter="; ">
<et-al min-authors="6" use-first="6" position="first"/>
<et-al min-authors="6" use-first="1" position="subsequent"/>
<layout>
<item>
<author form="short" suffix=", "/>
<date>
<year/>
</date>
<locator prefix=": " include-label="false"/>
</item>
</layout>
</citation> </citation>
<bibliography author-as-sort-order="all" author-shorten-with="ÑÑÑ." <bibliography author-as-sort-order="all" hanging-indent="true">
sort-order="author-date"> <sort algorithm="author-date"/>
<use-et_al min-authors="4" use-first="3"/> <et-al min-authors="4" use-first="3"/>
<list-layout> <layout>
<heading label="references"/> <list>
</list-layout> <heading>
<item-layout suffix="."> <text term-name="references"/>
<reftype name="book"> </heading>
<author alternate="editor"/> </list>
<year prefix=" (" suffix=")."/> <item suffix=".">
<title font-style="italic" prefix=" " suffix="."/> <choose>
<editor prefix=", "/> <type name="book">
<publisher/> <author/>
<access prefix=" "/> <date prefix=" (" suffix=").">
</reftype> <year/>
<reftype name="chapter"> </date>
<author alternate="editor"/> <group suffix=".">
<year prefix=" (" suffix=")."/> <titles font-style="italic" prefix=" "/>
<title prefix=" "/> <editor prefix=" (" suffix=")"/>
<group class="container">
<text idref="in"/>
<editor/>
<title type="container" font-style="italic" prefix=" " suffix="."/>
<title type="series" prefix=" " suffix="."/>
<publisher/>
</group> </group>
<publisher prefix=" "/>
<access prefix=" "/>
</type>
<type name="chapter">
<author/>
<date prefix=" (" suffix=").">
<year/>
</date>
<titles prefix=" "/>
<group class="container">
<text term-name="in"/>
<editor prefix=" "/>
<titles relation="container" font-style="italic" prefix=" " suffix="."/>
<titles relation="collection" prefix=" " suffix="."/>
<publisher prefix=" "/>
<access prefix=" "/> <access prefix=" "/>
<pages prefix=", "/> <pages prefix=", "/>
</reftype>
<reftype name="article">
<author alternate="container-title"/>
<year prefix=" (" suffix=")."/>
<title prefix=" "/>
<group class="container">
<editor/>
<title type="container" font-style="italic" prefix=" " suffix="."/>
</group> </group>
</type>
<type name="article">
<author/>
<date prefix=" (" suffix=").">
<year/>
</date>
<group suffix=".">
<titles font-style="italic" prefix=" "/>
<editor prefix=" (" suffix=")"/>
</group>
<group class="container" prefix=" " suffix=".">
<titles relation="container" font-style="italic" prefix=" "/>
<access prefix=" "/> <access prefix=" "/>
<volume prefix=" "/> <volume prefix=", " font-style="italic"/>
<issue prefix="(" suffix=")"/> <issue prefix="(" suffix=")"/>
<pages prefix=", "/> <pages prefix=", "/>
</reftype> </group>
<reftype name="legalcase"> </type>
<title/> </choose>
<year prefix=" (" suffix=")"/> </item>
<access prefix=", "/> </layout>
</reftype>
</item-layout>
</bibliography> </bibliography>
</citationstyle>'); </style>
');