From 1d24873fd642d2a8c4e6d542659de69c8b1bf306 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Fri, 28 Sep 2018 12:44:56 -0400 Subject: [PATCH 1/7] Remove test for Noma Scholar Room --- test/delivery-locations-resolver.test.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/delivery-locations-resolver.test.js b/test/delivery-locations-resolver.test.js index 81069f00..61826497 100644 --- a/test/delivery-locations-resolver.test.js +++ b/test/delivery-locations-resolver.test.js @@ -63,10 +63,6 @@ const scholarRooms = [ id: 'loc:mala', label: 'Schwarzman Building - Allen Scholar Room' }, - { - id: 'loc:maln', - label: 'Schwarzman Building - Noma Scholar Room' - }, { id: 'loc:malw', label: 'Schwarzman Building - Wertheim Scholar Room' From f9efaa35b835fa984b36236513e434d4dfdb037a Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Fri, 28 Sep 2018 12:46:08 -0400 Subject: [PATCH 2/7] Add search_scope=standard_number, with tests --- lib/resources.js | 42 +- swagger.v0.1.json | 12 +- swagger.v0.1.yml | 14 +- ...uery-082890fd6ca29377be9a1bf212d08da6.json | 20 +- ...uery-0be746d9cdbd8df4805cfb3714bf2886.json | 117 +-- ...uery-0beefbe13cf4a173452bb502afab287d.json | 727 ++++++++++++++++++ ...uery-0ef2049bf7e5ae6773694ab3499b8876.json | 727 ++++++++++++++++++ ...uery-15413d4835d72cb7e3670bd82f8a46b3.json | 6 +- ...uery-19ab16c778bcb5ae6922e0013f2438bc.json | 727 ++++++++++++++++++ ...uery-1dc89dd01b050e145ae3224576c0feb1.json | 6 +- ...uery-23d37a35cd30cb9496f67dde74b5b186.json | 132 ++-- ...uery-28ed41cb79d0c71345baab79e678c077.json | 727 ++++++++++++++++++ ...uery-2a8da3dcf228f15b6135ffb165f681c2.json | 20 +- ...uery-371124a9ca573506dbbbb1762d948c01.json | 137 ++-- ...uery-3bcc12ff8ddfe24cd4fcc89bd1cfe0fe.json | 6 +- ...uery-3f4a82537e7eae0f417ff5f9d1ce214b.json | 8 +- ...uery-58e67bc3db3ed7ffcecc59751569a0fc.json | 727 ++++++++++++++++++ ...uery-5ec5a749f28cfb45ef24c99e3919fd9e.json | 727 ++++++++++++++++++ ...uery-61e453aa30ad04f203145b7c594a25c4.json | 727 ++++++++++++++++++ ...uery-626e45980d97544bf9ce69b3ba280539.json | 222 +++--- ...uery-643f7d6c3bb057753b9fab723e04ded3.json | 6 +- ...uery-66b27e32722cf5036741f04bc8f8e402.json | 727 ++++++++++++++++++ ...uery-7772fe8efc6cc7e1cb5363ef4b4ef5ae.json | 6 +- ...uery-8328997324df063c8938d9a78e1b6443.json | 727 ++++++++++++++++++ ...uery-854bbf7ac168227de293fdcca5e458d5.json | 727 ++++++++++++++++++ ...uery-98cc3c5e854e4508423d699ebbbdcf27.json | 727 ++++++++++++++++++ ...uery-9af6f9337d19270c2e79c6262ddbc614.json | 70 +- ...uery-a704e149154fa0174991ff7020de0fe1.json | 727 ++++++++++++++++++ ...uery-ac3517244ff44be3a0cafd4e641bd548.json | 727 ++++++++++++++++++ ...uery-b2e7d3ccce46a9d60738e024bffc785e.json | 727 ++++++++++++++++++ ...uery-ef43cc74325ef4f09dbf3529e0552389.json | 727 ++++++++++++++++++ ...uery-efea84925b92f11ef7928588c95370d0.json | 211 ++++- ...uery-f56822224f561b5ecf26cfc8b06fe39b.json | 354 ++++----- ...uery-fa23e5f24bef15f61c9c9afadc8e9c85.json | 124 +-- test/resources.test.js | 55 ++ 35 files changed, 11840 insertions(+), 633 deletions(-) create mode 100644 test/fixtures/query-0beefbe13cf4a173452bb502afab287d.json create mode 100644 test/fixtures/query-0ef2049bf7e5ae6773694ab3499b8876.json create mode 100644 test/fixtures/query-19ab16c778bcb5ae6922e0013f2438bc.json create mode 100644 test/fixtures/query-28ed41cb79d0c71345baab79e678c077.json create mode 100644 test/fixtures/query-58e67bc3db3ed7ffcecc59751569a0fc.json create mode 100644 test/fixtures/query-5ec5a749f28cfb45ef24c99e3919fd9e.json create mode 100644 test/fixtures/query-61e453aa30ad04f203145b7c594a25c4.json create mode 100644 test/fixtures/query-66b27e32722cf5036741f04bc8f8e402.json create mode 100644 test/fixtures/query-8328997324df063c8938d9a78e1b6443.json create mode 100644 test/fixtures/query-854bbf7ac168227de293fdcca5e458d5.json create mode 100644 test/fixtures/query-98cc3c5e854e4508423d699ebbbdcf27.json create mode 100644 test/fixtures/query-a704e149154fa0174991ff7020de0fe1.json create mode 100644 test/fixtures/query-ac3517244ff44be3a0cafd4e641bd548.json create mode 100644 test/fixtures/query-b2e7d3ccce46a9d60738e024bffc785e.json create mode 100644 test/fixtures/query-ef43cc74325ef4f09dbf3529e0552389.json diff --git a/lib/resources.js b/lib/resources.js index 2cca8365..28094151 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -65,6 +65,9 @@ const SEARCH_SCOPES = { }, callnumber: { fields: ['shelfMark'] + }, + standard_number: { + fields: ['shelfMark', 'identifierV2.value', 'uri', 'identifier', 'items.identifierV2.value'] } } @@ -501,14 +504,49 @@ const buildElasticQuery = function (params) { }) if (params.q) { + // We have an array of fields to match. + // Seperate the root-level fields from nested fields by building an object like this: + // { + // _root: [ 'fieldName1', 'fieldName2' ], + // nestedName1: { 'nestedName1.nestedProperty1', 'nestedName1.nestedProperty2' } + // } + const fieldMap = SEARCH_SCOPES[params.search_scope].fields.reduce((map, fieldName) => { + // Most fields will be matched at root level: + let nestedName = '_root' + // Any field starting with the following is a nested field: + if (['items'].indexOf(fieldName.split('.').shift()) >= 0) { + nestedName = fieldName.split('.').shift() + } + if (!map[nestedName]) map[nestedName] = [] + map[nestedName].push(fieldName) + return map + }, { _root: [] }) + shoulds.push({ 'query_string': { - 'fields': SEARCH_SCOPES[params.search_scope].fields, - // default_field: defaultField, + 'fields': fieldMap._root, 'query': escapeQuery(params.q), 'default_operator': 'AND' } }) + + // Add nested queries (if any) to things that *should* match: + Object.keys(fieldMap) + .filter((nestedName) => nestedName !== '_root') + .forEach((nestedName) => { + shoulds.push({ + nested: { + path: nestedName, + query: { + query_string: { + fields: fieldMap[nestedName], + query: escapeQuery(params.q), + default_operator: 'AND' + } + } + } + }) + }) } var filterClausesWithPaths = [] diff --git a/swagger.v0.1.json b/swagger.v0.1.json index 99c74286..7dca7204 100644 --- a/swagger.v0.1.json +++ b/swagger.v0.1.json @@ -22,8 +22,8 @@ "tags": [ "discovery" ], - "summary": "Search resources", - "description": "Match by keyword\n\n> `/resources?q=war peace`\n\nFilters are applied using a `filters` param that expects this syntax on the query string:\n\n> /resources?filters[property1]=value1&filters[property2]=value2\n\nWhere `property*` is one of: \n\n> 'owner', 'subjectLiteral', 'holdingLocation', 'deliveryLocation', 'language', 'materialType', 'mediaType', 'carrierType', 'publisher', 'contributor', 'creator', 'issuance', 'createdYear', 'dateAfter', or 'dateBefore'.\n\nSee [the app README for more examples](https://github.com/NYPL-discovery/discovery-api/blob/master/README.md)\n", + "summary": "Search resources (bibs and items)", + "description": "Match by keyword\n> `/resources?q=war peace`\n\nFilters are applied using a `filters` param that expects this syntax on the query string:\n\n> `/resources?filters[property1]=value1&filters[property2]=value2`\n\nWhere `property*` is one of: \n\n> 'owner', 'subjectLiteral', 'holdingLocation', 'deliveryLocation', 'language', 'materialType', 'mediaType', 'carrierType', 'publisher', 'contributor', 'creator', 'issuance', 'createdYear', 'dateAfter', or 'dateBefore'.\n\nSee [the app README for more examples](https://github.com/NYPL-discovery/discovery-api/blob/master/README.md)\n", "parameters": [ { "name": "q", @@ -38,6 +38,7 @@ "description": "Page number to return", "required": false, "type": "integer", + "default": 1, "minimum": 1 }, { @@ -67,7 +68,7 @@ { "name": "sort_direction", "in": "query", - "description": "Override the default direction for the current sort (asc, desc). Default depends on the field.", + "description": "Override the default direction for the current sort (asc, desc). Default depends on the field. (title defaults to asc, date defaults to desc, creator defaults to asc, relevance is fixed desc)", "required": false, "type": "string", "enum": [ @@ -78,7 +79,7 @@ { "name": "search_scope", "in": "query", - "description": "Specify what (group of) fields to match against (all, title, contributor, subject, series, callnumber)", + "description": "Specify what (group of) fields to match against (all, title, contributor, subject, series, callnumber, standard_number). See https://github.com/NYPL-discovery/discovery-api/blob/master/lib/resources.js to review specific fields matched in each scope and how they're boosted.", "required": false, "type": "string", "enum": [ @@ -87,7 +88,8 @@ "contributor", "subject", "series", - "callnumber" + "callnumber", + "standard_number" ], "default": "all" }, diff --git a/swagger.v0.1.yml b/swagger.v0.1.yml index c57af146..dec3f5f1 100644 --- a/swagger.v0.1.yml +++ b/swagger.v0.1.yml @@ -15,11 +15,10 @@ paths: get: tags: - discovery - summary: Search resources + summary: Search resources (bibs and items) description: > Match by keyword - > `/resources?q=war peace` @@ -27,7 +26,7 @@ paths: the query string: - > /resources?filters[property1]=value1&filters[property2]=value2 + > `/resources?filters[property1]=value1&filters[property2]=value2` Where `property*` is one of: @@ -55,6 +54,7 @@ paths: description: Page number to return required: false type: integer + default: 1 minimum: 1 - name: per_page in: query @@ -79,7 +79,8 @@ paths: in: query description: >- Override the default direction for the current sort (asc, desc). - Default depends on the field. + Default depends on the field. (title defaults to asc, date defaults + to desc, creator defaults to asc, relevance is fixed desc) required: false type: string enum: @@ -89,7 +90,9 @@ paths: in: query description: >- Specify what (group of) fields to match against (all, title, - contributor, subject, series, callnumber) + contributor, subject, series, callnumber, standard_number). See + https://github.com/NYPL-discovery/discovery-api/blob/master/lib/resources.js + to review specific fields matched in each scope and how they're boosted. required: false type: string enum: @@ -99,6 +102,7 @@ paths: - subject - series - callnumber + - standard_number default: all - name: 'filters[*]' in: query diff --git a/test/fixtures/query-082890fd6ca29377be9a1bf212d08da6.json b/test/fixtures/query-082890fd6ca29377be9a1bf212d08da6.json index df5ad4f8..f0da977c 100644 --- a/test/fixtures/query-082890fd6ca29377be9a1bf212d08da6.json +++ b/test/fixtures/query-082890fd6ca29377be9a1bf212d08da6.json @@ -1,5 +1,5 @@ { - "took": 43, + "took": 125, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 668741, + "total": 681015, "max_score": null, "hits": [ { @@ -77,7 +77,7 @@ "dateEndYear": [ 1984 ], - "updatedAt": 1525296775911, + "updatedAt": 1536782423539, "publicationStatement": [ "Tihrān : Intishārāt-i Amīr Kabīr, 1362 [1983 or 1984]" ], @@ -8589,7 +8589,7 @@ "dateEndYear": [ 9999 ], - "updatedAt": 1523471718283, + "updatedAt": 1535597371687, "publicationStatement": [ "[S.l. : The author, 197-]" ], @@ -8646,12 +8646,6 @@ ], "items": [ { - "owner": [ - { - "id": "orgs:1105", - "label": "Irma and Paul Milstein Division of United States History, Local History and Genealogy" - } - ], "identifier": [ "urn:barcode:33433090390752" ], @@ -8690,13 +8684,13 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ { - "id": "loc:mag82", - "label": "Schwarzman Building - Milstein Division Room 121" + "id": "loc:mag92", + "label": "Schwarzman Building M2 - Milstein Division Room 121" } ] } diff --git a/test/fixtures/query-0be746d9cdbd8df4805cfb3714bf2886.json b/test/fixtures/query-0be746d9cdbd8df4805cfb3714bf2886.json index c1d1c193..f4ea4eaa 100644 --- a/test/fixtures/query-0be746d9cdbd8df4805cfb3714bf2886.json +++ b/test/fixtures/query-0be746d9cdbd8df4805cfb3714bf2886.json @@ -1,5 +1,5 @@ { - "took": 190, + "took": 284, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 13730729, + "total": 13863084, "max_score": null, "hits": [ { @@ -87,7 +87,7 @@ "value": "86124252" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Tübingen : Stauffenburg, c1985." ], @@ -268,7 +268,7 @@ "value": "gb 89012970" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "London : Constable, 1989." ], @@ -458,7 +458,7 @@ "value": "74915265" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413960, "publicationStatement": [ "Tirunelvēli, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1965." ], @@ -558,7 +558,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -646,7 +646,7 @@ "uniformTitle": [ "Concertos, violin, orchestra, no. 2, op. 22, D minor; arr." ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413910, "publicationStatement": [ "Moskva : Muzyka, 1980." ], @@ -836,7 +836,7 @@ "value": "75962707" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413246, "publicationStatement": [ "al-Qāhirah, Lajnat al-Taʼlīf wa-al-Tarjamah wa-al-Nashr [1968]" ], @@ -1019,7 +1019,7 @@ "uniformTitle": [ "Studies, guitar" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413006, "publicationStatement": [ "Budapest : Editio Musica, c1981." ], @@ -1115,7 +1115,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1197,7 +1197,7 @@ "value": "72913998" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "Ceṉṉai, Parimaḷam Patippakam [1969]" ], @@ -1382,7 +1382,7 @@ "uniformTitle": [ "Miniaturen, no. 2" ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413960, "publicationStatement": [ "Leipzig : Edition Peters ; New York : C.F. Peters, c1980." ], @@ -1567,7 +1567,7 @@ "value": "72913466" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Aṇṇāmalainakar, Aṇṇāmalaip Palkalaikkaḻakam, 1969." ], @@ -1741,7 +1741,7 @@ "dateEndYear": [ 1982 ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413006, "publicationStatement": [ "Sneek [Netherlands] : Boeijenga, [between 1976 and 1982]." ], @@ -1793,6 +1793,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Passie. I. Psalm 22. II. Leer mij O Heer. III. \"Mijn Verlosser hangt aan 't kruis.\" IV. \"O hoofd vol bloed en wonden.\" V. \"O kostbaar kruis.\" VI. \"Jezus, leven van mijn leven\" -- Pasen. VII. Toccata over \"Christus is opgestanden.\" VIII. Canon: \"Jesus unser Trost und Leben.\" IX. Trio: Ik zeg het allen dat Hij leeft.\" X. Trio: \"Staakt Uw rouwen Magdalene.\" XI. Postludium over \"Jesus leeft en wij met Hem\" (met \"Christus onze Heer verrees\" als tegenstem)." + ], "items": [ { "owner": [ @@ -1919,7 +1922,7 @@ "value": "10000012" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Bayrūt : Dār al-Thaqāfah, 1970." ], @@ -2088,7 +2091,7 @@ "value": "10000013" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782412087, "publicationStatement": [ "Leipzig : Harth Musik Verlag, c1980." ], @@ -2263,7 +2266,7 @@ "value": "10000014" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "Bayrūt : Muʼassasat al-Aʻlamī lil-Maṭbūʻāt, 1975." ], @@ -2445,7 +2448,7 @@ "value": "74913402" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Manṅkaḷa Nūlakam, 1959 [i.e. 1967]" ], @@ -2633,7 +2636,7 @@ "value": "10000017" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413960, "publicationStatement": [ "Amsterdam : Donemus, c1981." ], @@ -2813,7 +2816,7 @@ "value": "78970449" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "Bayrūt : Dār al-Ṭalīʻah, 1975." ], @@ -2996,7 +2999,7 @@ "uniformTitle": [ "Walzer und ein Epilog" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Wolfenbüttel : Möseler, c1979." ], @@ -3174,7 +3177,7 @@ "value": "74914844" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412087, "publicationStatement": [ "[Aṇṇāmalainakar] Aṇṇāmalaip Palkalaik Kaḻakam, 1970." ], @@ -3231,6 +3234,9 @@ "titleAlt": [ "Tolkāppiyam nutaliyaporuḷ." ], + "tableOfContents": [ + "Tolkāppiyam.--Tolkāppiyam nutaliyaporuḷ." + ], "items": [ { "owner": [ @@ -3362,7 +3368,7 @@ "value": "10000021" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413067, "publicationStatement": [ "Berlin : Verlag Neue Musik, c1978." ], @@ -3548,7 +3554,7 @@ "value": "73913714" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -3591,7 +3597,7 @@ 1 ], "numAvailable": [ - 1 + 0 ], "placeOfPublication": [ "Ceṉṉai," @@ -3636,7 +3642,7 @@ "33433061301564" ], "requestable": [ - true + false ], "uri": "i13783787", "shelfMark": [ @@ -3650,8 +3656,8 @@ ], "status": [ { - "id": "status:a", - "label": "Available " + "id": "status:t", + "label": "In transit" } ], "holdingLocation": [ @@ -3741,7 +3747,7 @@ "value": "10000023" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412148, "publicationStatement": [ "Delaware Water Gap, Pa. : Shawnee Press, c1979." ], @@ -3920,7 +3926,7 @@ "value": "79971032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "[Bayrūt] : Dār Ibn Khaldūn, 1976." ], @@ -4096,7 +4102,7 @@ "uniformTitle": [ "Sonatinas, piano" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Wolfenbüttel : Möseler, c1979." ], @@ -4278,7 +4284,7 @@ "value": "76960987" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Dimashq : Wizārat al-Thaqāfah wa-al-Irshād al-Qawmī, 1975." ], @@ -4452,7 +4458,7 @@ "uniformTitle": [ "Kleine Sonaten, violin" ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Wolfenbüttel : Möseler Verlag, c1979." ], @@ -4639,7 +4645,7 @@ "value": "75903689" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Udayapura : Rājasthāna Sāhitya Akādamī (Saṅgama), 1973." ], @@ -4831,7 +4837,7 @@ "value": "82771131" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782412087, "publicationStatement": [ "Copenhagen ; New York : W. Hansen ; [s.l.] : Distribution, Magnamusic-Baton, c1980." ], @@ -5031,7 +5037,7 @@ "uniformTitle": [ "Uṇādisūtra." ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413960, "publicationStatement": [ "Karanāla : Ra.Ba.Cau. Nārāyaṇasiṃha Dharmārtha Ṭrasṭa ; Bahālagaḍha, Harayāṇa : prāptisthānam, Rāmalāla Kapūra Ṭrasṭa, 1974." ], @@ -5202,7 +5208,7 @@ "uniformTitle": [ "Miniaturen" ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Heidelberg : W. Müller, c1979." ], @@ -5378,7 +5384,7 @@ "value": "10000032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413067, "publicationStatement": [ "Tihrān : Kitābfurūshī-i Khayyām, 1351 [1972]" ], @@ -5550,7 +5556,7 @@ "value": "10000033" } ], - "updatedAt": 1524680631588, + "updatedAt": 1536782413960, "publicationStatement": [ "Carol Stream, Ill. : Agápe, c1981." ], @@ -5601,6 +5607,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Hear me when I call -- Be not far from me -- Hear my voice -- The Lord is my rock." + ], "items": [ { "owner": [ @@ -5643,7 +5652,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5787,7 +5796,7 @@ "value": "74903273" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Varanasi : Prithivi Prakashan, 1974." ], @@ -5967,7 +5976,7 @@ "uniformTitle": [ "Serenade, piano" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413978, "publicationStatement": [ "Amsterdam : Donemus, c1980." ], @@ -6020,6 +6029,9 @@ "titleAlt": [ "Serenade," ], + "tableOfContents": [ + "Varianten -- Nocturne -- Toccata I -- Intermezzo -- Toccata II." + ], "items": [ { "owner": [ @@ -6188,7 +6200,7 @@ "value": "75902755" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "[s.1. : s.n.], 1972" ], @@ -6362,7 +6374,7 @@ "uniformTitle": [ "Studies, guitar" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413978, "publicationStatement": [ "Amsterdam : Donemus, c1980." ], @@ -6539,7 +6551,7 @@ "value": "76900772" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Śimalā : Himācala Kalā-Saṃskrti-Bhāṣā Akādamī, 1975." ], @@ -6713,7 +6725,7 @@ "uniformTitle": [ "Sonatas, piano. Selections" ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413006, "publicationStatement": [ "New York : C.F. Peters, c1980." ], @@ -6893,7 +6905,7 @@ "value": "78913375" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -7075,7 +7087,7 @@ "value": "81770739" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "London : Primavera, c1980." ], @@ -7129,6 +7141,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Greeting -- Circular argument -- Escape." + ], "items": [ { "owner": [ @@ -7262,7 +7277,7 @@ "dateEndYear": [ 1972 ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413960, "publicationStatement": [ "Prayāga, Devabhāṣā Prakāśana, Samvat 2028, i.e. 1971 or 2]" ], @@ -7447,7 +7462,7 @@ "value": "10000043" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "Wien : Verlag Doblinger, c1980." ], @@ -7634,7 +7649,7 @@ "value": "77901316" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "New Delhi : Ngawang Sopa, 1976." ], diff --git a/test/fixtures/query-0beefbe13cf4a173452bb502afab287d.json b/test/fixtures/query-0beefbe13cf4a173452bb502afab287d.json new file mode 100644 index 00000000..46c73dda --- /dev/null +++ b/test/fixtures/query-0beefbe13cf4a173452bb502afab287d.json @@ -0,0 +1,727 @@ +{ + "took": 6, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 50.64213, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 50.64213, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-0ef2049bf7e5ae6773694ab3499b8876.json b/test/fixtures/query-0ef2049bf7e5ae6773694ab3499b8876.json new file mode 100644 index 00000000..e48ac8fd --- /dev/null +++ b/test/fixtures/query-0ef2049bf7e5ae6773694ab3499b8876.json @@ -0,0 +1,727 @@ +{ + "took": 7, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-15413d4835d72cb7e3670bd82f8a46b3.json b/test/fixtures/query-15413d4835d72cb7e3670bd82f8a46b3.json index e82b7347..32bf4983 100644 --- a/test/fixtures/query-15413d4835d72cb7e3670bd82f8a46b3.json +++ b/test/fixtures/query-15413d4835d72cb7e3670bd82f8a46b3.json @@ -1,5 +1,5 @@ { - "took": 2, + "took": 6, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 14.749417, + "max_score": 15.206831, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b10011374", - "_score": 14.749417, + "_score": 15.206831, "_source": { "extent": [ "2 v. illus." diff --git a/test/fixtures/query-19ab16c778bcb5ae6922e0013f2438bc.json b/test/fixtures/query-19ab16c778bcb5ae6922e0013f2438bc.json new file mode 100644 index 00000000..93bfacf1 --- /dev/null +++ b/test/fixtures/query-19ab16c778bcb5ae6922e0013f2438bc.json @@ -0,0 +1,727 @@ +{ + "took": 33, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 14.058358, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 14.058358, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-1dc89dd01b050e145ae3224576c0feb1.json b/test/fixtures/query-1dc89dd01b050e145ae3224576c0feb1.json index 091b185d..cb53ff7c 100644 --- a/test/fixtures/query-1dc89dd01b050e145ae3224576c0feb1.json +++ b/test/fixtures/query-1dc89dd01b050e145ae3224576c0feb1.json @@ -1,5 +1,5 @@ { - "took": 3, + "took": 7, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 15.2602415, + "max_score": 15.213127, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b10015541", - "_score": 15.2602415, + "_score": 15.213127, "_source": { "extent": [ "v. : ill. ;" diff --git a/test/fixtures/query-23d37a35cd30cb9496f67dde74b5b186.json b/test/fixtures/query-23d37a35cd30cb9496f67dde74b5b186.json index 4568ee83..24727046 100644 --- a/test/fixtures/query-23d37a35cd30cb9496f67dde74b5b186.json +++ b/test/fixtures/query-23d37a35cd30cb9496f67dde74b5b186.json @@ -1,5 +1,5 @@ { - "took": 13, + "took": 26, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 14.71329, + "max_score": 13.904345, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b18932917", - "_score": 14.71329, + "_score": 13.904345, "_source": { "extent": [ "52 linear ft., 127 boxes" @@ -94,7 +94,7 @@ "dateEndYear": [ 1970 ], - "updatedAt": 1525078526499, + "updatedAt": 1533827424828, "identifier": [ "urn:bnum:18932917" ], @@ -247,7 +247,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -394,7 +394,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -443,7 +443,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -492,7 +492,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -541,7 +541,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -590,7 +590,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -639,7 +639,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -688,7 +688,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -737,7 +737,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -786,7 +786,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -939,7 +939,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -988,7 +988,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1037,7 +1037,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1184,7 +1184,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1233,7 +1233,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1282,7 +1282,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1331,7 +1331,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1380,7 +1380,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1429,7 +1429,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1478,7 +1478,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1582,7 +1582,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1680,7 +1680,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1729,7 +1729,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1827,7 +1827,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1876,7 +1876,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1925,7 +1925,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2023,7 +2023,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2127,7 +2127,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2225,7 +2225,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2274,7 +2274,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2372,7 +2372,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2421,7 +2421,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2476,7 +2476,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2525,7 +2525,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2623,7 +2623,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2721,7 +2721,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2819,7 +2819,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2966,7 +2966,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3064,7 +3064,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3217,7 +3217,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3266,7 +3266,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3364,7 +3364,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3805,7 +3805,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -3903,7 +3903,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4001,7 +4001,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4050,7 +4050,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4295,7 +4295,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4344,7 +4344,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4442,7 +4442,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4540,7 +4540,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4589,7 +4589,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5324,7 +5324,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5373,7 +5373,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5618,7 +5618,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5667,7 +5667,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5716,7 +5716,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5814,7 +5814,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5863,7 +5863,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5912,7 +5912,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5961,7 +5961,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -6169,7 +6169,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -6328,7 +6328,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ diff --git a/test/fixtures/query-28ed41cb79d0c71345baab79e678c077.json b/test/fixtures/query-28ed41cb79d0c71345baab79e678c077.json new file mode 100644 index 00000000..93923bde --- /dev/null +++ b/test/fixtures/query-28ed41cb79d0c71345baab79e678c077.json @@ -0,0 +1,727 @@ +{ + "took": 4, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-2a8da3dcf228f15b6135ffb165f681c2.json b/test/fixtures/query-2a8da3dcf228f15b6135ffb165f681c2.json index 48c3c973..48850758 100644 --- a/test/fixtures/query-2a8da3dcf228f15b6135ffb165f681c2.json +++ b/test/fixtures/query-2a8da3dcf228f15b6135ffb165f681c2.json @@ -1,5 +1,5 @@ { - "took": 180, + "took": 158, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 307071, + "total": 304421, "max_score": null, "hits": [ { @@ -77,7 +77,7 @@ "dateEndYear": [ 1984 ], - "updatedAt": 1525296775911, + "updatedAt": 1536782423539, "publicationStatement": [ "Tihrān : Intishārāt-i Amīr Kabīr, 1362 [1983 or 1984]" ], @@ -8589,7 +8589,7 @@ "dateEndYear": [ 9999 ], - "updatedAt": 1523471718283, + "updatedAt": 1535597371687, "publicationStatement": [ "[S.l. : The author, 197-]" ], @@ -8646,12 +8646,6 @@ ], "items": [ { - "owner": [ - { - "id": "orgs:1105", - "label": "Irma and Paul Milstein Division of United States History, Local History and Genealogy" - } - ], "identifier": [ "urn:barcode:33433090390752" ], @@ -8690,13 +8684,13 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ { - "id": "loc:mag82", - "label": "Schwarzman Building - Milstein Division Room 121" + "id": "loc:mag92", + "label": "Schwarzman Building M2 - Milstein Division Room 121" } ] } diff --git a/test/fixtures/query-371124a9ca573506dbbbb1762d948c01.json b/test/fixtures/query-371124a9ca573506dbbbb1762d948c01.json index 50bfe92b..58f812fb 100644 --- a/test/fixtures/query-371124a9ca573506dbbbb1762d948c01.json +++ b/test/fixtures/query-371124a9ca573506dbbbb1762d948c01.json @@ -1,5 +1,5 @@ { - "took": 185, + "took": 307, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 13730729, + "total": 13863084, "max_score": null, "hits": [ { @@ -87,7 +87,7 @@ "value": "86124252" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Tübingen : Stauffenburg, c1985." ], @@ -268,7 +268,7 @@ "value": "gb 89012970" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "London : Constable, 1989." ], @@ -458,7 +458,7 @@ "value": "74915265" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413960, "publicationStatement": [ "Tirunelvēli, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1965." ], @@ -558,7 +558,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -646,7 +646,7 @@ "uniformTitle": [ "Concertos, violin, orchestra, no. 2, op. 22, D minor; arr." ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413910, "publicationStatement": [ "Moskva : Muzyka, 1980." ], @@ -836,7 +836,7 @@ "value": "75962707" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413246, "publicationStatement": [ "al-Qāhirah, Lajnat al-Taʼlīf wa-al-Tarjamah wa-al-Nashr [1968]" ], @@ -1019,7 +1019,7 @@ "uniformTitle": [ "Studies, guitar" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413006, "publicationStatement": [ "Budapest : Editio Musica, c1981." ], @@ -1115,7 +1115,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -1197,7 +1197,7 @@ "value": "72913998" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "Ceṉṉai, Parimaḷam Patippakam [1969]" ], @@ -1382,7 +1382,7 @@ "uniformTitle": [ "Miniaturen, no. 2" ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413960, "publicationStatement": [ "Leipzig : Edition Peters ; New York : C.F. Peters, c1980." ], @@ -1567,7 +1567,7 @@ "value": "72913466" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Aṇṇāmalainakar, Aṇṇāmalaip Palkalaikkaḻakam, 1969." ], @@ -1741,7 +1741,7 @@ "dateEndYear": [ 1982 ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413006, "publicationStatement": [ "Sneek [Netherlands] : Boeijenga, [between 1976 and 1982]." ], @@ -1793,6 +1793,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Passie. I. Psalm 22. II. Leer mij O Heer. III. \"Mijn Verlosser hangt aan 't kruis.\" IV. \"O hoofd vol bloed en wonden.\" V. \"O kostbaar kruis.\" VI. \"Jezus, leven van mijn leven\" -- Pasen. VII. Toccata over \"Christus is opgestanden.\" VIII. Canon: \"Jesus unser Trost und Leben.\" IX. Trio: Ik zeg het allen dat Hij leeft.\" X. Trio: \"Staakt Uw rouwen Magdalene.\" XI. Postludium over \"Jesus leeft en wij met Hem\" (met \"Christus onze Heer verrees\" als tegenstem)." + ], "items": [ { "owner": [ @@ -1919,7 +1922,7 @@ "value": "10000012" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Bayrūt : Dār al-Thaqāfah, 1970." ], @@ -2088,7 +2091,7 @@ "value": "10000013" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782412087, "publicationStatement": [ "Leipzig : Harth Musik Verlag, c1980." ], @@ -2263,7 +2266,7 @@ "value": "10000014" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "Bayrūt : Muʼassasat al-Aʻlamī lil-Maṭbūʻāt, 1975." ], @@ -2445,7 +2448,7 @@ "value": "74913402" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Manṅkaḷa Nūlakam, 1959 [i.e. 1967]" ], @@ -2633,7 +2636,7 @@ "value": "10000017" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413960, "publicationStatement": [ "Amsterdam : Donemus, c1981." ], @@ -2813,7 +2816,7 @@ "value": "78970449" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "Bayrūt : Dār al-Ṭalīʻah, 1975." ], @@ -2996,7 +2999,7 @@ "uniformTitle": [ "Walzer und ein Epilog" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Wolfenbüttel : Möseler, c1979." ], @@ -3174,7 +3177,7 @@ "value": "74914844" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412087, "publicationStatement": [ "[Aṇṇāmalainakar] Aṇṇāmalaip Palkalaik Kaḻakam, 1970." ], @@ -3231,6 +3234,9 @@ "titleAlt": [ "Tolkāppiyam nutaliyaporuḷ." ], + "tableOfContents": [ + "Tolkāppiyam.--Tolkāppiyam nutaliyaporuḷ." + ], "items": [ { "owner": [ @@ -3362,7 +3368,7 @@ "value": "10000021" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413067, "publicationStatement": [ "Berlin : Verlag Neue Musik, c1978." ], @@ -3548,7 +3554,7 @@ "value": "73913714" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -3591,7 +3597,7 @@ 1 ], "numAvailable": [ - 1 + 0 ], "placeOfPublication": [ "Ceṉṉai," @@ -3636,7 +3642,7 @@ "33433061301564" ], "requestable": [ - true + false ], "uri": "i13783787", "shelfMark": [ @@ -3650,8 +3656,8 @@ ], "status": [ { - "id": "status:a", - "label": "Available " + "id": "status:t", + "label": "In transit" } ], "holdingLocation": [ @@ -3741,7 +3747,7 @@ "value": "10000023" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412148, "publicationStatement": [ "Delaware Water Gap, Pa. : Shawnee Press, c1979." ], @@ -3920,7 +3926,7 @@ "value": "79971032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "[Bayrūt] : Dār Ibn Khaldūn, 1976." ], @@ -4096,7 +4102,7 @@ "uniformTitle": [ "Sonatinas, piano" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Wolfenbüttel : Möseler, c1979." ], @@ -4278,7 +4284,7 @@ "value": "76960987" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Dimashq : Wizārat al-Thaqāfah wa-al-Irshād al-Qawmī, 1975." ], @@ -4452,7 +4458,7 @@ "uniformTitle": [ "Kleine Sonaten, violin" ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Wolfenbüttel : Möseler Verlag, c1979." ], @@ -4639,7 +4645,7 @@ "value": "75903689" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Udayapura : Rājasthāna Sāhitya Akādamī (Saṅgama), 1973." ], @@ -4831,7 +4837,7 @@ "value": "82771131" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782412087, "publicationStatement": [ "Copenhagen ; New York : W. Hansen ; [s.l.] : Distribution, Magnamusic-Baton, c1980." ], @@ -5031,7 +5037,7 @@ "uniformTitle": [ "Uṇādisūtra." ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413960, "publicationStatement": [ "Karanāla : Ra.Ba.Cau. Nārāyaṇasiṃha Dharmārtha Ṭrasṭa ; Bahālagaḍha, Harayāṇa : prāptisthānam, Rāmalāla Kapūra Ṭrasṭa, 1974." ], @@ -5202,7 +5208,7 @@ "uniformTitle": [ "Miniaturen" ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Heidelberg : W. Müller, c1979." ], @@ -5378,7 +5384,7 @@ "value": "10000032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413067, "publicationStatement": [ "Tihrān : Kitābfurūshī-i Khayyām, 1351 [1972]" ], @@ -5550,7 +5556,7 @@ "value": "10000033" } ], - "updatedAt": 1524680631588, + "updatedAt": 1536782413960, "publicationStatement": [ "Carol Stream, Ill. : Agápe, c1981." ], @@ -5601,6 +5607,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Hear me when I call -- Be not far from me -- Hear my voice -- The Lord is my rock." + ], "items": [ { "owner": [ @@ -5643,7 +5652,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -5787,7 +5796,7 @@ "value": "74903273" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Varanasi : Prithivi Prakashan, 1974." ], @@ -5967,7 +5976,7 @@ "uniformTitle": [ "Serenade, piano" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413978, "publicationStatement": [ "Amsterdam : Donemus, c1980." ], @@ -6020,6 +6029,9 @@ "titleAlt": [ "Serenade," ], + "tableOfContents": [ + "Varianten -- Nocturne -- Toccata I -- Intermezzo -- Toccata II." + ], "items": [ { "owner": [ @@ -6188,7 +6200,7 @@ "value": "75902755" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "[s.1. : s.n.], 1972" ], @@ -6362,7 +6374,7 @@ "uniformTitle": [ "Studies, guitar" ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413978, "publicationStatement": [ "Amsterdam : Donemus, c1980." ], @@ -6539,7 +6551,7 @@ "value": "76900772" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Śimalā : Himācala Kalā-Saṃskrti-Bhāṣā Akādamī, 1975." ], @@ -6713,7 +6725,7 @@ "uniformTitle": [ "Sonatas, piano. Selections" ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413006, "publicationStatement": [ "New York : C.F. Peters, c1980." ], @@ -6893,7 +6905,7 @@ "value": "78913375" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -7075,7 +7087,7 @@ "value": "81770739" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "London : Primavera, c1980." ], @@ -7129,6 +7141,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Greeting -- Circular argument -- Escape." + ], "items": [ { "owner": [ @@ -7262,7 +7277,7 @@ "dateEndYear": [ 1972 ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413960, "publicationStatement": [ "Prayāga, Devabhāṣā Prakāśana, Samvat 2028, i.e. 1971 or 2]" ], @@ -7447,7 +7462,7 @@ "value": "10000043" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "Wien : Verlag Doblinger, c1980." ], @@ -7634,7 +7649,7 @@ "value": "77901316" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "New Delhi : Ngawang Sopa, 1976." ], @@ -7786,7 +7801,7 @@ "JMG 82-688" ], "creatorLiteral": [ - "Stutschewsky, Joachim, 1891-" + "Stutschewsky, Joachim, 1891-1982." ], "createdString": [ "1979" @@ -7811,7 +7826,7 @@ "value": "80770813" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413960, "publicationStatement": [ "Tel-Aviv : Sole selling agents, Or-Tav, c1979." ], @@ -8002,7 +8017,7 @@ "value": "77900893" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "New Delhi : Trayang and Jamyang Samten, 1976." ], @@ -8199,7 +8214,7 @@ "uniformTitle": [ "Vocalise, soprano, instrumental ensemble, op. 38" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413978, "publicationStatement": [ "London, England (Arlington Park House, London W4) : Redcliffe Edition, c1979." ], @@ -8382,7 +8397,7 @@ "value": "76901012" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413067, "publicationStatement": [ "Thimphu : Kunzang Topgey, 1976." ], @@ -8567,7 +8582,7 @@ "uniformTitle": [ "Symphony, op. 26" ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413246, "publicationStatement": [ "London (Arlington Park House, London W4 4HD) : Redcliffe Edition, c1976." ], @@ -8753,7 +8768,7 @@ "value": "76901747" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "New Delhi : Urgyan Dorje, 1976." ], @@ -8947,7 +8962,7 @@ "Samfundet til udgivelse af dansk musik (Series) ; 3. ser., nr. 264.", "Symphony, no. 2, op. 69c" ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413960, "publicationStatement": [ "København : Samfundet til udgivelse af dansk musik, 1977." ], @@ -9047,7 +9062,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -9134,7 +9149,7 @@ "value": "76900205" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Gangtog : Sherab Gyaltshen Lama, 1976." ], diff --git a/test/fixtures/query-3bcc12ff8ddfe24cd4fcc89bd1cfe0fe.json b/test/fixtures/query-3bcc12ff8ddfe24cd4fcc89bd1cfe0fe.json index 021a52b1..3879fcb1 100644 --- a/test/fixtures/query-3bcc12ff8ddfe24cd4fcc89bd1cfe0fe.json +++ b/test/fixtures/query-3bcc12ff8ddfe24cd4fcc89bd1cfe0fe.json @@ -1,5 +1,5 @@ { - "took": 190, + "took": 255, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 13730729, + "total": 13863087, "max_score": null, "hits": [ { @@ -76,7 +76,7 @@ "value": "75960366" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "[al-Jazāʼir]: al-Sharikah al-Waṭanīyah lil-Nashr wa-al-Tawzīʻ, 1967." ], diff --git a/test/fixtures/query-3f4a82537e7eae0f417ff5f9d1ce214b.json b/test/fixtures/query-3f4a82537e7eae0f417ff5f9d1ce214b.json index c9826f03..4852cedf 100644 --- a/test/fixtures/query-3f4a82537e7eae0f417ff5f9d1ce214b.json +++ b/test/fixtures/query-3f4a82537e7eae0f417ff5f9d1ce214b.json @@ -1,5 +1,5 @@ { - "took": 3, + "took": 7, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 15.124104, + "max_score": 14.359531, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b10022734", - "_score": 15.124104, + "_score": 14.359531, "_source": { "extent": [ "xiv, 381 p., [16] leaves of plates : ill. ;" @@ -77,7 +77,7 @@ "value": "80002704" } ], - "updatedAt": 1525296806266, + "updatedAt": 1536709534786, "publicationStatement": [ "New York : Knopf : distributed by Random House, 1981." ], diff --git a/test/fixtures/query-58e67bc3db3ed7ffcecc59751569a0fc.json b/test/fixtures/query-58e67bc3db3ed7ffcecc59751569a0fc.json new file mode 100644 index 00000000..3123b2b6 --- /dev/null +++ b/test/fixtures/query-58e67bc3db3ed7ffcecc59751569a0fc.json @@ -0,0 +1,727 @@ +{ + "took": 4, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 12.759075, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 12.759075, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-5ec5a749f28cfb45ef24c99e3919fd9e.json b/test/fixtures/query-5ec5a749f28cfb45ef24c99e3919fd9e.json new file mode 100644 index 00000000..e732fe31 --- /dev/null +++ b/test/fixtures/query-5ec5a749f28cfb45ef24c99e3919fd9e.json @@ -0,0 +1,727 @@ +{ + "took": 6, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 13.751772, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 13.751772, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-61e453aa30ad04f203145b7c594a25c4.json b/test/fixtures/query-61e453aa30ad04f203145b7c594a25c4.json new file mode 100644 index 00000000..f73d055e --- /dev/null +++ b/test/fixtures/query-61e453aa30ad04f203145b7c594a25c4.json @@ -0,0 +1,727 @@ +{ + "took": 12, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-626e45980d97544bf9ce69b3ba280539.json b/test/fixtures/query-626e45980d97544bf9ce69b3ba280539.json index af85e4a4..7720c4d7 100644 --- a/test/fixtures/query-626e45980d97544bf9ce69b3ba280539.json +++ b/test/fixtures/query-626e45980d97544bf9ce69b3ba280539.json @@ -1,5 +1,5 @@ { - "took": 251, + "took": 428, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 13730729, + "total": 13863087, "max_score": null, "hits": [ { @@ -76,7 +76,7 @@ "value": "75960366" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "[al-Jazāʼir]: al-Sharikah al-Waṭanīyah lil-Nashr wa-al-Tawzīʻ, 1967." ], @@ -256,7 +256,7 @@ "value": "73902751" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "[Ceṉṉai] 1972." ], @@ -444,7 +444,7 @@ "value": "73902452" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "[Ceṉṉai]; innūlkaḷ kiṭaikkumiṭam Liṭṭil Pḷavar Kampeṉi, 1972." ], @@ -632,7 +632,7 @@ "value": "76903205" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412148, "publicationStatement": [ "Nācciyār Kōvil, Tañcai Māvaṭṭam : Tai Nūlakam ; Ceṉṉai : viṟpaṉai urimai, Kavitā Patippakam, 1975." ], @@ -821,7 +821,7 @@ "value": "72901252" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413067, "publicationStatement": [ "Citamparam, Maṇivācakam Nūlakam [1972]" ], @@ -1003,7 +1003,7 @@ "value": "sa 68007148" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413067, "publicationStatement": [ "Kānapura, Yugavāṇī Prakāśana; [Ekādhikārī Vitaraka Sahacārī Prakāśana Prasāraṇa, 1968]" ], @@ -1190,7 +1190,7 @@ "value": "2008037637" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "New York : Columbia University Press, c2008." ], @@ -1247,7 +1247,7 @@ 2 ], "numAvailable": [ - 1 + 2 ], "placeOfPublication": [ "New York :" @@ -1258,6 +1258,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Xanadu : an envoy at the throne of a monarch -- Romantic domesticity : a Chinese world invented at home -- Pursuing the China effect : a country described through marketing -- China in miniature : Nathan Dunn's Chinese museum -- A floating ethnology : the strange voyage of the Chinese junk Keying -- God's China : the Middle Kingdom of Samuel Wells Williams -- The cultural fruits of diplomacy : Chinese museum and panorama -- The ugly face of China : Bayard Taylor's travels in Asia -- Traditional China and Chinese Yankees : the Centennial Exposition of 1876." + ], "items": [ { "owner": [ @@ -1358,8 +1361,8 @@ ], "status": [ { - "id": "status:co", - "label": "Loaned" + "id": "status:a", + "label": "Available" } ], "holdingLocation": [ @@ -1459,7 +1462,7 @@ "value": "75902500" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413910, "publicationStatement": [ "Maturai : Maturaip Palkalaik Kaḻakam, 1973." ], @@ -1641,7 +1644,7 @@ "value": "75960238" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413006, "publicationStatement": [ "[S.l. : s.n., 1975]" ], @@ -1825,7 +1828,7 @@ "value": "74222293" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413978, "publicationStatement": [ "[Ṭarābulus] al-Jāmiʻah al-Lībīyah, Kullīyat al-Iqtiṣād wa-al-Tijārah [1971]" ], @@ -2015,7 +2018,7 @@ "value": "78903058" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai, Kalaimakaḷ Kāriyālayam [1965]" ], @@ -2187,7 +2190,7 @@ "value": "10000114" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782412087, "publicationStatement": [ "Tihrān : Muʼassisah-ʼi Maṭbūʻātī-i ʻAṭāʼī, 1359 [1980]" ], @@ -2368,7 +2371,7 @@ "value": "10000115" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413910, "publicationStatement": [ "Tihrān : Chāpkhānah-ʼi Sipihr, 1359 [1980]" ], @@ -2552,7 +2555,7 @@ "value": "75901411" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Tirunelvēli : Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1963." ], @@ -2740,7 +2743,7 @@ "value": "75587091" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Baghdād, Maktabat al-Nahḍah, 1973." ], @@ -2923,7 +2926,7 @@ "value": "75960371" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413006, "publicationStatement": [ "al-Qāhirah : Dār al-Thaqāfah al-Jadīdah, [1975?]" ], @@ -3111,7 +3114,7 @@ "value": "72930336" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413960, "publicationStatement": [ "Lāhaur, Markazī Majlis Razā [1971]" ], @@ -3293,7 +3296,7 @@ "value": "71901945" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "Ceṉṉai, Vāṉati Patippakam [1968]" ], @@ -3477,7 +3480,7 @@ "value": "sa 64001851" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413067, "publicationStatement": [ "Kalikātā, Triveṇī Prakāśana [1963]" ], @@ -3667,7 +3670,7 @@ "value": "sa 68008215" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413960, "publicationStatement": [ "Dillī, Rājapāla [1966]" ], @@ -3846,7 +3849,7 @@ "value": "sa 63003593" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412148, "publicationStatement": [ "Kalakātā, Śrī Prakāśa Bhavana [1962]" ], @@ -4030,7 +4033,7 @@ "value": "sa 63004625" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413978, "publicationStatement": [ "Kalikātā, Es. Si. Sarakāra [1963]" ], @@ -4214,7 +4217,7 @@ "value": "74222306" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413960, "publicationStatement": [ "[Baghdād, Tawzīʻ Maktabat al-Andalus] 1973." ], @@ -4383,7 +4386,7 @@ "value": "10000126" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413960, "publicationStatement": [ "Tirūvaṇṇāmalai : Śrī Ramaṇāśrama, 1974." ], @@ -4565,7 +4568,7 @@ "value": "75232402" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412148, "publicationStatement": [ "Bayrūt, Dār al-Nahār lil-Nashr [1967]" ], @@ -4747,7 +4750,7 @@ "value": "79282457" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412087, "publicationStatement": [ "[Bayrūt] Dār al-Nahār [1969]" ], @@ -4941,7 +4944,7 @@ "value": "75587883" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "Baghdād : al-Jumhūrīyah al-ʻIrāqīyah, Wizārat al-Iʻlām, Mudīrīyat al-Thaqāfah al-ʻĀmmah, 1972." ], @@ -5143,7 +5146,7 @@ "value": "ne 68003583" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412087, "publicationStatement": [ "[Baghdād] Jāmiʻat Baghdād 1967." ], @@ -5334,7 +5337,7 @@ "value": "78970114" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412148, "publicationStatement": [ "[5.1. : s.n.], 1974" ], @@ -5512,7 +5515,7 @@ "value": "10000132" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "[S.l. : s.n.] 1975" ], @@ -5683,7 +5686,7 @@ "value": "10000133" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413006, "publicationStatement": [ "Ṣaydā : al-Maktabah al-ʻAṣrīyah, 1970." ], @@ -5882,7 +5885,7 @@ "value": "74248948" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413910, "publicationStatement": [ "Baghdād, Maṭbaʻat Dār al-Baṣrī [1969]" ], @@ -6066,7 +6069,7 @@ "value": "75972325" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413067, "publicationStatement": [ "Baghdād : [Maktabat Baghdād], 1971." ], @@ -6256,7 +6259,7 @@ "value": "74960035" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413067, "publicationStatement": [ "al-Qāhirah, Dar al-Ṣafā, yuṭlab min Maktabat al-Jāmiʻah [1973]" ], @@ -6441,7 +6444,7 @@ "value": "74960574" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412148, "publicationStatement": [ "[Baghdād] : Wizārat al-Iʻlām, Mudīrīyat al-Thaqāfah al-ʻĀmmah, [1973]" ], @@ -6616,7 +6619,7 @@ "value": "73961049" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413910, "publicationStatement": [ "al-Iskandarīyah, Jamʻīyat Udabāʼ al-Shaʻb [1968]" ], @@ -6796,7 +6799,7 @@ "value": "74963003" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "[al-Qāhirah] Maktabat al-Kullīyat al-Azharīyah [1970]" ], @@ -6977,7 +6980,7 @@ "dateEndYear": [ 1979 ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413006, "publicationStatement": [ "[S.l. : s.n., 197-?]" ], @@ -7165,7 +7168,7 @@ "value": "74903710" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "Likhnu : Nasīm Bukḍipu, 1974." ], @@ -7346,7 +7349,7 @@ "value": "10000142" } ], - "updatedAt": 1524680631588, + "updatedAt": 1536782412087, "publicationStatement": [ "Tihrān : Majmaʻ-i Maʻārif-i Islāmī, 1979." ], @@ -7529,7 +7532,7 @@ "value": "78908573" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413960, "publicationStatement": [ "Lakhaʼū : taqsīmkār, Vājid ʻAlī Shāh Akāḍmī, 1978." ], @@ -7715,7 +7718,7 @@ "dateEndYear": [ 1979 ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "[Tihrān?] : Nashr-i Rafʻat, 1357 [1978 or 1979]" ], @@ -7890,7 +7893,7 @@ "value": "73962212" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413978, "publicationStatement": [ "[al-Qāhirah] Maktabat Miṣr [1969]" ], @@ -7941,6 +7944,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "A novel" + ], "items": [ { "owner": [ @@ -8074,7 +8080,7 @@ "value": "79928817" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782412087, "publicationStatement": [ "Dihlī, Himaliyah Pablishīng Haus [1971]" ], @@ -8263,7 +8269,7 @@ "value": "77901180" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413067, "publicationStatement": [ "Vijayavāḍa, Jayantipablikēṣans [1968]" ], @@ -8442,7 +8448,7 @@ "value": "sa 68011006" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413910, "publicationStatement": [ "Maisūru, Sāhitya Sadana [1967]" ], @@ -8632,7 +8638,7 @@ "dateEndYear": [ 1976 ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "Lāhaur : Majlis-i Taraqqī-i Adab, 1973-1976." ], @@ -8679,6 +8685,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Jild-i 1. Ghazaliyyāt.--Jild-i 2. Qaṣāʼid." + ], "items": [ { "owner": [ @@ -8868,7 +8877,7 @@ "dateEndYear": [ 1969 ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412148, "publicationStatement": [ "[Bayrūt, al-Maktab al-Tijārī lil-Ṭibāʻah wa-al-Tawzīʻ wa-al-Nashr, 196-]" ], @@ -9033,7 +9042,7 @@ "value": "10000151" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413067, "publicationStatement": [ "Bayrūt : al-Maktab al-Islāmī, [1971]" ], @@ -9222,7 +9231,7 @@ "uniformTitle": [ "Purpose. Kannada" ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412148, "publicationStatement": [ "Beṅgaḷūru, Bi. Es. Rāmarāv [1969]" ], @@ -9409,7 +9418,7 @@ "value": "10000153" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413006, "publicationStatement": [ "Tihrān : Intishārāt-i Anjuman-i Ustādān-i Zabān va Adabīyāt-i Fārsī, 1360 [1981]" ], @@ -9592,7 +9601,7 @@ "value": "72903657" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "Guḍibaṇḍe, Kōlārajille, Śrī Vivēkōdaya Granthamāle [1971]" ], @@ -9782,7 +9791,7 @@ "value": "78971085" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "[Baghdād] : al-Wizārah, [1976]" ], @@ -9981,7 +9990,7 @@ "uniformTitle": [ "Aṣṭakapañcaka" ], - "updatedAt": 1524680631588, + "updatedAt": 1536782413006, "publicationStatement": [ "[S.l. : Go. Venkaṭarāmaśāstri], 1972." ], @@ -10173,7 +10182,7 @@ "value": "75961943" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413006, "publicationStatement": [ "al-Qāhirah, Dār al-shaʻb [1970]" ], @@ -10355,7 +10364,7 @@ "value": "79901118" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "Kākināḍa : Tammayya, 1968." ], @@ -10534,7 +10543,7 @@ "value": "75902609" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413067, "publicationStatement": [ "Beṅgaḷūru : Āśā Sāhitya, 1974." ], @@ -10713,7 +10722,7 @@ "value": "75908529" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai : Paḻaṉiyappā Piratars, [1966]." ], @@ -10902,7 +10911,7 @@ "value": "83900649" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413246, "publicationStatement": [ "[Tellippalai] : Civaṉ Kalvi Nilaiya Veḷiyīṭu, 1982." ], @@ -11088,7 +11097,7 @@ "value": "72902165" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413960, "publicationStatement": [ "Maisūru, Pampa Prakāśạna [1971]" ], @@ -11283,7 +11292,7 @@ "value": "83900646" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413910, "publicationStatement": [ "Tirunelvēli, Yāḻppāṇam : Kalaiñar Patippakam, 1982." ], @@ -11459,7 +11468,7 @@ "value": "76900404" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai : Vāṉati Patippakam, 1975." ], @@ -11649,7 +11658,7 @@ "uniformTitle": [ "Nālāyirat tivviyap pirapantam. Selections." ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413006, "publicationStatement": [ "Kaṭalūr : Nārāyaṇacāmi Nāyaṭu, 1975." ], @@ -11824,7 +11833,7 @@ "value": "10000166" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412148, "publicationStatement": [ "Tihrān : Dānishgāh-i Tihrān, Dānishkadah-ʼi ʻUlūm-i Maʻqūl va Manqūl, 1340 [1962]" ], @@ -11995,7 +12004,7 @@ "value": "10000167" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782412087, "publicationStatement": [ "Tihrān : Nashr-i Chakāmah, 1362 [1983]" ], @@ -12174,7 +12183,7 @@ "value": "82906730" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "[S.l.] : Mīrākkuṭṭi ; Kōṭṭayaṃ : vitaraṇaṃ, Nāṣanal Bukksṯāḷ, 1982." ], @@ -12359,7 +12368,7 @@ "value": "76900317" } ], - "updatedAt": 1524680631588, + "updatedAt": 1536782413910, "publicationStatement": [ "Ceṉṉai : viṟpaṉai urimai, Tirunelvēli Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1975." ], @@ -12559,7 +12568,7 @@ "value": "76901454" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413246, "publicationStatement": [ "[Ceṉṉai] : Ceṉṉai Palkalaik Kaḻaka Veḷiyīṭu, 1975." ], @@ -12754,7 +12763,7 @@ "value": "10000171" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "Erevan : Haykakan SSH GA Hratarakchʻutʻyun," ], @@ -12949,7 +12958,7 @@ "value": "10000172" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413246, "publicationStatement": [ "Erevan : Haykakan SSH GA Hratarakchutʻyun, 1977." ], @@ -13127,7 +13136,7 @@ "value": "82903306" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Tiruvanantapuram : Navadhāra, 1980." ], @@ -13313,7 +13322,7 @@ "value": "83900738" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "[Rāmantaḷi] : Visnunampūtiri ; Kōṭṭayaṃ : Nāṣanal Bukksṯāḷ 1982." ], @@ -13491,7 +13500,7 @@ "dateEndYear": [ 1983 ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413006, "publicationStatement": [ "Tihrān : Shirkat-i Dānish, 1361 [1982 or 1983]" ], @@ -13680,7 +13689,7 @@ "uniformTitle": [ "Rājapraśasti" ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413978, "publicationStatement": [ "Udayapura : Sāhitya saṃsthāna, Rājasthāna Vidyāpīṭha, 1973." ], @@ -13874,7 +13883,7 @@ "value": "74901467" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782412148, "publicationStatement": [ "Dillī, Rāmasnehī Sāhitya Śodha Saṃsthāna [1973]" ], @@ -14066,7 +14075,7 @@ "value": "74901757" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413960, "publicationStatement": [ "Ilāhābāda, Abhinava Bhārati Prakāśana [1974]" ], @@ -14262,7 +14271,7 @@ "value": "78900937" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413067, "publicationStatement": [ "[Trśśūr] : Malayāḷasāhityanidhi, Kēraḷa Sāhitya Akkādami ; Kōṭṭayaṃ : vitaraṇaṃ, Nāṣanal Buksṯṯāḷ, 1975." ], @@ -14444,7 +14453,7 @@ "value": "72908855" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai : Putumaip Piracuram, [1971]" ], @@ -14625,7 +14634,7 @@ "value": "82904779" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413067, "publicationStatement": [ "Kōṭṭayaṃ : Kaṟanṯ Buks, 1981." ], @@ -14818,7 +14827,7 @@ "value": "75902264" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413006, "publicationStatement": [ "Patanā : Bihāra Hindī Grantha Akādamī, 1974." ], @@ -15002,7 +15011,7 @@ "value": "83901968" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Kōṭṭayaṃ : Sāhityapṟavarttaka Sahakaraṇasaṅghaṃ : Nāṣanal Bukksṯāḷ, 1982." ], @@ -15189,7 +15198,7 @@ "value": "75901954" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413960, "publicationStatement": [ "[Vārāṇasī] Bhāratīya Jñānapīṭha Prakāśana [1968]" ], @@ -15381,7 +15390,7 @@ "value": "76900433" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "Ayinkamam : Sankari ; Nākarkōvil : viṟpaṉai urimai, Jeyakumāri Sṭōrs, 1975." ], @@ -15571,7 +15580,7 @@ "value": "72902691" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413006, "publicationStatement": [ "Hośiyārapura, Vaidika Sāhitya Sadana, 1972." ], @@ -15762,7 +15771,7 @@ "value": "10000187" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "Tihrān : Nashr-i Dānishpāyah, 1361 [1983]" ], @@ -15946,7 +15955,7 @@ "value": "74903706" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413978, "publicationStatement": [ "Paṭnah, Bahār Urdū Ākādimī [1974]" ], @@ -16131,7 +16140,7 @@ "value": "73903281" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "Dillī, Neśanala Pabḷiśiṅga Hāusa [1972]" ], @@ -16320,7 +16329,7 @@ "dateEndYear": [ 1967 ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413006, "publicationStatement": [ "Gorakhapura, Gītā Presa [1966 or 7]" ], @@ -16510,7 +16519,7 @@ "value": "74902459" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413246, "publicationStatement": [ "Lakhanaū, Aśoka Prakāśana [1974]" ], @@ -16698,7 +16707,7 @@ "value": "73902642" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "Kānapura, Granthama [1973]" ], @@ -16885,7 +16894,7 @@ "value": "76902375" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412148, "publicationStatement": [ "Udayapura : Vyāsabandhu ; [Vāṛāṇasī : prāptisthānam Caukhambā Vidyābhawana], 1966." ], @@ -17072,7 +17081,7 @@ "value": "77908094" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "Macilīpaṭnaṃ, Yam. Śēṣācalaṃ; [distributors: Andhra Pradesh Book Distributors, Secunderabad, 1969]" ], @@ -17251,7 +17260,7 @@ "value": "73903633" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782412087, "publicationStatement": [ "Tirucci, Periyār Cuyamariyātaip Piracāra Niṟuvaṉa Veḷiyīṭu [1972]" ], @@ -17433,7 +17442,7 @@ "value": "79909527" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413067, "publicationStatement": [ "Tiruccirāppaḷḷi, Tirāviṭappaṇṇai [1969]" ], @@ -17620,7 +17629,7 @@ "value": "74903607" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782412087, "publicationStatement": [ "Ceṉṉai, Pūṅkoṭi Patippakam [1974]" ], @@ -17802,7 +17811,7 @@ "value": "73907881" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "Madarāsu, Si. Vi. Krṣṇā Bukḍipō [1967]" ], @@ -17986,7 +17995,7 @@ "value": "sa 65006162" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412087, "publicationStatement": [ "Kalakātā, Sāhitya [1965]" ], @@ -18170,7 +18179,7 @@ "value": "sa 64006442" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413978, "publicationStatement": [ "Guwāhāṭī, Laẏārcha Buka Shṭala [1963]" ], @@ -18351,7 +18360,7 @@ "value": "sa 66006179" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "[Barapeṭā, 1964]" ], @@ -18540,7 +18549,7 @@ "value": "72218369" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413978, "publicationStatement": [ "Baghdād, Maktabat al-Andalus, 1971." ], @@ -18597,6 +18606,9 @@ "titleAlt": [ "Masraḥīyah al-ʻArabīyah fī al-ʻIrāq." ], + "tableOfContents": [ + "Juzʼ 1. al-Riwāyah al-ʻArabīyah fī al-Irāq.-- Juzʼ 2. al-Masraḥīyah al-ʻArabīyah fī al-ʻIrāq." + ], "items": [ { "owner": [ diff --git a/test/fixtures/query-643f7d6c3bb057753b9fab723e04ded3.json b/test/fixtures/query-643f7d6c3bb057753b9fab723e04ded3.json index b3592df4..2e2b5ec5 100644 --- a/test/fixtures/query-643f7d6c3bb057753b9fab723e04ded3.json +++ b/test/fixtures/query-643f7d6c3bb057753b9fab723e04ded3.json @@ -1,5 +1,5 @@ { - "took": 4, + "took": 9, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 15.153612, + "max_score": 15.222395, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b10001936", - "_score": 15.153612, + "_score": 15.222395, "_source": { "extent": [ "400 p. ;" diff --git a/test/fixtures/query-66b27e32722cf5036741f04bc8f8e402.json b/test/fixtures/query-66b27e32722cf5036741f04bc8f8e402.json new file mode 100644 index 00000000..3104dbb6 --- /dev/null +++ b/test/fixtures/query-66b27e32722cf5036741f04bc8f8e402.json @@ -0,0 +1,727 @@ +{ + "took": 19, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 12.759075, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 12.759075, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-7772fe8efc6cc7e1cb5363ef4b4ef5ae.json b/test/fixtures/query-7772fe8efc6cc7e1cb5363ef4b4ef5ae.json index 35db1847..873b9c9e 100644 --- a/test/fixtures/query-7772fe8efc6cc7e1cb5363ef4b4ef5ae.json +++ b/test/fixtures/query-7772fe8efc6cc7e1cb5363ef4b4ef5ae.json @@ -1,5 +1,5 @@ { - "took": 3, + "took": 8, "timed_out": false, "_shards": { "total": 3, @@ -8,13 +8,13 @@ }, "hits": { "total": 1, - "max_score": 15.2602415, + "max_score": 15.213127, "hits": [ { "_index": "resources-2018-04-09", "_type": "resource", "_id": "b10022950", - "_score": 15.2602415, + "_score": 15.213127, "_source": { "extent": [ "224 p. ;" diff --git a/test/fixtures/query-8328997324df063c8938d9a78e1b6443.json b/test/fixtures/query-8328997324df063c8938d9a78e1b6443.json new file mode 100644 index 00000000..f73d055e --- /dev/null +++ b/test/fixtures/query-8328997324df063c8938d9a78e1b6443.json @@ -0,0 +1,727 @@ +{ + "took": 12, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-854bbf7ac168227de293fdcca5e458d5.json b/test/fixtures/query-854bbf7ac168227de293fdcca5e458d5.json new file mode 100644 index 00000000..69291276 --- /dev/null +++ b/test/fixtures/query-854bbf7ac168227de293fdcca5e458d5.json @@ -0,0 +1,727 @@ +{ + "took": 5, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 13.589584, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 13.589584, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-98cc3c5e854e4508423d699ebbbdcf27.json b/test/fixtures/query-98cc3c5e854e4508423d699ebbbdcf27.json new file mode 100644 index 00000000..3123b2b6 --- /dev/null +++ b/test/fixtures/query-98cc3c5e854e4508423d699ebbbdcf27.json @@ -0,0 +1,727 @@ +{ + "took": 4, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 12.759075, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 12.759075, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-9af6f9337d19270c2e79c6262ddbc614.json b/test/fixtures/query-9af6f9337d19270c2e79c6262ddbc614.json index 0adc3395..40829ac7 100644 --- a/test/fixtures/query-9af6f9337d19270c2e79c6262ddbc614.json +++ b/test/fixtures/query-9af6f9337d19270c2e79c6262ddbc614.json @@ -1,5 +1,5 @@ { - "took": 126, + "took": 174, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 1155865, + "total": 1199066, "max_score": null, "hits": [ { @@ -87,7 +87,7 @@ "value": "86124252" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Tübingen : Stauffenburg, c1985." ], @@ -268,7 +268,7 @@ "value": "gb 89012970" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "London : Constable, 1989." ], @@ -435,7 +435,7 @@ "value": "10000126" } ], - "updatedAt": 1524680630648, + "updatedAt": 1536782413960, "publicationStatement": [ "Tirūvaṇṇāmalai : Śrī Ramaṇāśrama, 1974." ], @@ -623,7 +623,7 @@ "uniformTitle": [ "Aṣṭakapañcaka" ], - "updatedAt": 1524680631588, + "updatedAt": 1536782413006, "publicationStatement": [ "[S.l. : Go. Venkaṭarāmaśāstri], 1972." ], @@ -818,7 +818,7 @@ "uniformTitle": [ "Nālāyirat tivviyap pirapantam. Selections." ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413006, "publicationStatement": [ "Kaṭalūr : Nārāyaṇacāmi Nāyaṭu, 1975." ], @@ -1008,7 +1008,7 @@ "value": "74901467" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782412148, "publicationStatement": [ "Dillī, Rāmasnehī Sāhitya Śodha Saṃsthāna [1973]" ], @@ -1190,7 +1190,7 @@ "value": "73903633" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782412087, "publicationStatement": [ "Tirucci, Periyār Cuyamariyātaip Piracāra Niṟuvaṉa Veḷiyīṭu [1972]" ], @@ -1368,7 +1368,7 @@ "value": "10000203" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "Āgarā : Śivalāla Agravāla eṇḍa Kampanī, 1978." ], @@ -1556,7 +1556,7 @@ "value": "73902510" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413246, "publicationStatement": [ "Madras : [Thirumazhisaiars' Association, 1972]" ], @@ -1723,7 +1723,7 @@ "value": "10000292" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413006, "publicationStatement": [ "Tiruvannamalai : Sri Ramanasramam, 1980." ], @@ -1898,7 +1898,7 @@ "value": "sa 68013360" } ], - "updatedAt": 1524680636655, + "updatedAt": 1536782417144, "publicationStatement": [ "Bambaī, Khemarāja Śrīkṛshṇadāsa, 1963." ], @@ -2099,7 +2099,7 @@ "dateEndYear": [ 1962 ], - "updatedAt": 1524680631625, + "updatedAt": 1536782421934, "publicationStatement": [ "Tihrān, Bungāh-i Maṭbūʻātī-i ʻAṭāʼī, 1339 [1961 or 1962]" ], @@ -2287,7 +2287,7 @@ "value": "74214957" } ], - "updatedAt": 1524680632169, + "updatedAt": 1536782421720, "publicationStatement": [ "Tihrān, Muḥammad Rizā Lavāsānī, 1340 [1961]" ], @@ -2471,7 +2471,7 @@ "dateEndYear": [ 1880 ], - "updatedAt": 1524680632562, + "updatedAt": 1536782417070, "publicationStatement": [ "Ṭihrān : Mīrzā Ḥabīb Allāh, 1305 [1879 or 1880]" ], @@ -2640,7 +2640,7 @@ "value": "10000379" } ], - "updatedAt": 1524680635544, + "updatedAt": 1536782417070, "publicationStatement": [ "[Tihrān?] : Intishārāt-i Markazī, 1327 [1949]" ], @@ -2808,7 +2808,7 @@ "value": "74913252" } ], - "updatedAt": 1524680636655, + "updatedAt": 1536782417144, "publicationStatement": [ "Tiruccentūr, Cāstā Patippakam [1970]" ], @@ -2999,7 +2999,7 @@ "value": "73913694" } ], - "updatedAt": 1524680636602, + "updatedAt": 1536782422361, "publicationStatement": [ "Ceṉṉai, Araci Puk Ṭippō, 1970." ], @@ -3185,7 +3185,7 @@ "value": "74914694" } ], - "updatedAt": 1524680635482, + "updatedAt": 1536782416939, "publicationStatement": [ "[Kōvai, Acciṭṭōr Kāntitācaṉ Accakam, 1969]" ], @@ -3367,7 +3367,7 @@ "value": "75914516" } ], - "updatedAt": 1524680635544, + "updatedAt": 1536782423539, "publicationStatement": [ "Ceṉṉai : Cūppar Pavar Papḷikēṣaṉs, [1970]" ], @@ -3540,7 +3540,7 @@ "value": "74913567" } ], - "updatedAt": 1524680632562, + "updatedAt": 1536782417144, "publicationStatement": [ "Ceṉṉai, Araci Puk Ṭippō, 1969." ], @@ -3738,7 +3738,7 @@ "uniformTitle": [ "Aṅgatvanirukti" ], - "updatedAt": 1524680632508, + "updatedAt": 1536782417070, "publicationStatement": [ "Puṇyākhyapattane : Ānandāśramasaṃsthā, 1973." ], @@ -3927,7 +3927,7 @@ "dateEndYear": [ 1963 ], - "updatedAt": 1524680635482, + "updatedAt": 1536782423539, "publicationStatement": [ "[Tañcai, Caracuvatimāl] Nūlnilaiyak kaurava kāriyatarici S. Kōpālaiyaravarkaḷ, 1961-1963." ], @@ -4170,7 +4170,7 @@ "value": "73900921" } ], - "updatedAt": 1524680632508, + "updatedAt": 1536782417144, "publicationStatement": [ "Amrtasara, Sohanalāla Jainadharma Pracāraka Samiti; prāpti-sthāna: Pārśvanātha Vidyāśrama Śodha Saṃsthāna, Vārāṇasī [1972]" ], @@ -4375,7 +4375,7 @@ "dateEndYear": [ 1907 ], - "updatedAt": 1525296777495, + "updatedAt": 1536782431254, "publicationStatement": [ "[New York, AMS Press, 1973] 1907." ], @@ -4679,7 +4679,7 @@ "value": "75900847" } ], - "updatedAt": 1524680637687, + "updatedAt": 1536782425029, "publicationStatement": [ "Jayapura : Devanāgara Prakāśana, [1974]" ], @@ -4859,7 +4859,7 @@ "value": "75900873" } ], - "updatedAt": 1524680641623, + "updatedAt": 1536782428598, "publicationStatement": [ "Kalakattā : Hindī Vibhāga, Kalakattā Viśvavidyālaya ke lie Hindī Pustaka Ejensī, 1974." ], @@ -5047,7 +5047,7 @@ "value": "75900818" } ], - "updatedAt": 1524680641595, + "updatedAt": 1536782424418, "publicationStatement": [ "Lāḍnūṃ : Jaina Viśva Bhāratī Prakāśana, 1974." ], @@ -5232,7 +5232,7 @@ "uniformTitle": [ "Viṣṇusahasranāma." ], - "updatedAt": 1524680637687, + "updatedAt": 1536782425252, "publicationStatement": [ "Tirupparaitturai; Tapovanam Pub. House [1965]" ], @@ -5440,7 +5440,7 @@ "uniformTitle": [ "Upatēcarattiṉamālai" ], - "updatedAt": 1524680637743, + "updatedAt": 1536782428598, "publicationStatement": [ "[Kāñcīpuram, kiṭaikkumiṭam Krantamālā Āpīs] 1970." ], @@ -5633,7 +5633,7 @@ "dateEndYear": [ 1967 ], - "updatedAt": 1524680642501, + "updatedAt": 1536782425029, "publicationStatement": [ "Gorakhapura, Gītā Presa [1966 or 7]" ], @@ -5813,7 +5813,7 @@ "value": "72904732" } ], - "updatedAt": 1524680637743, + "updatedAt": 1536782428905, "publicationStatement": [ "[Putu Tilli, Es. Sukumār; kiṭaikkumiṭam Pāri Nilaiyam, Ceṉṉai, 1971]" ], @@ -6004,7 +6004,7 @@ "value": "76960922" } ], - "updatedAt": 1524680642501, + "updatedAt": 1536782425252, "publicationStatement": [ "[al-Qāhirah] al-Azhar, Majmaʻal-Buḥūth al-Islāmīyah, 1969." ], @@ -6182,7 +6182,7 @@ "value": "72901165" } ], - "updatedAt": 1524680647595, + "updatedAt": 1536782428002, "publicationStatement": [ "Kānapura, Granthama [1972]" ], diff --git a/test/fixtures/query-a704e149154fa0174991ff7020de0fe1.json b/test/fixtures/query-a704e149154fa0174991ff7020de0fe1.json new file mode 100644 index 00000000..f73d055e --- /dev/null +++ b/test/fixtures/query-a704e149154fa0174991ff7020de0fe1.json @@ -0,0 +1,727 @@ +{ + "took": 12, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-ac3517244ff44be3a0cafd4e641bd548.json b/test/fixtures/query-ac3517244ff44be3a0cafd4e641bd548.json new file mode 100644 index 00000000..8c3dc3aa --- /dev/null +++ b/test/fixtures/query-ac3517244ff44be3a0cafd4e641bd548.json @@ -0,0 +1,727 @@ +{ + "took": 5, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 12.759075, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 12.759075, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-b2e7d3ccce46a9d60738e024bffc785e.json b/test/fixtures/query-b2e7d3ccce46a9d60738e024bffc785e.json new file mode 100644 index 00000000..584470b4 --- /dev/null +++ b/test/fixtures/query-b2e7d3ccce46a9d60738e024bffc785e.json @@ -0,0 +1,727 @@ +{ + "took": 24, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 15.218108, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 15.218108, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-ef43cc74325ef4f09dbf3529e0552389.json b/test/fixtures/query-ef43cc74325ef4f09dbf3529e0552389.json new file mode 100644 index 00000000..bcb1ab52 --- /dev/null +++ b/test/fixtures/query-ef43cc74325ef4f09dbf3529e0552389.json @@ -0,0 +1,727 @@ +{ + "took": 20, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 12.759075, + "hits": [ + { + "_index": "resources-2018-04-05", + "_type": "resource", + "_id": "b12082323", + "_score": 12.759075, + "_source": { + "extent": [ + "1234, [1] p., x leaves : ill. ;", + "1234, [1] pages, x leaves : illustrations ;", + "Third description instance : More 3rd instance ;" + ], + "partOf": [ + "In: -- 773 0b" + ], + "note": [ + { + "noteType": "Note", + "label": "Ordinary note. -- 500", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "²³¹", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "¯¯¯\\⠀⠀⠀⠀⠀⠀⠀⠀/¯¯¯", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "⠀⠀⠀\\___( ツ )___/", + "type": "bf:Note" + }, + { + "noteType": "With", + "label": "Bound with note. -- 501", + "type": "bf:Note" + }, + { + "noteType": "Thesis", + "label": "Thesis -- (degree) note. -- 502", + "type": "bf:Note" + }, + { + "noteType": "Bibliography", + "label": "Includes bibliographical references (p. [1235]). -- 504", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Access -- 506 blank,any", + "type": "bf:Note" + }, + { + "noteType": "Access", + "label": "Restricted Access -- 506 1,any", + "type": "bf:Note" + }, + { + "noteType": "Scale", + "label": "Scale (graphic) -- 507", + "type": "bf:Note" + }, + { + "noteType": "Credits", + "label": "Credits (Creation/production credits note) -- 508", + "type": "bf:Note" + }, + { + "noteType": "Performer", + "label": "Cast --511 1b", + "type": "bf:Note" + }, + { + "noteType": "Type of Report", + "label": "Type of Report. -- 513", + "type": "bf:Note" + }, + { + "noteType": "Data Quality", + "label": "Data quality -- 514", + "type": "bf:Note" + }, + { + "noteType": "Numbering", + "label": "Completely irregular. -- 515", + "type": "bf:Note" + }, + { + "noteType": "File Type", + "label": "File type. -- 516", + "type": "bf:Note" + }, + { + "noteType": "Event", + "label": "Event. -- 518", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience: Rated for Catalogers and Metadata Junkies only -- 521", + "type": "bf:Note" + }, + { + "noteType": "Audience", + "label": "Audience (2): Test of 2nd 521 field.", + "type": "bf:Note" + }, + { + "noteType": "Coverage", + "label": "Coverage -- 522", + "type": "bf:Note" + }, + { + "noteType": "Cite As", + "label": "Cite as: The Mega-MARC test record. -- 524", + "type": "bf:Note" + }, + { + "noteType": "Supplement", + "label": "Supplement -- 525", + "type": "bf:Note" + }, + { + "noteType": "Study Program", + "label": "Study program -- 526 8b ", + "type": "bf:Note" + }, + { + "noteType": "Additional Formats", + "label": "Other test records available. -- 530", + "type": "bf:Note" + }, + { + "noteType": "Reproduction", + "label": "Microfilm.", + "type": "bf:Note" + }, + { + "noteType": "Original Location", + "label": "Original location in SASB -- 535", + "type": "bf:Note" + }, + { + "noteType": "Funding", + "label": "Funding -- 536", + "type": "bf:Note" + }, + { + "noteType": "System Details", + "label": "System Details -- 538", + "type": "bf:Note" + }, + { + "noteType": "Terms of Use", + "label": "Use as test record -- 540", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source display-- 5411b", + "type": "bf:Note" + }, + { + "noteType": "Source", + "label": "Source \\\\DO NOT DISPLAY\\\\ -- 541 bb $a", + "type": "bf:Note" + }, + { + "noteType": "Location of Other Archival Materials", + "label": "Location of Other Archival Materials -- 544", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 545", + "type": "bf:Note" + }, + { + "noteType": "Biography", + "label": "Biography -- 5451 Administrative history", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In English and non-roman scripts. -- 546", + "type": "bf:Note" + }, + { + "noteType": "Former Title", + "label": "Former title (complexity note) -- 547", + "type": "bf:Note" + }, + { + "noteType": "Issued By", + "label": "Issued by CCO -- 550", + "type": "bf:Note" + }, + { + "noteType": "Indexes/Finding Aids", + "label": "Indexes -- 555 bb", + "type": "bf:Note" + }, + { + "noteType": "Documentation", + "label": "Documentation (information about, note) -- 556", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance display --5611b", + "type": "bf:Note" + }, + { + "noteType": "Provenance", + "label": "Provenance \\\\DO NOT DISPLAY\\\\ -- 561 bb", + "type": "bf:Note" + }, + { + "noteType": "Copy/Version", + "label": "Copy/Version (identification note) -- 562", + "type": "bf:Note" + }, + { + "noteType": "Binding", + "label": "Binding -- 563", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Complemented by Linking entry: Bogus title -- 580", + "type": "bf:Note" + }, + { + "noteType": "Linking Entry", + "label": "Linking Entry (complexity note) -- 580", + "type": "bf:Note" + }, + { + "noteType": "Publications", + "label": "Publications (about described material note) -- 581", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action display --583 1b", + "type": "bf:Note" + }, + { + "noteType": "Processing Action", + "label": "Processing Action \\\\DO NOT DISPLAY\\\\ -- 583 bb", + "type": "bf:Note" + }, + { + "noteType": "Exhibitions", + "label": "Exhibitions -- 585", + "type": "bf:Note" + }, + { + "noteType": "Awards", + "label": "Awards -- 586", + "type": "bf:Note" + }, + { + "noteType": "Source of Description", + "label": "Latest issue consulted: 1900/1901. -- 588 1b", + "type": "bf:Note" + } + ], + "serialPublicationDates": [ + "Publication Date (unformated) -- 362 1b" + ], + "publisherLiteral": [ + "CopyCat pub. co. -- 260 bb,", + "Specious Publ. [prev.pub.-- 260.2b]," + ], + "description": [ + "This record was originally created as a test record in CATNYP. It was greatly expanded in ILS-STAFF to test the public display of various MARC fields. -- 520 (first)", + "Use this record to test CATALOG, OPAC, ENCORE, and BIBLIOCOMMONS display of MARC fields -- 520 (second)" + ], + "language": [ + { + "id": "lang:eng", + "label": "English" + } + ], + "createdYear": [ + 201 + ], + "dateEndString": [ + "2011" + ], + "type": [ + "nypl:Item" + ], + "parallelTitle": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "title": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, " + ], + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "creatorLiteral": [ + "BookOps. Cataloging. --110 2b ab.", + "Congress (13th : 2013 : LIC, Queens) -- 111 2b (ndc)", + "Gloger, Miriam." + ], + "createdString": [ + "201" + ], + "idLccn": [ + "LCCN -- 010", + "9790001138673", + "ISMN", + "Danacode", + "UPC", + "EAN" + ], + "idIssn": [ + "ISSN -- 022" + ], + "seriesStatement": [ + "440 Series ; v. number -- 440 b0", + "490 Series ; v. number -- 490 0b", + "Author, of series. CMA Test Records. -- 800 1b", + "CMA (Cat). CMA Test Records -- 810 2b " + ], + "contributorLiteral": [ + "Added entry (uncontrolled name) -- 7201", + "Bayer, Jeffrey,", + "Bayer, Jeffrey.", + "Conference added author. 711 2b", + "Cramer, Richard, 1948- ,", + "Cramer, Richard, 1948-.", + "New York Public Library Database Management Group. -- 710 2b" + ], + "dateStartYear": [ + 201 + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "Q-TAG (852 8b q tag. Staff call in bib.)" + }, + { + "type": "nypl:Bnumber", + "value": "12082323" + }, + { + "type": "bf:Isbn", + "value": "0123456789" + }, + { + "type": "bf:Isbn", + "value": "9780123456786 (qualifier)" + }, + { + "type": "bf:Isbn", + "value": "ISBN -- 020" + }, + { + "type": "bf:Issn", + "value": "ISSN -- 022" + }, + { + "type": "bf:Lccn", + "value": "LCCN -- 010" + }, + { + "type": "bf:Lccn", + "value": "9790001138673" + }, + { + "type": "bf:Lccn", + "value": "ISMN" + }, + { + "type": "bf:Lccn", + "value": "Danacode" + }, + { + "type": "bf:Lccn", + "value": "UPC" + }, + { + "type": "bf:Lccn", + "value": "EAN" + } + ], + "uniformTitle": [ + "Added title -- 730 0b", + "CMA Test Records -- 830 b0", + "T tagged 240 Uniform title -- t240" + ], + "formerTitle": [ + "Former title -- 247 00" + ], + "dateEndYear": [ + 2011 + ], + "updatedAt": 1537993028949, + "publicationStatement": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. : CopyCat pub. co. -- 260 bb, 2011.", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] : Specious Publ. [prev.pub.-- 260.2b], 2001. " + ], + "identifier": [ + "urn:bnum:12082323", + "urn:isbn:0123456789", + "urn:isbn:9780123456786 (qualifier)", + "urn:isbn:ISBN -- 020", + "urn:issn:ISSN -- 022", + "urn:lccn:LCCN -- 010", + "urn:lccn:9790001138673", + "urn:lccn:ISMN", + "urn:lccn:Danacode", + "urn:lccn:UPC", + "urn:lccn:EAN", + "Report number. -- 027", + "Publisher no. -- 028 02 ", + "Standard number (old RLIN, etc.) -- 035", + "Sudoc no. -- 086", + "GPO Item number. -- 074", + "ISBN -- 020 $z" + ], + "idIsbn": [ + "0123456789", + "9780123456786 (qualifier)", + "ISBN -- 020" + ], + "genreForm": [ + "Blank pages and looks – Someplace – 1990.", + "Genre heading.", + "testing a – testing b – testing c – testing v – testing x – testing y – testing z" + ], + "materialType": [ + { + "id": "resourcetypes:txt", + "label": "Text" + } + ], + "carrierType": [ + { + "id": "carriertypes:vd", + "label": "videodisc" + } + ], + "dateString": [ + "201" + ], + "mediaType": [ + { + "id": "mediatypes:v", + "label": "video" + } + ], + "subjectLiteral": [ + "Artist, Starving, 1900-1999 -- Autobiography. -- 600 10 with $d $v", + "Conference subject entry. -- 611 20", + "Corporate body subject. -- 610 20", + "Indexed term -- 653", + "Life is a common square. -- Criticism. -- 630 00 $l, $x", + "New York (N.Y.) -- 21st century -- Diaries. -- 651 b0 $y, $x", + "Secret Society of Catalogers -- Periodicals. -- 610 20 $v", + "Starving artist -- 600 00.", + "Stonecutters' Annual Picnic 1995 : Springfield) -- 611 20 $n, $d, $c", + "Textile industry testing datetesting -- 650 b0 $z, $x -- India -- History", + "Undiscovered country. -- 651 b0", + "Uniform title.", + "testing 4 testing a testing b testing c testing d testing e -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing b testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing c testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing d testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing 4 testing a testing e testing g -- testing v -- testing x -- testing y -- testing z", + "testing x as first subfield -- testing v as second subfield. -- 610 10 $x$v only." + ], + "titleDisplay": [ + "Life is a strange circle (updated 20180627) --245 10 $a, Test record --$k current April 19, 2013 --$f, Testing period --$g [Virtual-- 245 $h] (245-- $n) Titles, includes RDA specific fields -- 245 $p : Maintenance test record-- 245 $b, Version--$s / CMA division -- 245 $c." + ], + "uri": "b12082323", + "numItems": [ + 4 + ], + "numAvailable": [ + 1 + ], + "parallelTitleDisplay": [ + "‏כותר שאינו באותיות לטינית = зглавие руссий." + ], + "placeOfPublication": [ + "Copyright Date -- 264 b4 (RDA)", + "Distributor -- 264 b2 (RDA)", + "Earlier Copyright Date -- 264 24 (RDA)", + "Earlier Distributor -- 264 22 (RDA)", + "Earlier Manufacturer -- 264 23 (RDA)", + "Earlier Publisher -- 264 21 (RDA)", + "Latest Copyright Date -- 264 34 (RDA)", + "Latest Distributor -- 264 32 (RDA)", + "Latest Manufacturer -- 264 33 (RDA)", + "Latest Publisher -- 264 31 (RDA)", + "Long Island CIty, N.Y. :", + "Manufacturer -- 264 b3 (RDA)", + "Production -- 264 b0 (RDA) ", + "Publisher -- 264 b1 (RDA)", + "[s.l.] :" + ], + "titleAlt": [ + "246 1 blank", + "Abrev. title -- 210 ", + "Added title -- 740 0b", + "Added title page title 246 15", + "Caption title 246 16", + "Cover title 246 04", + "Cover title 246 14", + "Distinctive title 246 12", + "Key title -- 222 ", + "No type of title specified 246 3 blank", + "Other title 246 13", + "Parallel title 246 31", + "Parallel title \\\\DO NOT DISPLAY\\\\ -- 246 11", + "Portion of title \\\\DO NOT DISPLAY\\\\ -- 246 10", + "Portion of title 246 30", + "Running title 246 17", + "Spine title 246 18", + "T tagged 240 Uniform title -- t240", + "Zaglavie Russiĭi" + ], + "issuance": [ + { + "id": "urn:biblevel:m", + "label": "monograph/item" + } + ], + "supplementaryContent": [ + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-42-supplementary.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-4b-supplementary.com/" + }, + { + "label": "Contents", + "url": "http://www.ilibri.casalini.it/toc/07260245.pdf" + } + ], + "tableOfContents": [ + "Complete table of contents. -- 505 0b", + "1. Incomplete table of contents. -- First instance.-- 505 1b", + "2. Incomplete table of contents -- Second instance. 505 1b", + "3. Incomplete table of contents -- Third instance entered out of order. 505 1b", + "Title subfield $t and author subfield $r and miscellaneous subfield $g in enahnced contents field 505 10." + ], + "items": [ + { + "owner": [ + { + "id": "orgs:1103", + "label": "Dorot Jewish Division" + } + ], + "identifier": [ + "urn:barcode:44455533322211" + ], + "identifierV2": [ + { + "type": "bf:Barcode", + "value": "44455533322211" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "44455533322211" + ], + "requestable": [ + true + ], + "uri": "i36007311", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rcmf2", + "label": "Offsite" + } + ] + }, + { + "uri": "i30384917", + "shelfMark": [ + "Q-TAG (852 8b q tag. Staff call in bib.)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:101", + "label": "Book, circ" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1101", + "label": "General Research Division" + } + ], + "identifier": [ + "urn:barcode:33433089517993" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "TESTING C-TAG (item non-MARC)" + }, + { + "type": "bf:Barcode", + "value": "33433089517993" + } + ], + "idBarcode": [ + "33433089517993" + ], + "requestable": [ + false + ], + "uri": "i25575805", + "shelfMark": [ + "TESTING C-TAG (item non-MARC)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:2", + "label": "book non-circ" + } + ], + "status": [ + { + "id": "status:m", + "label": "Missing" + } + ], + "holdingLocation": [ + { + "id": "loc:mal82", + "label": "SASB M1 - General Research - Room 315" + } + ] + }, + { + "electronicLocator": [ + { + "label": "856 40", + "url": "http://blogs.nypl.org/rcramer/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-40-fulltext.com/" + }, + { + "label": null, + "url": "http://www.ThereIsNoLabelSubfieldInThis856-41-fulltext.com/" + }, + { + "label": "Yizkor Book (NYPL resource) 856 41", + "url": "http://yizkor.nypl.org/index.php?id=2936" + } + ], + "uri": "i12082323-e" + } + ], + "dimensions": [ + "26 cm +", + "26 cm. +", + "More 3rd instance -- 300 (3rd instance)" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/test/fixtures/query-efea84925b92f11ef7928588c95370d0.json b/test/fixtures/query-efea84925b92f11ef7928588c95370d0.json index fc4cfd53..8ad8b52b 100644 --- a/test/fixtures/query-efea84925b92f11ef7928588c95370d0.json +++ b/test/fixtures/query-efea84925b92f11ef7928588c95370d0.json @@ -1,5 +1,5 @@ { - "took": 15, + "took": 196, "timed_out": false, "_shards": { "total": 3, @@ -1305,7 +1305,7 @@ "dateEndYear": [ 9999 ], - "updatedAt": 1523472049598, + "updatedAt": 1532060621254, "publicationStatement": [ "Maisūru : Prasārāṅga, Maisūru Viśvavidyānilaya, 1974-" ], @@ -1403,7 +1403,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -2328,7 +2328,7 @@ "dateEndYear": [ 9999 ], - "updatedAt": 1525297028167, + "updatedAt": 1534160990363, "publicationStatement": [ "Maisūru, Maisūru Viśvevidyānilaya." ], @@ -2365,10 +2365,10 @@ ], "uri": "b10315622", "numItems": [ - 35 + 36 ], "numAvailable": [ - 35 + 36 ], "placeOfPublication": [ "Maisūru," @@ -4240,7 +4240,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -4295,7 +4295,62 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" + } + ], + "holdingLocation": [ + { + "id": "loc:rc2ma", + "label": "Offsite" + } + ] + }, + { + "owner": [ + { + "id": "orgs:1000", + "label": "Stephen A. Schwarzman Building" + } + ], + "identifier": [ + "urn:barcode:33433121642221" + ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "*OLA 76-1248 v. 91 no. 351 (2014)" + }, + { + "type": "bf:Barcode", + "value": "33433121642221" + } + ], + "accessMessage": [ + { + "id": "accessMessage:2", + "label": "Request in advance" + } + ], + "idBarcode": [ + "33433121642221" + ], + "requestable": [ + true + ], + "uri": "i36286477", + "shelfMark": [ + "*OLA 76-1248 v. 91 no. 351 (2014)" + ], + "catalogItemType": [ + { + "id": "catalogItemType:3", + "label": "serial" + } + ], + "status": [ + { + "id": "status:a", + "label": "Available" } ], "holdingLocation": [ @@ -7743,7 +7798,7 @@ "dateEndYear": [ 9999 ], - "updatedAt": 1525297472410, + "updatedAt": 1532061353993, "publicationStatement": [ "Bangalore, Guru Guha Gana Nilaya [1963-" ], @@ -7844,7 +7899,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -7954,7 +8009,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -9393,6 +9448,23 @@ "extent": [ "v." ], + "note": [ + { + "noteType": "Note", + "label": "Without music.", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "Includes biographical sketches of the composers.", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In Kannada.", + "type": "bf:Note" + } + ], "publisherLiteral": [ "Mejisṭik Pres" ], @@ -9420,15 +9492,36 @@ "createdString": [ "1962" ], + "idLccn": [ + "sa 64006360 /M" + ], "contributorLiteral": [ "Mañjunāthayya, K.." ], "dateStartYear": [ 1962 ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "JMK 82-18" + }, + { + "type": "nypl:Bnumber", + "value": "10848968" + }, + { + "type": "bf:Lccn", + "value": "sa 64006360 /M" + } + ], "dateEndYear": [ 9999 ], + "updatedAt": 1532061482775, + "publicationStatement": [ + "Uḍupi, Mejisṭik Pres [1962-" + ], "identifier": [ "urn:bnum:10848968", "urn:lccn:sa 64006360 /M" @@ -9455,7 +9548,7 @@ } ], "subjectLiteral": [ - "Composers -- India -- Karnataka -- Biography.", + "Composers -- Karnataka -- Biography.", "Songs, Kannada -- Texts." ], "titleDisplay": [ @@ -9491,12 +9584,25 @@ "identifier": [ "urn:barcode:33433071260776" ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "JMK 82-18 v. 1" + }, + { + "type": "bf:Barcode", + "value": "33433071260776" + } + ], "accessMessage": [ { "id": "accessMessage:2", "label": "Request in advance" } ], + "idBarcode": [ + "33433071260776" + ], "requestable": [ true ], @@ -9505,10 +9611,6 @@ "JMK 82-18 v. 1" ], "catalogItemType": [ - { - "id": "catalogItemType:2", - "label": "book non-circ" - }, { "id": "catalogItemType:2", "label": "book non-circ" @@ -9517,7 +9619,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -9537,12 +9639,25 @@ "identifier": [ "urn:barcode:33433071260552" ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "JMK 82-18 v. 2" + }, + { + "type": "bf:Barcode", + "value": "33433071260552" + } + ], "accessMessage": [ { "id": "accessMessage:2", "label": "Request in advance" } ], + "idBarcode": [ + "33433071260552" + ], "requestable": [ true ], @@ -9551,10 +9666,6 @@ "JMK 82-18 v. 2" ], "catalogItemType": [ - { - "id": "catalogItemType:2", - "label": "book non-circ" - }, { "id": "catalogItemType:2", "label": "book non-circ" @@ -9563,7 +9674,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -9994,6 +10105,23 @@ "extent": [ "v. ;" ], + "note": [ + { + "noteType": "Note", + "label": "Songs without music.", + "type": "bf:Note" + }, + { + "noteType": "Note", + "label": "Vol. 2 published in 1974.", + "type": "bf:Note" + }, + { + "noteType": "Language", + "label": "In Kannada.", + "type": "bf:Note" + } + ], "publisherLiteral": [ "Śrīpurandaradāsara Nānnūraneya Varṣada Utsava Maṇḍala," ], @@ -10029,9 +10157,23 @@ "dateStartYear": [ 1974 ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "JMK 84-11" + }, + { + "type": "nypl:Bnumber", + "value": "10893183" + } + ], "dateEndYear": [ 9999 ], + "updatedAt": 1532061457679, + "publicationStatement": [ + "Dhāravāḍa : Śrīpurandaradāsara Nānnūraneya Varṣada Utsava Maṇḍala, 1974-" + ], "identifier": [ "urn:bnum:10893183" ], @@ -10057,7 +10199,8 @@ } ], "subjectLiteral": [ - "Purandaradāsa, -- 1484-1564 -- Criticism and interpretation." + "Carnatic music.", + "Purandaradāsa, 1484-1564 -- Criticism and interpretation." ], "titleDisplay": [ "̄Srī Purandaradāsara sāhitya / sampādakaru Śrī Beṭagēri Krṣṇaśarma ; Śrī Beṅgēri Huccarāyaru." @@ -10078,6 +10221,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "2. Ārtabhāva." + ], "items": [ { "owner": [ @@ -10089,12 +10235,25 @@ "identifier": [ "urn:barcode:33433068805302" ], + "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "JMK 84-11 v. 2" + }, + { + "type": "bf:Barcode", + "value": "33433068805302" + } + ], "accessMessage": [ { "id": "accessMessage:2", "label": "Request in advance" } ], + "idBarcode": [ + "33433068805302" + ], "requestable": [ true ], @@ -10103,10 +10262,6 @@ "JMK 84-11 v. 2" ], "catalogItemType": [ - { - "id": "catalogItemType:2", - "label": "book non-circ" - }, { "id": "catalogItemType:2", "label": "book non-circ" @@ -10115,7 +10270,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ diff --git a/test/fixtures/query-f56822224f561b5ecf26cfc8b06fe39b.json b/test/fixtures/query-f56822224f561b5ecf26cfc8b06fe39b.json index 53df1e01..db2e45ab 100644 --- a/test/fixtures/query-f56822224f561b5ecf26cfc8b06fe39b.json +++ b/test/fixtures/query-f56822224f561b5ecf26cfc8b06fe39b.json @@ -1,5 +1,5 @@ { - "took": 190, + "took": 389, "timed_out": false, "_shards": { "total": 3, @@ -7,52 +7,52 @@ "failed": 0 }, "hits": { - "total": 27893, + "total": 28113, "max_score": 0, "hits": [] }, "aggregations": { "owner": { - "doc_count": 38757, + "doc_count": 39135, "_nested": { "doc_count_error_upper_bound": 5, - "sum_other_doc_count": 1959, + "sum_other_doc_count": 1977, "buckets": [ { "key": "orgs:1000||Stephen A. Schwarzman Building", - "doc_count": 11368 + "doc_count": 11393 }, { "key": "orgs:0002||Columbia University Libraries", - "doc_count": 5250 + "doc_count": 5297 }, { - "key": "orgs:1101||General Research Division", - "doc_count": 3762 + "key": "orgs:0003||Princeton University Library", + "doc_count": 3773 }, { - "key": "orgs:0003||Princeton University Library", - "doc_count": 3714 + "key": "orgs:1101||General Research Division", + "doc_count": 3691 }, { "key": "orgs:1002||New York Public Library for the Performing Arts, Dorothy and Lewis B. Cullman Center", - "doc_count": 1299 + "doc_count": 1292 }, { "key": "orgs:1105||Irma and Paul Milstein Division of United States History, Local History and Genealogy", - "doc_count": 1252 + "doc_count": 1074 }, { "key": "orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division", - "doc_count": 682 + "doc_count": 691 }, { "key": "orgs:1119||Billy Rose Theatre Division", - "doc_count": 513 + "doc_count": 565 }, { "key": "orgs:1125||Science, Industry and Business Library: General Collection ", - "doc_count": 472 + "doc_count": 404 }, { "key": "orgs:1110||The Miriam and Ira D. Wallach Division of Art, Prints and Photographs: Art & Architecture Collection", @@ -63,11 +63,11 @@ }, "contributorLiteral": { "doc_count_error_upper_bound": 17, - "sum_other_doc_count": 30371, + "sum_other_doc_count": 30807, "buckets": [ { "key": "OverDrive, Inc.", - "doc_count": 612 + "doc_count": 645 }, { "key": "Gale (Firm)", @@ -75,11 +75,11 @@ }, { "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP http://id.loc.gov/authorities/names/no2003086490", - "doc_count": 220 + "doc_count": 223 }, { "key": "Hamilton, Alexander, 1757-1804.", - "doc_count": 185 + "doc_count": 192 }, { "key": "Mechanics Hall (Worcester, Mass.)", @@ -87,19 +87,19 @@ }, { "key": "Madison, James, 1751-1836.", - "doc_count": 102 + "doc_count": 104 }, { - "key": "Alexander Hamilton Institute (U.S.)", - "doc_count": 96 + "key": "Bibliotheca (Firm)", + "doc_count": 97 }, { "key": "Jay, John, 1745-1829.", - "doc_count": 91 + "doc_count": 96 }, { - "key": "Bibliotheca (Firm)", - "doc_count": 89 + "key": "Alexander Hamilton Institute (U.S.)", + "doc_count": 95 }, { "key": "Worcester Dramatic Museum.", @@ -107,31 +107,31 @@ }, { "key": "Booz, Allen & Hamilton.", - "doc_count": 63 - }, - { - "key": "Geological Survey (U.S.)", - "doc_count": 52 + "doc_count": 62 }, { "key": "Philip Hamilton McMillan Memorial Publication Fund.", "doc_count": 51 }, + { + "key": "Geological Survey (U.S.)", + "doc_count": 50 + }, { "key": "Milton, John, 1608-1674.", "doc_count": 48 }, { - "key": "Harty, Hamilton, 1879-1941.", - "doc_count": 44 + "key": "Metropolitan Opera (New York, N.Y.)", + "doc_count": 45 }, { - "key": "Metropolitan Opera (New York, N.Y.)", - "doc_count": 44 + "key": "Harty, Hamilton, 1879-1941.", + "doc_count": 43 }, { "key": "New York Public Library for the Performing Arts. Billy Rose Theatre Division. Theatre on Film and Tape Archive.", - "doc_count": 41 + "doc_count": 42 }, { "key": "Wild Hawthorn Press. pbl", @@ -141,10 +141,6 @@ "key": "Hamilton, Chico, 1921-", "doc_count": 39 }, - { - "key": "Reynolds, Peter H. (Peter Hamilton), 1961-", - "doc_count": 38 - }, { "key": "Handel, George Frideric, 1685-1759.", "doc_count": 36 @@ -158,12 +154,12 @@ "doc_count": 35 }, { - "key": "Baker, John H. (John Hamilton)", + "key": "Barr, Alfred Hamilton, 1902-", "doc_count": 34 }, { - "key": "Barr, Alfred Hamilton, 1902-", - "doc_count": 34 + "key": "Baker, John H. (John Hamilton)", + "doc_count": 33 }, { "key": "American Antiquarian Society.", @@ -174,23 +170,27 @@ "doc_count": 31 }, { - "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "key": "Reynolds, Peter H. (Peter Hamilton), 1961-", "doc_count": 31 }, { - "key": "Long, John Hamilton.", + "key": "Geological Survey (U.S.), issuing body.", "doc_count": 30 }, { - "key": "Geological Survey (U.S.), issuing body.", - "doc_count": 27 + "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "doc_count": 30 }, { - "key": "Art Gallery of Hamilton (Ont.)", - "doc_count": 26 + "key": "Long, John Hamilton.", + "doc_count": 30 }, { "key": "Darley, Felix Octavius Carr, 1822-1888,", + "doc_count": 28 + }, + { + "key": "Art Gallery of Hamilton (Ont.)", "doc_count": 26 }, { @@ -203,7 +203,11 @@ }, { "key": "Hamilton, Charles V.", - "doc_count": 22 + "doc_count": 21 + }, + { + "key": "Levine, James, 1943-", + "doc_count": 21 }, { "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP", @@ -238,15 +242,15 @@ "doc_count": 19 }, { - "key": "Orr, Nathaniel,", + "key": "Kanopy (Firm)", "doc_count": 19 }, { - "key": "Hamilton, Ian, 1938-2001.", - "doc_count": 18 + "key": "Orr, Nathaniel,", + "doc_count": 19 }, { - "key": "Kanopy (Firm)", + "key": "Hamilton, Ian, 1938-2001.", "doc_count": 18 }, { @@ -258,12 +262,8 @@ "doc_count": 17 }, { - "key": "Gale Group.", - "doc_count": 16 - }, - { - "key": "Mozart, Wolfgang Amadeus, 1756-1791.", - "doc_count": 16 + "key": "Shakespeare, William, 1564-1616.", + "doc_count": 17 } ] }, @@ -273,23 +273,23 @@ "buckets": [ { "key": "resourcetypes:txt||Text", - "doc_count": 26018 + "doc_count": 26195 }, { "key": "resourcetypes:aud||Audio", - "doc_count": 810 + "doc_count": 829 }, { "key": "resourcetypes:mov||Moving image", - "doc_count": 356 + "doc_count": 360 }, { "key": "resourcetypes:car||Cartographic", - "doc_count": 237 + "doc_count": 239 }, { "key": "resourcetypes:not||Notated music", - "doc_count": 179 + "doc_count": 181 }, { "key": "resourcetypes:img||Still image", @@ -297,7 +297,7 @@ }, { "key": "resourcetypes:mix||Mixed material", - "doc_count": 117 + "doc_count": 124 }, { "key": "resourcetypes:mul||Multimedia", @@ -311,15 +311,15 @@ "buckets": [ { "key": "urn:biblevel:m||monograph/item", - "doc_count": 26957 + "doc_count": 27158 }, { "key": "urn:biblevel:s||serial", - "doc_count": 445 + "doc_count": 448 }, { "key": "urn:biblevel:c||collection", - "doc_count": 228 + "doc_count": 234 }, { "key": "urn:biblevel:b||serial component part", @@ -337,19 +337,19 @@ }, "publisher": { "doc_count_error_upper_bound": 24, - "sum_other_doc_count": 19669, + "sum_other_doc_count": 19835, "buckets": [ { "key": "H. Hamilton,", - "doc_count": 820 + "doc_count": 822 }, { "key": "Hamilton,", - "doc_count": 749 + "doc_count": 753 }, { "key": "Hamish Hamilton,", - "doc_count": 734 + "doc_count": 735 }, { "key": "s.n.,", @@ -357,19 +357,19 @@ }, { "key": "H. Hamilton", - "doc_count": 462 + "doc_count": 463 }, { - "key": "Simpkin, Marshall, Hamilton, Kent,", - "doc_count": 158 + "key": "Hamilton Books,", + "doc_count": 160 }, { - "key": "Hamilton Books,", - "doc_count": 157 + "key": "Simpkin, Marshall, Hamilton, Kent,", + "doc_count": 158 }, { "key": "Oxford University Press,", - "doc_count": 133 + "doc_count": 140 }, { "key": "Printed by Chas. Hamilton, Palladium Office, Worcester.,", @@ -385,7 +385,7 @@ }, { "key": "[s.n.],", - "doc_count": 92 + "doc_count": 96 }, { "key": "Press of C. Hamilton,", @@ -393,7 +393,7 @@ }, { "key": "Wiley,", - "doc_count": 85 + "doc_count": 84 }, { "key": "Simpkin, Marshall, Hamilton, Kent & Co.,", @@ -401,7 +401,7 @@ }, { "key": "Macmillan,", - "doc_count": 78 + "doc_count": 79 }, { "key": "Doubleday,", @@ -421,7 +421,7 @@ }, { "key": "[publisher not identified],", - "doc_count": 58 + "doc_count": 59 }, { "key": "Cambridge University Press,", @@ -439,6 +439,10 @@ "key": "C. Hamilton,", "doc_count": 53 }, + { + "key": "Ticknor and Fields,", + "doc_count": 53 + }, { "key": "Harper & Brothers,", "doc_count": 52 @@ -447,10 +451,6 @@ "key": "Hamish Hamilton", "doc_count": 51 }, - { - "key": "Ticknor and Fields,", - "doc_count": 51 - }, { "key": "Harvard University Press,", "doc_count": 50 @@ -469,30 +469,30 @@ }, { "key": "Random House,", - "doc_count": 42 + "doc_count": 43 }, { "key": "Yale University Press,", - "doc_count": 42 + "doc_count": 43 }, { - "key": "Charles Hamilton,", - "doc_count": 40 + "key": "Princeton University Press,", + "doc_count": 41 }, { - "key": "Princeton University Press,", - "doc_count": 39 + "key": "Charles Hamilton,", + "doc_count": 40 }, { "key": "printed for G. Hamilton and J. Balfour,", "doc_count": 38 }, { - "key": "Harper & brothers,", - "doc_count": 36 + "key": "Routledge,", + "doc_count": 37 }, { - "key": "Routledge,", + "key": "Harper & brothers,", "doc_count": 36 }, { @@ -515,6 +515,10 @@ "key": "McGraw-Hill,", "doc_count": 33 }, + { + "key": "Printed at the Journal office,", + "doc_count": 33 + }, { "key": "Dodd, Mead,", "doc_count": 32 @@ -525,19 +529,15 @@ }, { "key": "U.S. G.P.O.,", - "doc_count": 31 + "doc_count": 32 }, { - "key": "J. Hamilton,", + "key": "Columbia University Press,", "doc_count": 30 }, { - "key": "Simpkin, Marshall, Hamilton, Kent", - "doc_count": 29 - }, - { - "key": "C. Hamilton, printer.,", - "doc_count": 28 + "key": "J. Hamilton,", + "doc_count": 30 } ] }, @@ -547,27 +547,27 @@ "buckets": [ { "key": "lang:eng||English", - "doc_count": 26171 + "doc_count": 26365 }, { "key": "lang:fre||French", - "doc_count": 207 + "doc_count": 208 }, { "key": "lang:ger||German", - "doc_count": 166 + "doc_count": 169 }, { "key": "lang:lat||Latin", - "doc_count": 153 + "doc_count": 152 }, { "key": "lang:zxx||No linguistic content", - "doc_count": 153 + "doc_count": 151 }, { "key": "lang:spa||Spanish", - "doc_count": 122 + "doc_count": 127 }, { "key": "lang:por||Portuguese", @@ -575,7 +575,7 @@ }, { "key": "lang:ita||Italian", - "doc_count": 95 + "doc_count": 97 }, { "key": "lang:swe||Swedish", @@ -583,7 +583,7 @@ }, { "key": "lang:und||Undetermined", - "doc_count": 24 + "doc_count": 26 }, { "key": "lang:dut||Dutch", @@ -591,11 +591,11 @@ }, { "key": "lang:mul||Multiple languages", - "doc_count": 16 + "doc_count": 15 }, { "key": "lang:rus||Russian", - "doc_count": 11 + "doc_count": 12 }, { "key": "lang:nor||Norwegian", @@ -603,7 +603,7 @@ }, { "key": "lang:chi||Chinese", - "doc_count": 5 + "doc_count": 6 }, { "key": "lang:dan||Danish", @@ -661,6 +661,10 @@ "key": "lang:gre||Greek, Modern (1453- )", "doc_count": 2 }, + { + "key": "lang:hin||Hindi", + "doc_count": 2 + }, { "key": "lang:per||Persian", "doc_count": 2 @@ -713,10 +717,6 @@ "key": "lang:hau||Hausa", "doc_count": 1 }, - { - "key": "lang:hin||Hindi", - "doc_count": 1 - }, { "key": "lang:hrv||Croatian", "doc_count": 1 @@ -753,23 +753,23 @@ "buckets": [ { "key": "mediatypes:n||unmediated", - "doc_count": 21359 + "doc_count": 21506 }, { "key": "mediatypes:c||computer", - "doc_count": 4545 + "doc_count": 4609 }, { "key": "mediatypes:h||microform", - "doc_count": 1103 + "doc_count": 1107 }, { "key": "mediatypes:v||video", - "doc_count": 268 + "doc_count": 271 }, { "key": "mediatypes:undefined||unmediated", - "doc_count": 26 + "doc_count": 27 }, { "key": "mediatypes:s||audio", @@ -778,16 +778,24 @@ { "key": "mediatypes:z||unspecified", "doc_count": 2 + }, + { + "key": "mediatypes:undefined||computer", + "doc_count": 1 + }, + { + "key": "mediatypes:undefined||video", + "doc_count": 1 } ] }, "subjectLiteral": { "doc_count_error_upper_bound": 30, - "sum_other_doc_count": 57786, + "sum_other_doc_count": 59047, "buckets": [ { "key": "Hamilton, Alexander, 1757-1804.", - "doc_count": 450 + "doc_count": 457 }, { "key": "Theater programs.", @@ -795,7 +803,7 @@ }, { "key": "United States.", - "doc_count": 160 + "doc_count": 184 }, { "key": "Concert programs.", @@ -829,6 +837,10 @@ "key": "Music.", "doc_count": 98 }, + { + "key": "Man-woman relationships -- Fiction.", + "doc_count": 92 + }, { "key": "English fiction.", "doc_count": 89 @@ -837,10 +849,6 @@ "key": "Hamilton, Emma, Lady, 1765-1815.", "doc_count": 86 }, - { - "key": "Man-woman relationships -- Fiction.", - "doc_count": 86 - }, { "key": "Hamilton family.", "doc_count": 85 @@ -855,7 +863,7 @@ }, { "key": "Tariff -- United States.", - "doc_count": 77 + "doc_count": 78 }, { "key": "Jefferson, Thomas, 1743-1826.", @@ -863,22 +871,26 @@ }, { "key": "Operas.", - "doc_count": 66 + "doc_count": 67 + }, + { + "key": "United States -- Politics and government -- 1775-1783.", + "doc_count": 63 }, { "key": "Adams, John, 1735-1826.", "doc_count": 62 }, { - "key": "United States -- Politics and government -- 1775-1783.", + "key": "Constitutional law -- United States.", "doc_count": 62 }, { - "key": "Authors, English -- 20th century -- Biography.", - "doc_count": 60 + "key": "Benefit performances.", + "doc_count": 61 }, { - "key": "Benefit performances.", + "key": "Authors, English -- 20th century -- Biography.", "doc_count": 60 }, { @@ -889,13 +901,9 @@ "key": "United States -- Politics and government -- 1783-1809.", "doc_count": 60 }, - { - "key": "Constitutional law -- United States.", - "doc_count": 56 - }, { "key": "Theater -- New York.", - "doc_count": 56 + "doc_count": 57 }, { "key": "Great Britain -- Court and courtiers.", @@ -910,15 +918,15 @@ "doc_count": 52 }, { - "key": "Burr, Aaron, 1756-1836.", + "key": "Blake, Anita (Fictitious character) -- Fiction.", "doc_count": 50 }, { - "key": "English poetry.", - "doc_count": 49 + "key": "Burr, Aaron, 1756-1836.", + "doc_count": 50 }, { - "key": "Blake, Anita (Fictitious character) -- Fiction.", + "key": "Vampires -- Fiction.", "doc_count": 48 }, { @@ -933,10 +941,6 @@ "key": "African Americans -- Fiction.", "doc_count": 46 }, - { - "key": "Vampires -- Fiction.", - "doc_count": 46 - }, { "key": "Dance.", "doc_count": 45 @@ -946,11 +950,15 @@ "doc_count": 44 }, { - "key": "Nelson, Horatio Nelson, Viscount, 1758-1805.", + "key": "Washington, George, 1732-1799.", + "doc_count": 44 + }, + { + "key": "Economics.", "doc_count": 43 }, { - "key": "Washington, George, 1732-1799.", + "key": "Nelson, Horatio Nelson, Viscount, 1758-1805.", "doc_count": 43 }, { @@ -961,10 +969,6 @@ "key": "Concrete poetry.", "doc_count": 41 }, - { - "key": "Economics.", - "doc_count": 41 - }, { "key": "Hamilton County (Ohio) -- Genealogy.", "doc_count": 41 @@ -977,6 +981,10 @@ "key": "Hamilton, Peter.", "doc_count": 40 }, + { + "key": "English poetry.", + "doc_count": 39 + }, { "key": "Piano music.", "doc_count": 37 @@ -989,11 +997,11 @@ }, "creatorLiteral": { "doc_count_error_upper_bound": 22, - "sum_other_doc_count": 21459, + "sum_other_doc_count": 21582, "buckets": [ { "key": "Hamilton, Alexander, 1757-1804.", - "doc_count": 139 + "doc_count": 141 }, { "key": "Mabie, Hamilton Wright, 1846-1916.", @@ -1020,12 +1028,12 @@ "doc_count": 72 }, { - "key": "Child, Hamilton, 1836-", - "doc_count": 71 + "key": "Hamilton, Gail, 1833-1896.", + "doc_count": 72 }, { - "key": "Hamilton, Gail, 1833-1896.", - "doc_count": 70 + "key": "Child, Hamilton, 1836-", + "doc_count": 71 }, { "key": "Worcester Dramatic Museum.", @@ -1033,11 +1041,11 @@ }, { "key": "Hamilton, Iain, 1922-2000.", - "doc_count": 66 + "doc_count": 59 }, { "key": "Maxwell, W. H. (William Hamilton), 1792-1850.", - "doc_count": 55 + "doc_count": 56 }, { "key": "Handel, George Frideric, 1685-1759.", @@ -1047,6 +1055,10 @@ "key": "Hamilton, Anthony, Count, approximately 1646-1720.", "doc_count": 52 }, + { + "key": "United States. Department of the Treasury.", + "doc_count": 52 + }, { "key": "Lockhart, Robert Hamilton Bruce, 1887-1970.", "doc_count": 51 @@ -1083,10 +1095,6 @@ "key": "Hamilton, Cosmo, 1872?-1942.", "doc_count": 39 }, - { - "key": "United States. Department of the Treasury.", - "doc_count": 39 - }, { "key": "Booz, Allen & Hamilton.", "doc_count": 38 @@ -1123,6 +1131,10 @@ "key": "Hamilton, Peter F.", "doc_count": 34 }, + { + "key": "Hurd, D. Hamilton (Duane Hamilton)", + "doc_count": 34 + }, { "key": "Hartley, L. P. (Leslie Poles), 1895-1972.", "doc_count": 33 @@ -1176,8 +1188,8 @@ "doc_count": 28 }, { - "key": "Gibb, H. A. R. (Hamilton Alexander Rosskeen), 1895-1971.", - "doc_count": 28 + "key": "Dodge, Mary Abigail, 1833-1896.", + "doc_count": 26 }, { "key": "Hamilton, Alexander, 1739-1802.", @@ -1186,10 +1198,6 @@ { "key": "Hill, Hamilton Andrews, 1827-1895.", "doc_count": 26 - }, - { - "key": "Brogan, D. W. (Denis William), 1900-1974.", - "doc_count": 25 } ] } diff --git a/test/fixtures/query-fa23e5f24bef15f61c9c9afadc8e9c85.json b/test/fixtures/query-fa23e5f24bef15f61c9c9afadc8e9c85.json index 12ea8c96..0fba3920 100644 --- a/test/fixtures/query-fa23e5f24bef15f61c9c9afadc8e9c85.json +++ b/test/fixtures/query-fa23e5f24bef15f61c9c9afadc8e9c85.json @@ -1,5 +1,5 @@ { - "took": 303, + "took": 290, "timed_out": false, "_shards": { "total": 3, @@ -7,7 +7,7 @@ "failed": 0 }, "hits": { - "total": 1589615, + "total": 1603570, "max_score": null, "hits": [ { @@ -86,7 +86,7 @@ "value": "74915265" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413960, "publicationStatement": [ "Tirunelvēli, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1965." ], @@ -186,7 +186,7 @@ "status": [ { "id": "status:a", - "label": "Available " + "label": "Available" } ], "holdingLocation": [ @@ -281,7 +281,7 @@ "value": "75962707" } ], - "updatedAt": 1524680629678, + "updatedAt": 1536782413246, "publicationStatement": [ "al-Qāhirah, Lajnat al-Taʼlīf wa-al-Tarjamah wa-al-Nashr [1968]" ], @@ -463,7 +463,7 @@ "value": "72913998" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413978, "publicationStatement": [ "Ceṉṉai, Parimaḷam Patippakam [1969]" ], @@ -650,7 +650,7 @@ "value": "72913466" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Aṇṇāmalainakar, Aṇṇāmalaip Palkalaikkaḻakam, 1969." ], @@ -830,7 +830,7 @@ "value": "10000012" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Bayrūt : Dār al-Thaqāfah, 1970." ], @@ -1002,7 +1002,7 @@ "value": "10000014" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "Bayrūt : Muʼassasat al-Aʻlamī lil-Maṭbūʻāt, 1975." ], @@ -1184,7 +1184,7 @@ "value": "74913402" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Manṅkaḷa Nūlakam, 1959 [i.e. 1967]" ], @@ -1371,7 +1371,7 @@ "value": "78970449" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "Bayrūt : Dār al-Ṭalīʻah, 1975." ], @@ -1553,7 +1553,7 @@ "value": "74914844" } ], - "updatedAt": 1524680631625, + "updatedAt": 1536782412087, "publicationStatement": [ "[Aṇṇāmalainakar] Aṇṇāmalaip Palkalaik Kaḻakam, 1970." ], @@ -1610,6 +1610,9 @@ "titleAlt": [ "Tolkāppiyam nutaliyaporuḷ." ], + "tableOfContents": [ + "Tolkāppiyam.--Tolkāppiyam nutaliyaporuḷ." + ], "items": [ { "owner": [ @@ -1750,7 +1753,7 @@ "value": "73913714" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -1793,7 +1796,7 @@ 1 ], "numAvailable": [ - 1 + 0 ], "placeOfPublication": [ "Ceṉṉai," @@ -1838,7 +1841,7 @@ "33433061301564" ], "requestable": [ - true + false ], "uri": "i13783787", "shelfMark": [ @@ -1852,8 +1855,8 @@ ], "status": [ { - "id": "status:a", - "label": "Available " + "id": "status:t", + "label": "In transit" } ], "holdingLocation": [ @@ -1940,7 +1943,7 @@ "value": "79971032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "[Bayrūt] : Dār Ibn Khaldūn, 1976." ], @@ -2129,7 +2132,7 @@ "value": "76960987" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Dimashq : Wizārat al-Thaqāfah wa-al-Irshād al-Qawmī, 1975." ], @@ -2321,7 +2324,7 @@ "value": "75903689" } ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413910, "publicationStatement": [ "Udayapura : Rājasthāna Sāhitya Akādamī (Saṅgama), 1973." ], @@ -2525,7 +2528,7 @@ "uniformTitle": [ "Uṇādisūtra." ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413960, "publicationStatement": [ "Karanāla : Ra.Ba.Cau. Nārāyaṇasiṃha Dharmārtha Ṭrasṭa ; Bahālagaḍha, Harayāṇa : prāptisthānam, Rāmalāla Kapūra Ṭrasṭa, 1974." ], @@ -2705,7 +2708,7 @@ "value": "10000032" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413067, "publicationStatement": [ "Tihrān : Kitābfurūshī-i Khayyām, 1351 [1972]" ], @@ -2907,7 +2910,7 @@ "value": "74903273" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Varanasi : Prithivi Prakashan, 1974." ], @@ -3091,7 +3094,7 @@ "value": "75902755" } ], - "updatedAt": 1524680629722, + "updatedAt": 1536782413960, "publicationStatement": [ "[s.1. : s.n.], 1972" ], @@ -3269,7 +3272,7 @@ "value": "76900772" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413246, "publicationStatement": [ "Śimalā : Himācala Kalā-Saṃskrti-Bhāṣā Akādamī, 1975." ], @@ -3454,7 +3457,7 @@ "value": "78913375" } ], - "updatedAt": 1524680630717, + "updatedAt": 1536782413006, "publicationStatement": [ "Ceṉṉai, Tirunelvēlit Teṉṉintiya Caivacittānta Nūṟpatippuk Kaḻakam, 1970." ], @@ -3645,7 +3648,7 @@ "dateEndYear": [ 1972 ], - "updatedAt": 1524680631260, + "updatedAt": 1536782413960, "publicationStatement": [ "Prayāga, Devabhāṣā Prakāśana, Samvat 2028, i.e. 1971 or 2]" ], @@ -3837,7 +3840,7 @@ "value": "77901316" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "New Delhi : Ngawang Sopa, 1976." ], @@ -4034,7 +4037,7 @@ "value": "77900893" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "New Delhi : Trayang and Jamyang Samten, 1976." ], @@ -4225,7 +4228,7 @@ "value": "76901012" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413067, "publicationStatement": [ "Thimphu : Kunzang Topgey, 1976." ], @@ -4412,7 +4415,7 @@ "value": "76901747" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "New Delhi : Urgyan Dorje, 1976." ], @@ -4604,7 +4607,7 @@ "value": "76900205" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Gangtog : Sherab Gyaltshen Lama, 1976." ], @@ -4792,7 +4795,7 @@ "value": "77900734" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413960, "publicationStatement": [ "Bir, H.P. : Tsondu Senghe, 1976." ], @@ -4984,7 +4987,7 @@ "value": "76901741" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Darjeeling : Kargyud Sungrab Nyamso Khang, 1976." ], @@ -5179,7 +5182,7 @@ "value": "72908332" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412148, "publicationStatement": [ "Leh : S.W. Tashigangpa, 1972." ], @@ -5377,7 +5380,7 @@ "value": "70908872" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413067, "publicationStatement": [ "[New Delhi, 1969]" ], @@ -5575,7 +5578,7 @@ "uniformTitle": [ "Gnas-chuṅ chos spyod." ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413910, "publicationStatement": [ "Gangtok [Can be obtained from Tibet House, New Delhi] 1969." ], @@ -5770,7 +5773,7 @@ "value": "76240902" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413960, "publicationStatement": [ "Baghdād, Maṭbaʻat al-Maʻārif [1969]" ], @@ -5949,7 +5952,7 @@ "value": "sa 65007611" } ], - "updatedAt": 1524680631875, + "updatedAt": 1536782413246, "publicationStatement": [ "Meraṭha, Sāhitya Bhaṇḍāra, 1962." ], @@ -6121,7 +6124,7 @@ "value": "72932110" } ], - "updatedAt": 1525296775995, + "updatedAt": 1536782412087, "publicationStatement": [ "[Karācī, 1970]" ], @@ -6308,7 +6311,7 @@ "value": "sa 68007302" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413978, "publicationStatement": [ "Kōṭṭayaṃ, Vidyārtthimitṟaṃ Bukkuḍippō [1967]" ], @@ -6374,6 +6377,10 @@ "urn:barcode:33433004314914" ], "identifierV2": [ + { + "type": "bf:ShelfMark", + "value": "*OLD 82-2140" + }, { "type": "bf:Barcode", "value": "33433004314914" @@ -6479,7 +6486,7 @@ "value": "10000072" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "Tihrān : Intishārāt-i Āgāh, 2536 [1977]" ], @@ -6677,7 +6684,7 @@ "dateEndYear": [ 1975 ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412087, "publicationStatement": [ "Miṣr, Dār al-Maʻārif, 1971-1974 i.e. 1975." ], @@ -6728,6 +6735,9 @@ "label": "monograph/item" } ], + "tableOfContents": [ + "Juzʼ 1. Qāfiyat al-Hamzah-qāfiyat al-Dhāl. -- Juzʼ 2. Qāfiyat al-Rāʼ - qāfiyat al-Kāf. -- Juzʼ 3. Qāfiyat al-Lām - qāfiyat al-Mīm. -- Juzʼ 4. Qāfiyat al-Nūn-qā fiyat al-yāʼ." + ], "items": [ { "owner": [ @@ -7005,7 +7015,7 @@ "value": "78932499" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412087, "publicationStatement": [ "Lāhaur, Maktab-i Urdū Ḍaʼjist [1969]" ], @@ -7194,7 +7204,7 @@ "value": "sa 67003708" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "Dillī] Rājakamala Prakāśana [1966]" ], @@ -7374,7 +7384,7 @@ "value": "76932355" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413246, "publicationStatement": [ "Lāhaur, Maktab-i Mīrī Laʼibrīrī [1969]" ], @@ -7578,7 +7588,7 @@ "value": "sa 66001274" } ], - "updatedAt": 1524680630893, + "updatedAt": 1536782413067, "publicationStatement": [ "Dillī, Hindī-Anusandhāna-Parishad, Dillī Viśvavidyālaya ke nimitta Vāsudeva Prakāśana dvārā prakāśita [1965]" ], @@ -7773,7 +7783,7 @@ "value": "sa 68005298" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413910, "publicationStatement": [ "Jālandhara, Hindī Bhavana, 1964." ], @@ -7952,7 +7962,7 @@ "value": "sa 67003777" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413978, "publicationStatement": [ "Ilāhābāda, Iṇḍiyāna Presa (Pablikeśansa) [1965]" ], @@ -8135,7 +8145,7 @@ "value": "79903322" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413006, "publicationStatement": [ "Kalikātā, Beṅgala Pābaliśārsa [1967]" ], @@ -8325,7 +8335,7 @@ "uniformTitle": [ "Contributions to the anthropology of Iran. Persian" ], - "updatedAt": 1525296775995, + "updatedAt": 1536782413246, "publicationStatement": [ "Tihrān : Intishārāt-i Ibn Sīnā, 1343 [1965]" ], @@ -8507,7 +8517,7 @@ "value": "74902781" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782413910, "publicationStatement": [ "Pacumpoṉ, Irāmanātapuram Māvaṭṭam, Civāṉantā Cittaneṟip Payiṟcik Kaḻkamm; inn̄ūl kiṭaikkum iṭam: S. Caṅkaraṉār, Ceṉṉai, 1974." ], @@ -8714,7 +8724,7 @@ "uniformTitle": [ "Textes et traductions d'auteurs orientaux ; t. 7." ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412148, "publicationStatement": [ "al-Qāhirah : al-Maʻhad al-ʻIlmī al-Faransī lil-Āthār al-Sharqīyah, 1974." ], @@ -8901,7 +8911,7 @@ "value": "75960362" } ], - "updatedAt": 1525357960759, + "updatedAt": 1536782413067, "publicationStatement": [ "al-Jazāʼir : al-Sharikah al-Waṭanīyah lil-Nashr wa-al-Tawzīʻ, 1974." ], @@ -9086,7 +9096,7 @@ "value": "75960190" } ], - "updatedAt": 1525296775911, + "updatedAt": 1536782412148, "publicationStatement": [ "al-Kuwayt : Wakālat al-Maṭbūʻāt, 1973." ], @@ -9275,7 +9285,7 @@ "value": "75960565" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782412148, "publicationStatement": [ "[al-Qāhirah : s.n., al-muqaddimah 1975]" ], @@ -9460,7 +9470,7 @@ "value": "75960366" } ], - "updatedAt": 1525296776042, + "updatedAt": 1536782413246, "publicationStatement": [ "[al-Jazāʼir]: al-Sharikah al-Waṭanīyah lil-Nashr wa-al-Tawzīʻ, 1967." ], diff --git a/test/resources.test.js b/test/resources.test.js index cde8deaa..02685d2d 100644 --- a/test/resources.test.js +++ b/test/resources.test.js @@ -478,4 +478,59 @@ describe('Test Resources responses', function () { }) */ }) + + describe('search_scope=standard_number', function () { + var searchAllUrl = null + + before(() => { + searchAllUrl = `${global.TEST_BASE_URL}/api/v0.1/discovery/resources?search_scope=standard_number&q=` + }) + + it('empty search returns status code 200', function (done) { + request.get(searchAllUrl, function (err, response, body) { + if (err) throw err + + assert.equal(200, response.statusCode) + + done() + }) + }) + + ; [ + 'b12082323', + '"Q-TAG (852 8b q tag. Staff call in bib.)"', // Should match `identifierV2[@type=bf:ShelfMark].value` + '12082323', // Should match `identifierV2[@type=nypl:Bnumber].value` + 'Danacode', // Should match `identifierV2[@type=bf:Lccn].value` + '0123456789', // Should match `identifierV2[@type=bf:Isbn].value` + '"ISSN -- 022"', // Should match `identifierV2[@type=bf:Issn].value` + '"LCCN -- 010"', // Should match `identifierV2[@type=bf:Lccn].value` + '"ISBN -- 020 $z"', + // Following should match untyped identifiers in `identifier` + '"GPO Item number. -- 074"', + '"Sudoc no. -- 086"', + '"Standard number (old RLIN, etc.) -- 035"', + '"Publisher no. -- 028 02 "', + '"Report number. -- 027"', + '"ISBN -- 020"', + '44455533322211' + ].forEach((num) => { + it(`should match b12082323 by "Standard Numbers": "${num}"`, function (done) { + request.get(searchAllUrl + num, function (err, response, body) { + if (err) throw err + + assert.equal(200, response.statusCode) + + const results = JSON.parse(body) + expect(results.totalResults).to.equal(1) + expect(results.itemListElement).to.be.a('array') + expect(results.itemListElement[0]).to.be.a('object') + expect(results.itemListElement[0].result).to.be.a('object') + expect(results.itemListElement[0].result['@type']).to.include('nypl:Item') + expect(results.itemListElement[0].result['@id']).to.equal('res:b12082323') + + done() + }) + }) + }) + }) }) From 004d3255e829f45315db0e1abf2ad95aebc3f7a5 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 1 Oct 2018 17:26:19 -0400 Subject: [PATCH 3/7] Remove urn style identity formatting Retiring urn: prefix identify formatting in favor of full entity serialization so that we can include other properties like identifierStatus. Also adds a general rule to convert `value` to `@value` in entities. --- lib/jsonld_serializers.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/jsonld_serializers.js b/lib/jsonld_serializers.js index e9bffb58..74707e46 100644 --- a/lib/jsonld_serializers.js +++ b/lib/jsonld_serializers.js @@ -75,20 +75,18 @@ class JsonLdItemSerializer extends JsonLdSerializer { if (Array.isArray(v)) return v.map(formatVal) else if (v && typeof v === 'object') { var formatted = v - // Reassign id to @id - if (formatted.id) { - formatted = Object.assign({ '@id': v.id }, formatted) - delete formatted.id - } + // Reassign id to @id, type to @type, value to @value + ; ['id', 'type', 'value'].forEach((specialProp) => { + if (formatted[specialProp]) { + formatted[`@${specialProp}`] = formatted[specialProp] + delete formatted[specialProp] + } + }) // TODO need to correct this in the indexer, not here if (formatted.label) { formatted.prefLabel = formatted.label delete formatted.label } - if (formatted.type) { - formatted['@type'] = formatted.type - delete formatted.type - } return formatted } else return v } @@ -219,8 +217,6 @@ class ResourceSerializer extends JsonLdItemSerializer { statements () { var stmts = JsonLdItemSerializer.prototype.statements.call(this) - stmts.identifier = stmts.identifier.map(this._ensureIdentifierIsUrnStyle) - if (this.body.parentUri) stmts.memberOf = R.flatten([util.eachValue(this.body.parentUri, (id) => ({ '@type': 'nypl:Resource', '@id': `res:${id}` }))]) // Parse all contributor_(aut|ill|...) statements: @@ -284,8 +280,6 @@ class ItemResourceSerializer extends JsonLdItemSerializer { statements () { var stmts = JsonLdItemSerializer.prototype.statements.call(this) - stmts.identifier = stmts.identifier.map(this._ensureIdentifierIsUrnStyle) - if (stmts.identifier) { // Add idNyplSourceId convenience property by parsing identifiers that match urn:[source]:[id] this.body.identifier From c30a79096e80433781840d3ee65360facefa9091 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 1 Oct 2018 17:42:00 -0400 Subject: [PATCH 4/7] Change default identifier serialization to entity --- test/resources.test.js | 46 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/test/resources.test.js b/test/resources.test.js index 02685d2d..c64b0a77 100644 --- a/test/resources.test.js +++ b/test/resources.test.js @@ -156,7 +156,7 @@ describe('Test Resources responses', function () { }) }) - it('extracts identifiers in urn style if indexed as entity', function (done) { + it('extracts identifiers in ENTITY style if indexed as entity', function (done) { request.get(`${global.TEST_BASE_URL}/api/v0.1/discovery/resources/b10011374`, function (err, response, body) { if (err) throw err @@ -168,14 +168,39 @@ describe('Test Resources responses', function () { // so it will choose the latter (which are stored as entities) // Here we confirm the entities are converted to urn: expect(doc.identifier).to.be.a('array') - expect(doc.identifier).to.include.members(['urn:bnum:10011374', 'urn:lccn:35038534']) + + // Check bnum: + const bnum = doc.identifier + .filter((ent) => ent['@type'] === 'nypl:Bnumber') + .pop() + expect(bnum).to.be.a('object') + expect(bnum['@value']).to.equal('10011374') + + // Check lccn: + const lccn = doc.identifier + .filter((ent) => ent['@type'] === 'bf:Lccn') + .pop() + expect(lccn).to.be.a('object') + expect(lccn['@value']).to.equal('35038534') // Also check an item's identifiers: expect(doc.items).to.be.a('array') expect(doc.items[0]).to.be.a('object') expect(doc.items[0].identifier).to.be.a('array') - expect(doc.items[0].identifier).to.include.members(['urn:callnumber:*AY (Hone, W. Table book) v. 1', 'urn:barcode:33433067332548']) + // Check item callnum: + const callnum = doc.items[0].identifier + .filter((ent) => ent['@type'] === 'bf:ShelfMark') + .pop() + expect(callnum).to.be.a('object') + expect(callnum['@value']).to.equal('*AY (Hone, W. Table book) v. 1') + + // Check item barcode: + const barcode = doc.items[0].identifier + .filter((ent) => ent['@type'] === 'bf:Barcode') + .pop() + expect(barcode).to.be.a('object') + expect(barcode['@value']).to.equal('33433067332548') done() }) @@ -190,7 +215,20 @@ describe('Test Resources responses', function () { var doc = JSON.parse(body) expect(doc.identifier).to.be.a('array') - expect(doc.identifier).to.include.members(['urn:bnum:10022950', 'urn:callnumber:*PGZ 81-1452']) + + // Check bnum: + const bnum = doc.identifier + .filter((ent) => ent['@type'] === 'nypl:Bnumber') + .pop() + expect(bnum).to.be.a('object') + expect(bnum['@value']).to.equal('10022950') + + // Check item callnum: + const callnum = doc.items[0].identifier + .filter((ent) => ent['@type'] === 'bf:ShelfMark') + .pop() + expect(callnum).to.be.a('object') + expect(callnum['@value']).to.equal('*PGZ 81-1452') done() }) From 46878fd1086b5d85ec767589fbf2a092fd90b5b2 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Wed, 3 Oct 2018 00:15:16 -0400 Subject: [PATCH 5/7] Add identifierStatus to context json --- data/contexts/resource.json | 1 + 1 file changed, 1 insertion(+) diff --git a/data/contexts/resource.json b/data/contexts/resource.json index 6dd60cbf..b05aff0b 100644 --- a/data/contexts/resource.json +++ b/data/contexts/resource.json @@ -36,6 +36,7 @@ "idBarcode": "dcterms:identifier", "idBnum": "dcterms:identifier", "identifier": "dcterms:identifier", + "identifierStatus": "bf:identifierStatus", "idCallnum": "dcterms:identifier", "idCatnyp": "dcterms:identifier", "idDcc": "dcterms:identifier", From 8aa4507087e7282dde17f8bc55ed78276e62c652 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 15 Oct 2018 14:59:10 -0400 Subject: [PATCH 6/7] Refactor resources ES query generation for clarity --- lib/resources.js | 174 ++++++++++++++++++++++++++++++----------------- 1 file changed, 110 insertions(+), 64 deletions(-) diff --git a/lib/resources.js b/lib/resources.js index 28094151..8a302fb0 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -488,68 +488,80 @@ const escapeQuery = function (str) { } /** - * Given GET params, returns a plainobject suitable for use in a ES query. + * For a set of parsed request params, returns a plainobject representing the + * keyword aspects of the ES query. + * + * @param {object} params - A hash of request params including `search_scope`, `q` + * + * @return {object} ES query object suitable to be POST'd to ES endpoint */ -const buildElasticQuery = function (params) { +const buildElasticQueryForKeywords = function (params) { // Fill these with our top-level clauses: - var shoulds = [] - - // clean up params - ;['q'].forEach(function (param) { - if (params[param]) { - params[param] = params[param].replace(/date:/g, 'dateStartYear:') - params[param] = params[param].replace(/location:/g, 'locations:') - params[param] = params[param].replace(/subject:/g, 'subjectLiteral:') + const should = [] + + // We have an array of fields to match. + // Seperate the root-level fields from nested fields by building an object like this: + // { + // _root: [ 'fieldName1', 'fieldName2' ], + // nestedName1: { 'nestedName1.nestedProperty1', 'nestedName1.nestedProperty2' } + // } + const fieldMap = SEARCH_SCOPES[params.search_scope].fields.reduce((map, fieldName) => { + // Most fields will be matched at root level: + let nestedName = '_root' + // Any field starting with the following is a nested field: + if (['items'].indexOf(fieldName.split('.').shift()) >= 0) { + nestedName = fieldName.split('.').shift() + } + if (!map[nestedName]) map[nestedName] = [] + map[nestedName].push(fieldName) + return map + }, { _root: [] }) + + should.push({ + 'query_string': { + 'fields': fieldMap._root, + 'query': escapeQuery(params.q), + 'default_operator': 'AND' } }) - if (params.q) { - // We have an array of fields to match. - // Seperate the root-level fields from nested fields by building an object like this: - // { - // _root: [ 'fieldName1', 'fieldName2' ], - // nestedName1: { 'nestedName1.nestedProperty1', 'nestedName1.nestedProperty2' } - // } - const fieldMap = SEARCH_SCOPES[params.search_scope].fields.reduce((map, fieldName) => { - // Most fields will be matched at root level: - let nestedName = '_root' - // Any field starting with the following is a nested field: - if (['items'].indexOf(fieldName.split('.').shift()) >= 0) { - nestedName = fieldName.split('.').shift() - } - if (!map[nestedName]) map[nestedName] = [] - map[nestedName].push(fieldName) - return map - }, { _root: [] }) - - shoulds.push({ - 'query_string': { - 'fields': fieldMap._root, - 'query': escapeQuery(params.q), - 'default_operator': 'AND' - } - }) - - // Add nested queries (if any) to things that *should* match: - Object.keys(fieldMap) - .filter((nestedName) => nestedName !== '_root') - .forEach((nestedName) => { - shoulds.push({ - nested: { - path: nestedName, - query: { - query_string: { - fields: fieldMap[nestedName], - query: escapeQuery(params.q), - default_operator: 'AND' - } + // Add nested queries (if any) to things that *should* match: + Object.keys(fieldMap) + .filter((nestedName) => nestedName !== '_root') + .forEach((nestedName) => { + should.push({ + nested: { + path: nestedName, + query: { + query_string: { + fields: fieldMap[nestedName], + query: escapeQuery(params.q), + default_operator: 'AND' } } - }) + } }) + }) + + const query = {} + if (should.length > 0) { + query.bool = { should } } + return query +} + +/** + * For a set of parsed request params, returns a plainobject representing the + * filter aspects of the ES query. + * + * @param {object} params - A hash of request params including `filters` + * + * @return {object} ES query object suitable to be POST'd to ES endpoint + */ +const buildElasticQueryForFilters = function (params) { var filterClausesWithPaths = [] + if (params.filters) { filterClausesWithPaths = Object.keys(params.filters).map((prop) => { var config = FILTER_CONFIG[prop] @@ -580,26 +592,19 @@ const buildElasticQuery = function (params) { }) } - // Build ES query: - var query = {} - // Gather root (not nested) filters: let rootFilterClauses = filterClausesWithPaths .filter((clauseWithPath) => !clauseWithPath.path) .map((clauseWithPath) => clauseWithPath.clause) - if (shoulds.length + rootFilterClauses.length > 0) { - query.bool = {} - } - if (shoulds.length > 0) { - query.bool.should = shoulds - } + const query = {} // Add nested filters: - filterClausesWithPaths.filter((clauseWithPath) => clauseWithPath.path) + filterClausesWithPaths + // Nested filters have a `path` property: + .filter((clauseWithPath) => clauseWithPath.path) .forEach((clauseWithPath) => { - if (!query.nested) query.nested = {} - + // TODO: Note we seem to lack support for applying multiple nested filters query.nested = { path: clauseWithPath.path, query: { @@ -611,7 +616,48 @@ const buildElasticQuery = function (params) { }) if (rootFilterClauses.length > 0) { - query.bool.filter = rootFilterClauses + query.bool = { filter: rootFilterClauses } + } + + return query +} + +/** + * Given GET params, returns a plainobject suitable for use in a ES query. + * + * @param {object} params - A hash of request params including `filters`, + * `search_scope`, `q` + * + * @return {object} ES query object suitable to be POST'd to ES endpoint + */ +const buildElasticQuery = function (params) { + // Build ES query: + var query = {} + + // clean up params + ;['q'].forEach(function (param) { + if (params[param]) { + params[param] = params[param].replace(/date:/g, 'dateStartYear:') + params[param] = params[param].replace(/location:/g, 'locations:') + params[param] = params[param].replace(/subject:/g, 'subjectLiteral:') + } + }) + + if (params.q) { + // Merge keyword-specific ES query into the query we're building: + query.bool = buildElasticQueryForKeywords(params).bool + } + + if (params.filters) { + // Merge filter-specific ES query into the query we're building: + const filterQuery = buildElasticQueryForFilters(params) + if (filterQuery.bool) { + if (!query.bool) query.bool = {} + query.bool.filter = filterQuery.bool.filter + } + if (filterQuery.nested) { + query.nested = filterQuery.nested + } } return query From 7a0fc9fa982b80a831814f29a2a46bfb3f8d2b1f Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Mon, 15 Oct 2018 15:30:07 -0400 Subject: [PATCH 7/7] Add missing test fixtures --- ...code-42ac64ef187a4769815c780cc78164b6.json | 772 ++++++++++++++++++ ...code-a0fef1a8f20e3cae8eb978712db55855.json | 12 + 2 files changed, 784 insertions(+) create mode 100644 test/fixtures/scsb-by-barcode-42ac64ef187a4769815c780cc78164b6.json create mode 100644 test/fixtures/scsb-by-barcode-a0fef1a8f20e3cae8eb978712db55855.json diff --git a/test/fixtures/scsb-by-barcode-42ac64ef187a4769815c780cc78164b6.json b/test/fixtures/scsb-by-barcode-42ac64ef187a4769815c780cc78164b6.json new file mode 100644 index 00000000..46a51224 --- /dev/null +++ b/test/fixtures/scsb-by-barcode-42ac64ef187a4769815c780cc78164b6.json @@ -0,0 +1,772 @@ +[ + { + "itemBarcode": "33433057523718", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433001707623", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013119130", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005544238", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005544246", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068848849", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433012999656", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999664", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013000082", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068817299", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013128149", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013128156", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013128164", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058620984", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126648", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126325", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433001543184", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575934", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575942", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575959", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575975", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575967", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575983", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575991", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576007", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576015", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576023", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576031", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576049", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576411", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576429", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576437", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576445", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576452", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576494", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576486", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576460", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576478", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576528", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576502", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576510", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433111366286", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575900", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014575918", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433015942182", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013574946", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433074631197", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433085541104", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433085539777", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433117980106", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433117979967", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433121642221", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433057842191", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842209", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842217", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842225", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842233", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842241", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842258", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842266", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842274", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842282", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433069710790", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433069710808", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433005546589", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546597", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546605", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546613", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546621", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546639", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546647", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546415", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005546423", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433057842290", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545185", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545193", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545201", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005544733", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005544741", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005544758", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545128", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545136", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545144", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545151", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545169", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433005545177", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433014576221", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013118744", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013118751", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013118769", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013122498", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013122274", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013122282", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013122290", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068812019", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068812027", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068812035", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013124239", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013117753", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126176", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126093", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126085", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013123785", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013123777", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013126036", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013119056", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433071260776", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433071260552", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433061320531", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997635", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997627", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997643", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433068805302", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997601", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012996918", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998187", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998195", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998203", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998468", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998450", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998286", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997973", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997981", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012997999", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012998641", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618830", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618764", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618822", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618772", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618806", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618749", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618780", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618731", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618814", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058618798", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999102", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999292", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999284", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999318", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999300", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433060421959", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433060421967", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433012998591", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013120096", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013120682", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013000033", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013000041", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433013000074", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999722", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433058548516", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433012999938", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999946", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999961", + "itemAvailabilityStatus": "Available", + "errorMessage": null + }, + { + "itemBarcode": "33433012999953", + "itemAvailabilityStatus": "Available", + "errorMessage": null + } +] \ No newline at end of file diff --git a/test/fixtures/scsb-by-barcode-a0fef1a8f20e3cae8eb978712db55855.json b/test/fixtures/scsb-by-barcode-a0fef1a8f20e3cae8eb978712db55855.json new file mode 100644 index 00000000..aae4bc8d --- /dev/null +++ b/test/fixtures/scsb-by-barcode-a0fef1a8f20e3cae8eb978712db55855.json @@ -0,0 +1,12 @@ +[ + { + "itemBarcode": "44455533322211", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + }, + { + "itemBarcode": "33433089517993", + "itemAvailabilityStatus": "Item Barcode doesn't exist in SCSB database.", + "errorMessage": null + } +] \ No newline at end of file