diff --git a/dhp-workflows/dhp-doiboost/src/test/resources/eu/dnetlib/doiboost/crossref/article_nojournal.json b/dhp-workflows/dhp-doiboost/src/test/resources/eu/dnetlib/doiboost/crossref/article_nojournal.json new file mode 100644 index 000000000..48a3777b7 --- /dev/null +++ b/dhp-workflows/dhp-doiboost/src/test/resources/eu/dnetlib/doiboost/crossref/article_nojournal.json @@ -0,0 +1,368 @@ + +{ + + "indexed": { + "date-parts": [ + [ + 2022, + 4, + 22 + ] + ], + "date-time": "2022-04-22T15:30:54Z", + "timestamp": 1650641454218 + }, + "reference-count": 31, + "publisher": "Cambridge University Press (CUP)", + "issue": "2", + "license": [ + { + "start": { + "date-parts": [ + [ + 2017, + 8, + 22 + ] + ], + "date-time": "2017-08-22T00:00:00Z", + "timestamp": 1503360000000 + }, + "content-version": "unspecified", + "delay-in-days": 21, + "URL": "https://www.cambridge.org/core/terms" + } + ], + "content-domain": { + "domain": [ + + ], + "crossmark-restriction": false + }, + "short-container-title": [ + "Dance Res. J." + ], + "published-print": { + "date-parts": [ + [ + 2017, + 8 + ] + ] + }, + "abstract": "Gaga, a practice developed by Israeli choreographer Ohad Naharin, is one of the most popular training methods on the global dance market. Structured as a metatechnique, or a system for negotiating techniques within one's body, Gaga teaches students to both draw on and reject multiple movement techniques to create their own movement. I consider how the paradigms of choreography, technique, and improvisation are blurred together in the pedagogical model of a metatechnique and how training dancers to shift between choreographer, dancer, and improviser has significant ramifications for understanding their agency. The metatechnique model of Gaga falls in line with neoliberal values of efficiency and a wide range of skills and knowledge; this analysis provides an understanding of recent trends in dance training in relation to contemporary political and socioeconomic structures.", + "DOI": "10.1017/s0149767717000183", + "type": "journal-article", + "created": { + "date-parts": [ + [ + 2017, + 8, + 22 + ] + ], + "date-time": "2017-08-22T13:32:38Z", + "timestamp": 1503408758000 + }, + "page": "26-43", + "source": "Crossref", + "is-referenced-by-count": 10, + "title": [ + "Gaga as Metatechnique: Negotiating Choreography, Improvisation, and Technique in a Neoliberal Dance Market" + ], + "prefix": "10.1017", + "volume": "49", + "author": [ + { + "given": "Meghan", + "family": "Quinlan", + "sequence": "first", + "affiliation": [ + + ] + } + ], + "member": "56", + "published-online": { + "date-parts": [ + [ + 2017, + 8, + 22 + ] + ] + }, + "reference": [ + { + "key": "S0149767717000183_ref22", + "first-page": "38", + "article-title": "‘I Don't Want to do African … What About My Technique?’: Transforming Dancing Places into Spaces in the Academy", + "volume": "4", + "author": "Monroe", + "year": "2011", + "journal-title": "The Journal of Pan African Studies" + }, + { + "key": "S0149767717000183_ref8", + "volume-title": "Discipline and Punish: The Birth of the Prison", + "author": "Foucault", + "year": "1995" + }, + { + "key": "S0149767717000183_ref24", + "volume-title": "Sharing the Dance: Contact Improvisation and American Culture", + "author": "Novack", + "year": "1990" + }, + { + "key": "S0149767717000183_ref26", + "doi-asserted-by": "publisher", + "DOI": "10.1215/9780822387879" + }, + { + "key": "S0149767717000183_ref10", + "doi-asserted-by": "publisher", + "DOI": "10.1080/01472526.2015.1085759" + }, + { + "key": "S0149767717000183_ref4", + "doi-asserted-by": "crossref", + "first-page": "235", + "volume-title": "Meaning in Motion", + "author": "Foster", + "year": "1997", + "DOI": "10.1215/9780822397281-013" + }, + { + "key": "S0149767717000183_ref17", + "doi-asserted-by": "publisher", + "DOI": "10.1093/acprof:oso/9780199360369.001.0001" + }, + { + "key": "S0149767717000183_ref30", + "volume-title": "The Precariat: The New Dangerous Class", + "author": "Standing", + "year": "2011" + }, + { + "key": "S0149767717000183_ref7", + "volume-title": "Choreographing Empathy: Kinesthesia in Performance", + "author": "Foster", + "year": "2011" + }, + { + "key": "S0149767717000183_ref14", + "volume-title": "A Brief History of Neoliberalism", + "author": "Harvey", + "year": "2007" + }, + { + "key": "S0149767717000183_ref27", + "unstructured": "Quinlan Meghan . 2016. “Gaga as Politics: A Case Study of Contemporary Dance Training.” PhD diss., University of California, Riverside." + }, + { + "key": "S0149767717000183_ref11", + "first-page": "xiii", + "volume-title": "Taken by Surprise: A Dance Improvisation Reader", + "author": "Gere", + "year": "2003" + }, + { + "key": "S0149767717000183_ref13", + "volume-title": "Declaration", + "author": "Hardt", + "year": "2012" + }, + { + "key": "S0149767717000183_ref29", + "doi-asserted-by": "publisher", + "DOI": "10.1057/9780230236844_9" + }, + { + "key": "S0149767717000183_ref5", + "doi-asserted-by": "publisher", + "DOI": "10.1057/9780230236844_6" + }, + { + "key": "S0149767717000183_ref28", + "doi-asserted-by": "publisher", + "DOI": "10.1017/S0149767700000528" + }, + { + "key": "S0149767717000183_ref12", + "doi-asserted-by": "publisher", + "DOI": "10.3998/mpub.287881" + }, + { + "key": "S0149767717000183_ref18", + "first-page": "135", + "volume-title": "Taken by Surprise: A Dance Improvisation Reader", + "author": "Marks", + "year": "2003" + }, + { + "key": "S0149767717000183_ref3", + "doi-asserted-by": "crossref", + "volume-title": "Bodies That Matter: On the Discursive Limits of Sex", + "author": "Butler", + "year": "2011", + "DOI": "10.4324/9780203828274" + }, + { + "key": "S0149767717000183_ref32", + "volume-title": "Choreographing Difference: The Body and Identity in Contemporary Dance", + "author": "Albright", + "year": "1997" + }, + { + "key": "S0149767717000183_ref16", + "doi-asserted-by": "publisher", + "DOI": "10.1017/S0149767714000163" + }, + { + "key": "S0149767717000183_ref15", + "doi-asserted-by": "publisher", + "DOI": "10.2307/1477803" + }, + { + "key": "S0149767717000183_ref21", + "first-page": "455", + "volume-title": "Incorporations", + "author": "Mauss", + "year": "1992" + }, + { + "key": "S0149767717000183_ref1", + "volume-title": "The Body Eclectic: Evolving Practices in Dance Training", + "author": "Bales", + "year": "2008" + }, + { + "key": "S0149767717000183_ref9", + "unstructured": "Gaga Movement Ltd. 2016. Gaga People. Dancers. Accessed June 28, 2016. http://gagapeople.com/english/." + }, + { + "key": "S0149767717000183_ref19", + "volume-title": "Critical Moves: Dance Studies in Theory and Politics", + "author": "Martin", + "year": "1998" + }, + { + "key": "S0149767717000183_ref2", + "volume-title": "Undoing the Demos: Neoliberalism's Stealth Revolution", + "author": "Brown", + "year": "2015" + }, + { + "key": "S0149767717000183_ref20", + "doi-asserted-by": "publisher", + "DOI": "10.1162/DRAM_a_00214" + }, + { + "key": "S0149767717000183_ref6", + "doi-asserted-by": "publisher", + "DOI": "10.1215/01610775-2009-016" + }, + { + "key": "S0149767717000183_ref23", + "doi-asserted-by": "publisher", + "DOI": "10.1093/acprof:oso/9780190201661.001.0001" + }, + { + "key": "S0149767717000183_ref25", + "volume-title": "Flexible Citizenship: The Cultural Logics of Transnationality", + "author": "Ong", + "year": "1999" + } + ], + "container-title": [ + "Dance Research Journal" + ], + "original-title": [ + + ], + "language": "en", + "link": [ + { + "URL": "https://www.cambridge.org/core/services/aop-cambridge-core/content/view/S0149767717000183", + "content-type": "unspecified", + "content-version": "vor", + "intended-application": "similarity-checking" + } + ], + "deposited": { + "date-parts": [ + [ + 2020, + 10, + 16 + ] + ], + "date-time": "2020-10-16T01:00:32Z", + "timestamp": 1602810032000 + }, + "score": 1, + "resource": { + "primary": { + "URL": "https://www.cambridge.org/core/product/identifier/S0149767717000183/type/journal_article" + } + }, + "subtitle": [ + + ], + "short-title": [ + + ], + "issued": { + "date-parts": [ + [ + 2017, + 8 + ] + ] + }, + "references-count": 31, + "journal-issue": { + "issue": "2", + "published-print": { + "date-parts": [ + [ + 2017, + 8 + ] + ] + } + }, + "alternative-id": [ + "S0149767717000183" + ], + "URL": "http://dx.doi.org/10.1017/s0149767717000183", + "relation": { + + }, + "ISSN": [ + "0149-7677", + "1940-509X" + ], + "issn-type": [ + { + "value": "0149-7677", + "type": "print" + }, + { + "value": "1940-509X", + "type": "electronic" + } + ], + "subject": [ + "Visual Arts and Performing Arts" + ], + "published": { + "date-parts": [ + [ + 2017, + 8 + ] + ] + } + } diff --git a/dhp-workflows/dhp-doiboost/src/test/scala/eu/dnetlib/dhp/doiboost/crossref/CrossrefMappingTest.scala b/dhp-workflows/dhp-doiboost/src/test/scala/eu/dnetlib/dhp/doiboost/crossref/CrossrefMappingTest.scala index 78ed375c6..30928fdd0 100644 --- a/dhp-workflows/dhp-doiboost/src/test/scala/eu/dnetlib/dhp/doiboost/crossref/CrossrefMappingTest.scala +++ b/dhp-workflows/dhp-doiboost/src/test/scala/eu/dnetlib/dhp/doiboost/crossref/CrossrefMappingTest.scala @@ -473,6 +473,34 @@ class CrossrefMappingTest { }) + } + + @Test + def testConvertFromCrossRef2OafIssue(): Unit = { + val json = Source + .fromInputStream(getClass.getResourceAsStream("/eu/dnetlib/doiboost/crossref/article_nojournal.json")) + .mkString + assertNotNull(json) + + assertFalse(json.isEmpty); + + val resultList: List[Oaf] = Crossref2Oaf.convert(json) + + assertTrue(resultList.nonEmpty) + + val items = resultList.filter(p => p.isInstanceOf[Publication]) + + assert(items.nonEmpty) + assert(items.size == 1) + val pub: Publication = items.head.asInstanceOf[Publication] + + assertNotNull(pub.getJournal.getIssnPrinted) + assertNotNull(pub.getJournal.getIssnOnline) + assertNotNull(pub.getJournal.getName) + + + + } @Test