{ "translatorID": "b28d0d42-8549-4c6d-83fc-8382874a5cb9", "translatorType": 8, "label": "DOI Content Negotiation", "creator": "Sebastian Karcher", "target": null, "minVersion": "5.0", "maxVersion": null, "priority": 100, "inRepository": true, "lastUpdated": "2024-05-17 20:25:00" } /* ***** BEGIN LICENSE BLOCK ***** Copyright © 2019 Sebastian Karcher This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Zotero is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Zotero. If not, see . ***** END LICENSE BLOCK ***** */ function detectSearch(items) { return (filterQuery(items).length > 0); } // return an array of DOIs from the query (items or text) function filterQuery(items) { if (!items) return []; if (typeof items == 'string' || !items.length) items = [items]; // filter out invalid queries var dois = [], doi; for (var i = 0, n = items.length; i < n; i++) { if (items[i].DOI && (doi = ZU.cleanDOI(items[i].DOI))) { dois.push(doi); } else if (typeof items[i] == 'string' && (doi = ZU.cleanDOI(items[i]))) { dois.push(doi); } } return dois; } async function doSearch(items) { for (let doi of filterQuery(items)) { await processDOI(doi); } } async function processDOI(doi) { let response = await requestText( `https://doi.org/${encodeURIComponent(doi)}`, { headers: { Accept: "application/vnd.datacite.datacite+json, application/vnd.crossref.unixref+xml, application/vnd.citationstyles.csl+json" } } ); // by content negotiation we asked for datacite or crossref format, or CSL JSON if (!response) return; Z.debug(response); let trans = Zotero.loadTranslator('import'); trans.setString(response); if (response.includes("Other\nLe code est accompagné de commentaires de F. A. Vogel, qui signe l'épitre dédicatoire

Other

\nReliure 18è siècle

Other

\nEx-libris manuscrit \"Ex libris Dufour\"" } ], "seeAlso": [] } ] }, { "type": "search", "input": { "DOI": "10.7336/academicus.2014.09.05" }, "items": [ { "itemType": "journalArticle", "title": "Second world war, communism and post-communism in Albania, an equilateral triangle of a tragic trans-Adriatic story. The Eftimiadi’s Saga", "creators": [ { "creatorType": "author", "firstName": "Paolo", "lastName": "Muner" } ], "date": "01/2014", "DOI": "10.7336/academicus.2014.09.05", "ISSN": "20793715, 23091088", "abstractNote": "The complicated, troubled and tragic events of a wealthy family from Vlorë, Albania, which a century ago expanded its business to Italy, in Brindisi and Trieste, and whose grand land tenures and financial properties in Albania were nationalized by Communism after the Second World War. Hence the life-long solitary and hopeless fight of the last heir of the family to reconquer his patrimony that had been nationalized by Communism. Such properties would have been endowed to a planned foundation, which aims at perpetuating the memory of his brother, who was active in the resistance movement during the war and therefore hung by the Germans. His main institutional purpose is to help students from the Vlorë area to attend the University of Trieste. The paper is a travel in time through history, sociology and the consolidation of a state’s fundamentals, by trying to read the past aiming to understand the presence and save the future. The paper highlights the need to consider past models of social solidarity meanwhile renewing the actual one. This as a re-establishment of rule and understanding, a strategy to cope with pressures to renegotiate the social contract, as a universal need, by considering the past’s experiences as a firm base for successful social interaction. All this, inside a story which in the first look seems to be too personal and narrow, meanwhile it highlights the present and the past in a natural organic connection, dedicated to a nation in continuous struggle for its social reconstruction.", "libraryCatalog": "DOI.org (Crossref)", "pages": "69-78", "publicationTitle": "Academicus International Scientific Journal", "url": "https://www.medra.org/servlet/MREngine?hdl=10.7336/academicus.2014.09.05", "volume": "9", "attachments": [], "tags": [], "notes": [], "seeAlso": [] } ] }, { "type": "search", "input": [ { "DOI": "10.5555/12345678" }, { "DOI": "10.1109/TPS.1987.4316723" }, { "DOI": "10.5555/666655554444" } ], "items": [ { "itemType": "journalArticle", "title": "Toward a Unified Theory of High-Energy Metaphysics: Silly String Theory", "creators": [ { "creatorType": "author", "firstName": "Josiah", "lastName": "Carberry" }, { "creatorType": "contributor", "fieldMode": 1, "lastName": "Friends of Josiah Carberry" } ], "date": "2008-08-14", "DOI": "10.5555/12345678", "ISSN": "0264-3561", "abstractNote": "The characteristic theme of the works of Stone is the bridge between culture and society. Several narratives concerning the fatal !aw, and subsequent dialectic, of semioticist class may be found. Thus, Debord uses the term ‘the subtextual paradigm of consensus’ to denote a cultural paradox. The subject is interpolated into a neocultural discourse that includes sexuality as a totality. But Marx’s critique of prepatriarchialist nihilism states that consciousness is capable of signi\"cance. The main theme of Dietrich’s[1]model of cultural discourse is not construction, but neoconstruction. Thus, any number of narratives concerning the textual paradigm of narrative exist. Pretextual cultural theory suggests that context must come from the collective unconscious.", "issue": "11", "journalAbbreviation": "Journal of Psychoceramics", "language": "en", "libraryCatalog": "DOI.org (Crossref)", "pages": "1-3", "publicationTitle": "Journal of Psychoceramics", "shortTitle": "Toward a Unified Theory of High-Energy Metaphysics", "url": "https://ojs33.crossref.publicknowledgeproject.org/index.php/test/article/view/2", "volume": "5", "attachments": [], "tags": [], "notes": [], "seeAlso": [] }, { "itemType": "journalArticle", "title": "Bulk and Surface Plasmons in Artificially Structured Materials", "creators": [ { "creatorType": "author", "firstName": "John J.", "lastName": "Quinn" }, { "creatorType": "author", "firstName": "Josiah S.", "lastName": "Carberry" } ], "date": "1987", "DOI": "10.1109/TPS.1987.4316723", "ISSN": "0093-3813", "issue": "4", "journalAbbreviation": "IEEE Trans. Plasma Sci.", "libraryCatalog": "DOI.org (Crossref)", "pages": "394-410", "publicationTitle": "IEEE Transactions on Plasma Science", "url": "http://ieeexplore.ieee.org/document/4316723/", "volume": "15", "attachments": [], "tags": [], "notes": [], "seeAlso": [] }, { "itemType": "journalArticle", "title": "The Memory Bus Considered Harmful", "creators": [ { "creatorType": "author", "firstName": "Josiah", "lastName": "Carberry" } ], "date": "2012-10-11", "DOI": "10.5555/666655554444", "ISSN": "0264-3561", "issue": "11", "journalAbbreviation": "Journal of Psychoceramics", "language": "en", "libraryCatalog": "DOI.org (Crossref)", "pages": "1-3", "publicationTitle": "Journal of Psychoceramics", "url": "https://ojs33.crossref.publicknowledgeproject.org/index.php/test/article/view/8", "volume": "9", "attachments": [], "tags": [], "notes": [], "seeAlso": [] } ] } ] /** END TEST CASES **/