From 16beab3c11eefc26577f474f1b1b49927b99a248 Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Fri, 4 Mar 2016 10:03:55 +0900 Subject: [PATCH] Additional test fixtures --- tests/fixtures/local/affix_FlipflopParens.txt | 2 +- .../local/affix_FlipflopParensLayout.txt | 95 +++ tests/fixtures/local/bugreports_LabelFail.txt | 111 +++ .../local/bugreports_VancouverNestingFail.txt | 677 ++++++++++++++++++ .../local/multilingual_RightToLeft.txt | 2 +- .../fixtures/local/position_NearNoteOnly.txt | 8 +- 6 files changed, 888 insertions(+), 7 deletions(-) create mode 100644 tests/fixtures/local/affix_FlipflopParensLayout.txt create mode 100644 tests/fixtures/local/bugreports_LabelFail.txt create mode 100644 tests/fixtures/local/bugreports_VancouverNestingFail.txt diff --git a/tests/fixtures/local/affix_FlipflopParens.txt b/tests/fixtures/local/affix_FlipflopParens.txt index d9f58fecb..ae90310c2 100644 --- a/tests/fixtures/local/affix_FlipflopParens.txt +++ b/tests/fixtures/local/affix_FlipflopParens.txt @@ -107,7 +107,7 @@ citation >>===== CSL =====>> +<<===== CSL =====<< + + +>>===== INPUT =====>> +[ + { + "author": [ + { + "family": "Smith", + "given": "Stephen" + } + ], + "id": "ITEM-1", + "title": "Stephen's Book", + "issued": { "date-parts": [[2000]]}, + "type": "book" + }, + { + "author": [ + { + "family": "Jones", + "given": "John" + } + ], + "id": "ITEM-2", + "title": "John's Book", + "issued": { "date-parts": [[2001]]}, + "type": "book" + } +] +<<===== INPUT =====<< diff --git a/tests/fixtures/local/bugreports_LabelFail.txt b/tests/fixtures/local/bugreports_LabelFail.txt new file mode 100644 index 000000000..a309653f5 --- /dev/null +++ b/tests/fixtures/local/bugreports_LabelFail.txt @@ -0,0 +1,111 @@ +>>===== MODE =====>> +citation +<<===== MODE =====<< + + + +>>===== RESULT =====>> +??? +<<===== RESULT =====<< + + +>>===== CITATIONS =====>> +[ + [ + { + "citationID": "CITATION-1", + "citationItems": [ + { + "id": "ITEM-1" + } + ], + "properties": { + "noteIndex": 1 + } + }, + [], + [] + ] +] +<<===== CITATIONS =====<< + + +>>===== CSL =====>> + + +<<===== CSL =====<< + + +>>===== INPUT =====>> +[ + { + "type": "book", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-1", + "title": "Beyond varieties of capitalism : Conflict, contradiction, and complementarities in the European economy", + "publisher": "Oxford University Press", + "ISBN": "978-0-19-920648-3", + "shortTitle": "Beyond varieties of capitalism", + "language": "en", + "editor": [ + { + "family": "Hancke", + "given": "Bob", + "multi": { + "_key": {} + } + }, + { + "family": "Rhodes", + "given": "Martin", + "multi": { + "_key": {} + } + }, + { + "family": "Thatcher", + "given": "Mark", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2007" + } + } +] +<<===== INPUT =====<< diff --git a/tests/fixtures/local/bugreports_VancouverNestingFail.txt b/tests/fixtures/local/bugreports_VancouverNestingFail.txt new file mode 100644 index 000000000..4293818f9 --- /dev/null +++ b/tests/fixtures/local/bugreports_VancouverNestingFail.txt @@ -0,0 +1,677 @@ +>>===== MODE =====>> +bibliography +<<===== MODE =====<< + + + +>>===== RESULT =====>> +
+
+
1.
Eppler MJ, Mengis J. The concept of information overload: a review of literature from organization science, accounting, marketing, MIS, and related disciplines. The Information Society [Internet]. 2004 Nov 1 [cited 2016 Jan 22];20(5):325–44. Available from: http://dx.doi.org/10.1080/01972240490507974
+
+
+
2.
Hopkins PJ. Engaging with “Web 2.0” technologies: implementing enterprise content management at Bond University. 2009 [cited 2016 Jan 22]. Available from: http://epublications.bond.edu.au/library_pubs/21/
+
+
+
3.
Jackson T, Dawson R, Wilson D. The cost of email interruption. J of Systems and Info Tech [Internet]. 2001 Jun 1 [cited 2016 Jan 22];5(1):81–92. Available from: http://www.emeraldinsight.com/doi/abs/10.1108/13287260180000760
+
+
+
4.
Hansen MT, Haas MR. Competing for attention in knowledge markets: electronic document dissemination in a management consulting company. Administrative Science Quarterly [Internet]. 2001;46(1):1–28. Available from: http://www.jstor.org/stable/2667123
+
+
+
5.
Falkinger J. Limited attention as a scarce resource in information-rich economies. The Economic Journal [Internet]. 2008;118(532):1596–620. Available from: http://www.jstor.org/stable/20108876
+
+
+
6.
Crawford AB. Corporate electronic mail: a communication-intensive application of information technology. MIS Quarterly [Internet]. 1982;6(3):1–13. Available from: http://www.jstor.org/stable/248652
+
+
+
7.
Google Groups [Internet]. [cited 2016 Jan 22]. Available from: https://groups.google.com/
+
+
+
8.
Kern MK. Get to know your gadget guy or gal: tips from an accidental library technologist on staying current. Reference & User Services Quarterly [Internet]. 2006;46(2):12–5. Available from: http://www.jstor.org/stable/20864641
+
+
+
9.
Gruman G. Really Simple Syndication (RSS) as a knowledge management tool [Internet]. CIO. 2006 [cited 2016 Jan 22]. Available from: http://www.cio.com/article/2444769/cio-role/really-simple-syndication--rss--as-a-knowledge-management-tool.html
+
+
+<<===== RESULT =====<< + + +>>===== CITATIONS =====>> +[ + [ + { + "citationID": "CITATION-1", + "citationItems": [ + { + "id": "ITEM-1" + }, + { + "id": "ITEM-2" + }, + { + "id": "ITEM-3" + }, + { + "id": "ITEM-4" + }, + { + "id": "ITEM-5" + }, + { + "id": "ITEM-6" + }, + { + "id": "ITEM-7" + }, + { + "id": "ITEM-8" + }, + { + "id": "ITEM-9" + } + ], + "properties": { + "noteIndex": 1 + } + }, + [], + [] + ] +] +<<===== CITATIONS =====<< + + +>>===== CSL =====>> + + +<<===== CSL =====<< + + +>>===== INPUT =====>> +[ + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-1", + "title": "The concept of information overload: a review of literature from organization science, accounting, marketing, MIS, and related disciplines", + "container-title": "The Information Society", + "page": "325-344", + "volume": "20", + "issue": "5", + "source": "Taylor and Francis+NEJM", + "abstract": "Based on literature from the domains of organization science, marketing, accounting, and management information systems, this review article examines the theoretical basis of the information overload discourse and presents an overview of the main definitions, situations, causes, effects, and countermeasures. It analyzes the contributions from the last 30 years to consolidate the existing research in a conceptual framework and to identify future research directions.", + "URL": "http://dx.doi.org/10.1080/01972240490507974", + "DOI": "10.1080/01972240490507974", + "ISSN": "0197-2243", + "shortTitle": "The Concept of Information Overload", + "author": [ + { + "family": "Eppler", + "given": "Martin J.", + "multi": { + "_key": {} + } + }, + { + "family": "Mengis", + "given": "Jeanne", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "November 1, 2004" + }, + "accessed": { + "raw": "2016-01-22T23:53:33Z" + } + }, + { + "type": "paper-conference", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-2", + "title": "Engaging with \"Web 2.0\" technologies: implementing enterprise content management at Bond University", + "source": "Google Scholar", + "event": "EDUCAUSE Australasia", + "URL": "http://epublications.bond.edu.au/library_pubs/21/", + "shortTitle": "Engaging with'Web 2.0'technologies", + "author": [ + { + "family": "Hopkins", + "given": "Peta J.", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2009" + }, + "accessed": { + "raw": "2016-01-22T15:28:28Z" + } + }, + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-3", + "title": "The cost of email interruption", + "container-title": "Journal of Systems and Information Technology", + "page": "81-92", + "volume": "5", + "issue": "1", + "source": "emeraldinsight.com (Atypon)", + "URL": "http://www.emeraldinsight.com/doi/abs/10.1108/13287260180000760", + "DOI": "10.1108/13287260180000760", + "ISSN": "1328-7265", + "journalAbbreviation": "J of Systems and Info Tech", + "author": [ + { + "family": "Jackson", + "given": "Thomas", + "multi": { + "_key": {} + } + }, + { + "family": "Dawson", + "given": "Ray", + "multi": { + "_key": {} + } + }, + { + "family": "Wilson", + "given": "Darren", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "June 1, 2001" + }, + "accessed": { + "raw": "2016-01-22T15:01:41Z" + } + }, + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-4", + "title": "Competing for attention in knowledge markets: electronic document dissemination in a management consulting company", + "container-title": "Administrative Science Quarterly", + "page": "1-28", + "volume": "46", + "issue": "1", + "abstract": "The relatively recent explosion of information available in electronic forms makes attention, rather than information, the scarce resource in organizations. In this paper, we theorize about how suppliers of electronic information compete for this resource and use data on document database use in a management consulting company to show that document suppliers that occupied a crowded segment of the firm's internal knowledge market gained less attention from employees (measured as monthly use of their database) but were able to combat this negative competitive effect by being selective and concentrated in their document supply. This result reveals a paradox of information supply in competitive information markets: the less information a supplier offered, the more it was used, because the supplier developed a reputation for quality and focus. We suggest that this view of competition for attention can also be applied to the competition among Web sites in external information markets.", + "URL": "http://www.jstor.org/stable/2667123", + "ISSN": "00018392", + "author": [ + { + "family": "Hansen", + "given": "Morten T.", + "multi": { + "_key": {} + } + }, + { + "family": "Haas", + "given": "Martine R.", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2001" + } + }, + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-5", + "title": "Limited attention as a scarce resource in information-rich economies", + "container-title": "The Economic Journal", + "page": "1596-1620", + "volume": "118", + "issue": "532", + "abstract": "This article uses basic facts from the psychology of attention to show how the limited attention of consumers affects economic competition. The article determines endogenously whether an economy is information rich or information poor. A conventional economic equilibrium results if subjects have spare attention capacity. At the positive level, the respective impacts of advances in information technology, international integration and the media on equilibrium diversity and level of attention-seeking activities are shown. At the normative level, the issues of welfare, efficiency and optimal policy interventions are addressed.", + "URL": "http://www.jstor.org/stable/20108876", + "ISSN": "00130133, 14680297", + "author": [ + { + "family": "Falkinger", + "given": "Josef", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2008" + } + }, + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-6", + "title": "Corporate electronic mail: a communication-intensive application of information technology", + "container-title": "MIS Quarterly", + "page": "1-13", + "volume": "6", + "issue": "3", + "abstract": "Extending the ARPANET technology of an asynchronous, packet-switched \"electronic mailbox,\" the Corporate Information Systems department introduced a pilot mail service within Digital Equipment Corporation which has now grown into a full-fledged production system with some 6,000 users - and is still growing. The architecture for the Electronic Mail System (EMS) is based on a multinode network of dedicated minicomputers. Technical, administrative and human factors, and cost considerations were recorded throughout the pilot and production period. Lessons learned have highlighted the need for better network engineering, capacity planning, and operational policies/procedures. User surveys were used to capture demographic data and reaffirmed the highly favorable impact on personal productivity and each manager's effectiveness. Recommendations are offered on how to plan for a pilot and to assure a smooth transition to production service.", + "URL": "http://www.jstor.org/stable/248652", + "ISSN": "02767783", + "author": [ + { + "family": "Crawford", + "given": "A. B.", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "1982" + } + }, + { + "type": "webpage", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-7", + "title": "Google Groups", + "URL": "https://groups.google.com/", + "accessed": { + "raw": "2016-01-22T14:04:48Z" + } + }, + { + "type": "article-journal", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-8", + "title": "Get to know your gadget guy or gal: tips from an accidental library technologist on staying current", + "container-title": "Reference & User Services Quarterly", + "page": "12-15", + "volume": "46", + "issue": "2", + "URL": "http://www.jstor.org/stable/20864641", + "ISSN": "10949054, 21635242", + "author": [ + { + "family": "Kern", + "given": "M. Kathleen", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2006" + } + }, + { + "type": "webpage", + "multi": { + "main": {}, + "_keys": {} + }, + "id": "ITEM-9", + "title": "Really Simple Syndication (RSS) as a knowledge management tool", + "container-title": "CIO", + "abstract": "Cliff Bell came to a somewhat shocking realization last year: The two most important Internet software applications in recent history—e-mail ...", + "URL": "http://www.cio.com/article/2444769/cio-role/really-simple-syndication--rss--as-a-knowledge-management-tool.html", + "author": [ + { + "family": "Gruman", + "given": "Galen", + "multi": { + "_key": {} + } + } + ], + "issued": { + "raw": "2006-09-01" + }, + "accessed": { + "raw": "2016-01-22T12:55:18Z" + } + } +] +<<===== INPUT =====<< diff --git a/tests/fixtures/local/multilingual_RightToLeft.txt b/tests/fixtures/local/multilingual_RightToLeft.txt index 8c2026463..f5fc67abb 100644 --- a/tests/fixtures/local/multilingual_RightToLeft.txt +++ b/tests/fixtures/local/multilingual_RightToLeft.txt @@ -12,7 +12,7 @@ citation >>===== RESULT =====>> -‫(הוצאה לאור של מכללת אוהלו) +(הוצאה לאור של מכללת אוהלו) <<===== RESULT =====<< diff --git a/tests/fixtures/local/position_NearNoteOnly.txt b/tests/fixtures/local/position_NearNoteOnly.txt index 4cadba131..efca9076d 100644 --- a/tests/fixtures/local/position_NearNoteOnly.txt +++ b/tests/fixtures/local/position_NearNoteOnly.txt @@ -63,7 +63,6 @@ citation >>===== CSL =====>> -