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