{ "translatorID": "951c027d-74ac-47d4-a107-9c3069ab7b48", "label": "Embedded Metadata", "creator": "Simon Kornblith and Avram Lyon", "target": "", "minVersion": "3.0.4", "maxVersion": "", "priority": 400, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2014-08-15 02:36:16" } /* ***** BEGIN LICENSE BLOCK ***** Copyright © 2011 Avram Lyon and the Center for History and New Media George Mason University, Fairfax, Virginia, USA http://zotero.org 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 ***** */ var HIGHWIRE_MAPPINGS = { "citation_title":"title", "citation_publication_date":"date", //perhaps this is still used in some old implementations "citation_date":"date", "citation_journal_title":"publicationTitle", "citation_journal_abbrev":"journalAbbreviation", "citation_book_title":"bookTitle", "citation_volume":"volume", "citation_issue":"issue", "citation_series_title":"series", "citation_conference_title":"conferenceName", "citation_conference":"conferenceName", "citation_dissertation_institution":"university", "citation_technical_report_institution":"institution", "citation_technical_report_number":"number", "citation_publisher":"publisher", "citation_isbn":"ISBN", "citation_abstract":"abstractNote", "citation_doi":"DOI", "citation_public_url":"url", "citation_language":"language" /* the following are handled separately in addHighwireMetadata() "citation_author" "citation_authors" "citation_firstpage" "citation_lastpage" "citation_issn" "citation_eIssn" "citation_pdf_url" "citation_abstract_html_url" "citation_fulltext_html_url" "citation_pmid" "citation_online_date" "citation_year" "citation_keywords" */ }; // Maps actual prefix in use to URI // The defaults are set to help out in case a namespace is not declared // Copied from RDF translator var _prefixes = { bib:"http://purl.org/net/biblio#", bibo:"http://purl.org/ontology/bibo/", dc:"http://purl.org/dc/elements/1.1/", dcterms:"http://purl.org/dc/terms/", prism:"http://prismstandard.org/namespaces/1.2/basic/", foaf:"http://xmlns.com/foaf/0.1/", vcard:"http://nwalsh.com/rdf/vCard#", link:"http://purl.org/rss/1.0/modules/link/", z:"http://www.zotero.org/namespaces/export#", eprint:"http://purl.org/eprint/terms/", eprints:"http://purl.org/eprint/terms/", og:"http://ogp.me/ns#", // Used for Facebook's OpenGraph Protocol article:"http://ogp.me/ns/article#", book:"http://ogp.me/ns/book#", rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#" }; var _prefixRemap = { //DC should be in lower case "http://purl.org/DC/elements/1.0/": "http://purl.org/dc/elements/1.0/", "http://purl.org/DC/elements/1.1/": "http://purl.org/dc/elements/1.1/" }; var namespaces = {}; var _rdfPresent = false, _haveItem = false, _itemType; var RDF; var CUSTOM_FIELD_MAPPINGS; function addCustomFields(customFields) { CUSTOM_FIELD_MAPPINGS = customFields; } function setPrefixRemap(map) { _prefixRemap = map; } function remapPrefix(uri) { if(_prefixRemap[uri]) return _prefixRemap[uri]; return uri; } function getPrefixes(doc) { var links = doc.getElementsByTagName("link"); for(var i=0, link; link = links[i]; i++) { // Look for the schema's URI in our known schemata var rel = link.getAttribute("rel"); if(rel) { var matches = rel.match(/^schema\.([a-zA-Z]+)/); if(matches) { var uri = remapPrefix(link.getAttribute("href")); //Zotero.debug("Prefix '" + matches[1].toLowerCase() +"' => '" + uri + "'"); _prefixes[matches[1].toLowerCase()] = uri; } } } //also look in html and head elements var prefixes = (doc.documentElement.getAttribute('prefix') || '') + (doc.head.getAttribute('prefix') || ''); var prefixRE = /(\w+):\s+(\S+)/g; var m; while(m = prefixRE.exec(prefixes)) { var uri = remapPrefix(m[2]); Z.debug("Prefix '" + m[1].toLowerCase() +"' => '" + uri + "'"); _prefixes[m[1].toLowerCase()] = uri; } } function getContentText(doc, name, strict) { var xpath = '/x:html/x:head/x:meta[' + (strict?'@name': 'substring(@name, string-length(@name)-' + (name.length - 1) + ')') + '="'+ name +'"]/'; return ZU.xpathText(doc, xpath + '@content | ' + xpath + '@contents', namespaces); } function getContent(doc, name, strict) { var xpath = '/x:html/x:head/x:meta[' + (strict?'@name': 'substring(@name, string-length(@name)-' + (name.length - 1) + ')') + '="'+ name +'"]/'; return ZU.xpath(doc, xpath + '@content | ' + xpath + '@contents', namespaces); } function fixCase(authorName) { //fix case if all upper or all lower case if(authorName.toUpperCase() === authorName || authorName.toLowerCase() === authorName) { return ZU.capitalizeTitle(authorName, true); } return authorName; } function processFields(doc, item, fieldMap, strict) { for(var metaName in fieldMap) { var zoteroName = fieldMap[metaName]; var value = getContentText(doc, metaName, strict); if(value && value.trim()) { item[zoteroName] = ZU.trimInternal(value); } } } function completeItem(doc, newItem) { addHighwireMetadata(doc, newItem); addOtherMetadata(doc, newItem); addLowQualityMetadata(doc, newItem); finalDataCleanup(doc, newItem); if(CUSTOM_FIELD_MAPPINGS) { processFields(doc, newItem, CUSTOM_FIELD_MAPPINGS, true); } newItem.complete(); } function detectWeb(doc, url) { //blacklist wordpress jetpack comment plugin so it doesn't override other metadata if (url.indexOf("jetpack.wordpress.com/jetpack-comment/")!=-1) return false; if(exports.itemType) return exports.itemType; init(doc, url, Zotero.done); } function init(doc, url, callback, forceLoadRDF) { getPrefixes(doc); var metaTags = doc.head.getElementsByTagName("meta"); Z.debug("Embedded Metadata: found " + metaTags.length + " meta tags."); if(forceLoadRDF /* check if this is called from doWeb */ && !metaTags.length) { if(doc.head) { Z.debug(doc.head.innerHTML .replace(/|\/>)/ig, '') .replace(/]+>/ig, '') .replace(/(?:\s*[\r\n]\s*)+/g, '\n') ); } else { Z.debug("Embedded Metadata: No head tag"); } } var hwType, hwTypeGuess, generatorType, statements = []; for(var i=0, metaTag; metaTag = metaTags[i]; i++) { // Two formats allowed: // // // The first is more common; the second is recommended by Facebook // for their OpenGraph vocabulary var tags = metaTag.getAttribute("name"); if (!tags) tags = metaTag.getAttribute("property"); var value = metaTag.getAttribute("content"); if(!tags || !value) continue; tags = tags.split(/\s+/); for(var j=0, m=tags.length; j"+value); statements.push([url, _prefixes[prefix]+prop, value]); } else if(tag.toLowerCase() == 'generator') { var lcValue = value.toLowerCase(); if(lcValue.indexOf('blogger') != -1 || lcValue.indexOf('wordpress') != -1 || lcValue.indexOf('wooframework') != -1 ) { generatorType = 'blogPost'; } } else { var shortTag = tag.slice(tag.lastIndexOf('citation_')); switch(shortTag) { case "citation_journal_title": hwType = "journalArticle"; break; case "citation_technical_report_institution": hwType = "report"; break; case "citation_conference_title": case "citation_conference": hwType = "conferencePaper"; break; case "citation_book_title": hwType = "bookSection"; break; case "citation_dissertation_institution": hwType = "thesis"; break; case "citation_title": //fall back to journalArticle, since this is quite common case "citation_series_title": //possibly journal article, though it could be book hwTypeGuess = hwTypeGuess || "journalArticle"; break; case 'citation_isbn': hwTypeGuess = "book"; // Unlikely, but other item types may have ISBNs as well (e.g. Reports?) break; } } } } if(statements.length || forceLoadRDF) { // load RDF translator, so that we don't need to replicate import code var translator = Zotero.loadTranslator("import"); translator.setTranslator("5e3ad958-ac79-463d-812b-a86a9235c28f"); translator.setHandler("itemDone", function(obj, newItem) { _haveItem = true; completeItem(doc, newItem); }); translator.getTranslatorObject(function(rdf) { for(var i=0; i 1 && authorsByComma[0].indexOf(" ") !== -1 && authorsByComma[1].indexOf(" ") !== -1) authors = authorsByComma; } for(var j=0, m=authors.length; j$ {\\$}43. and CO2 emission reduction of $>$ 465 lbs. The return on investment (ROI) was less than 2 years. This is much better than any financial investment available today and far safer. Our street only had 30 such lamps installed; however, the rest of Portsmouth (population 22,000) has at least another 150 street lamp fixtures that are candidates for such an upgrade. The talk will also address other energy reduction measures that green the planet and also put more green in the pockets of citizens and municipalities.", "accessDate": "CURRENT_TIMESTAMP", "conferenceName": "Climate Change and the Future of Nuclear Power", "libraryCatalog": "scholarworks.umass.edu", "shortTitle": "Session F", "url": "http://scholarworks.umass.edu/climate_nuclearpower/2011/nov19/34", "attachments": [ { "title": "Snapshot" } ], "tags": [], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://scholarworks.umass.edu/lov/vol2/iss1/2/", "items": [ { "itemType": "journalArticle", "title": "Wabanaki Resistance and Healing: An Exploration of the Contemporary Role of an Eighteenth Century Bounty Proclamation in an Indigenous Decolonization Process", "creators": [ { "firstName": "Bonnie D.", "lastName": "Newsom", "creatorType": "author" }, { "firstName": "Jamie", "lastName": "Bissonette-Lewey", "creatorType": "author" } ], "date": "2012", "ISSN": "1947-508X", "abstractNote": "The purpose of this paper is to examine the contemporary role of an eighteenth century bounty proclamation issued on the Penobscot Indians of Maine. We focus specifically on how the changing cultural context of the 1755 Spencer Phips Bounty Proclamation has transformed the document from serving as a tool for sanctioned violence to a tool of decolonization for the Indigenous peoples of Maine. We explore examples of the ways indigenous and non-indigenous people use the Phips Proclamation to illustrate past violence directed against Indigenous peoples. This exploration is enhanced with an analysis of the re-introduction of the Phips Proclamation using concepts of decolonization theory.", "accessDate": "CURRENT_TIMESTAMP", "issue": "1", "libraryCatalog": "scholarworks.umass.edu", "pages": "2", "publicationTitle": "Landscapes of Violence", "shortTitle": "Wabanaki Resistance and Healing", "url": "http://scholarworks.umass.edu/lov/vol2/iss1/2", "volume": "2", "attachments": [ { "title": "Full Text PDF", "mimeType": "application/pdf" }, { "title": "Snapshot" } ], "tags": [ "Bounty Proclamations", "Decolonization", "Wabanaki" ], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://scholarworks.umass.edu/open_access_dissertations/508/", "items": [ { "itemType": "thesis", "title": "Decision-Theoretic Meta-reasoning in Partially Observable and Decentralized Settings", "creators": [ { "firstName": "Alan Scott", "lastName": "Carlin", "creatorType": "author" } ], "date": "2012", "abstractNote": "This thesis examines decentralized meta-reasoning. For a single agent or multiple agents, it may not be enough for agents to compute correct decisions if they do not do so in a timely or resource efficient fashion. The utility of agent decisions typically increases with decision quality, but decreases with computation time. The reasoning about one's computation process is referred to as meta-reasoning. Aspects of meta-reasoning considered in this thesis include the reasoning about how to allocate computational resources, including when to stop one type of computation and begin another, and when to stop all computation and report an answer. Given a computational model, this translates into computing how to schedule the basic computations that solve a problem. This thesis constructs meta-reasoning strategies for the purposes of monitoring and control in multi-agent settings, specifically settings that can be modeled by the Decentralized Partially Observable Markov Decision Process (Dec-POMDP). It uses decision theory to optimize computation for efficiency in time and space in communicative and non-communicative decentralized settings. Whereas base-level reasoning describes the optimization of actual agent behaviors, the meta-reasoning strategies produced by this thesis dynamically optimize the computational resources which lead to the selection of base-level behaviors.", "accessDate": "CURRENT_TIMESTAMP", "libraryCatalog": "scholarworks.umass.edu", "university": "University of Massachusetts - Amherst", "url": "http://scholarworks.umass.edu/open_access_dissertations/508", "attachments": [ { "title": "Full Text PDF", "mimeType": "application/pdf" }, { "title": "Snapshot" } ], "tags": [ "Agents", "Dec-POMDP", "MDP", "Meta-reasoning", "Multiagent", "Partial Observability" ], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://www.scielosp.org/scielo.php?script=sci_abstract&pid=S0034-89102007000900015&lng=en&nrm=iso&tlng=en", "items": [ { "itemType": "journalArticle", "title": "Impressões sobre o teste rápido para o HIV entre usuários de drogas injetáveis no Brasil", "creators": [ { "firstName": "P. R.", "lastName": "Telles-Dias", "creatorType": "author" }, { "firstName": "S.", "lastName": "Westman", "creatorType": "author" }, { "firstName": "A. E.", "lastName": "Fernandez", "creatorType": "author" }, { "firstName": "M.", "lastName": "Sanchez", "creatorType": "author" } ], "date": "12/2007", "DOI": "10.1590/S0034-89102007000900015", "ISSN": "0034-8910", "accessDate": "CURRENT_TIMESTAMP", "libraryCatalog": "www.scielosp.org", "pages": "94-100", "publicationTitle": "Revista de Saúde Pública", "url": "http://www.scielosp.org/scielo.php?script=sci_abstract&pid=S0034-89102007000900015&lng=en&nrm=iso&tlng=pt", "volume": "41", "attachments": [ { "title": "Full Text PDF", "mimeType": "application/pdf" }, { "title": "Snapshot" } ], "tags": [], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://www.hindawi.com/journals/mpe/2013/868174/abs/", "items": [ { "itemType": "journalArticle", "title": "Robust Filtering for Networked Stochastic Systems Subject to Sensor Nonlinearity", "creators": [ { "firstName": "Guoqiang", "lastName": "Wu", "creatorType": "author" }, { "firstName": "Jianwei", "lastName": "Zhang", "creatorType": "author" }, { "firstName": "Yuguang", "lastName": "Bai", "creatorType": "author" } ], "date": "2013/02/20", "DOI": "10.1155/2013/868174", "ISSN": "1024-123X", "abstractNote": "The problem of network-based robust filtering for stochastic systems with sensor nonlinearity is investigated in this paper. In the network environment, the effects of the sensor saturation, output quantization, and network-induced delay are taken into simultaneous consideration, and the output measurements received in the filter side are incomplete. The random delays are modeled as a linear function of the stochastic variable described by a Bernoulli random binary distribution. The derived criteria for performance analysis of the filtering-error system and filter design are proposed which can be solved by using convex optimization method. Numerical examples show the effectiveness of the design method.", "accessDate": "CURRENT_TIMESTAMP", "audioFileType": "Research article", "company": "Hindawi Publishing Corporation", "distributor": "Hindawi Publishing Corporation", "extra": "The problem of network-based robust filtering for stochastic systems with sensor nonlinearity is investigated in this paper. In the network environment, the effects of the sensor saturation, output quantization, and network-induced delay are taken into simultaneous consideration, and the output measurements received in the filter side are incomplete. The random delays are modeled as a linear function of the stochastic variable described by a Bernoulli random binary distribution. The derived criteria for performance analysis of the filtering-error system and filter design are proposed which can be solved by using convex optimization method. Numerical examples show the effectiveness of the design method.", "institution": "Hindawi Publishing Corporation", "label": "Hindawi Publishing Corporation", "language": "en", "letterType": "Research article", "libraryCatalog": "www.hindawi.com", "manuscriptType": "Research article", "mapType": "Research article", "postType": "Research article", "presentationType": "Research article", "publicationTitle": "Mathematical Problems in Engineering", "publisher": "Hindawi Publishing Corporation", "reportType": "Research article", "thesisType": "Research article", "url": "http://www.hindawi.com/journals/mpe/2013/868174/abs/", "volume": "2013", "websiteType": "Research article", "attachments": [ { "title": "Full Text PDF", "mimeType": "application/pdf" }, { "title": "Snapshot" } ], "tags": [], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://www.salon.com/2012/10/10/junot_diaz_my_stories_come_from_trauma/", "items": [ { "itemType": "webpage", "title": "Junot Díaz: My stories come from trauma", "creators": [ { "firstName": "Gregg", "lastName": "Barrios", "creatorType": "author" }, { "firstName": "LA Review of", "lastName": "Books", "creatorType": "author" } ], "abstractNote": "The effervescent author of \"This is How You Lose Her\" explains the darkness coursing through his fiction", "shortTitle": "Junot Díaz", "url": "http://www.salon.com/2012/10/10/junot_diaz_my_stories_come_from_trauma/", "attachments": [ { "title": "Snapshot" } ], "tags": [ "Dominican Republic", "Drown", "Junot Diaz", "LA Review of Books", "Rafael Trujillo", "Salon.com", "science fiction" ], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://www.newyorker.com/books/double-take/rescue-at-the-hearst-tower", "items": [ { "itemType": "webpage", "title": "Rescue at the Hearst Tower", "creators": [ { "firstName": "Joshua", "lastName": "Rothman", "creatorType": "author" } ], "date": "6/12/2013", "abstractNote": "Just a few minutes ago, rescuers successfully retrieved two scaffold-maintenance workers at the Hearst Tower, in Midtown, who had become trapped between the forty-fourth and forty-fifth floors. (The rescue workers appear to have removed some windows on the forty-fourth floor, and to have helped the men step off the scaffold and into the building.) Earlier this year, Adam Higginbotham wrote about the challenges of window washing at the Hearst Tower for The New Yorker, in an article called “Life at the Top.” The Hearst Tower, Higginbotham reports, isn’t like other buildings in New York. It has a unique shape, and requires a particularly complex window-washing scaffold:", "url": "http://www.newyorker.com/books/double-take/rescue-at-the-hearst-tower", "websiteTitle": "The New Yorker", "attachments": [ { "title": "Snapshot" } ], "tags": [ "Architecture", "Hearst Tower", "Skyscrapers", "Window Washers", "archive" ], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://www.volokh.com/2013/12/22/northwestern-cant-quit-asa-boycott-member/", "items": [ { "itemType": "blogPost", "title": "Northwestern Can't Quit ASA Over Boycott Because it is Not a Member", "creators": [ { "firstName": "Eugene", "lastName": "Kontorovich", "creatorType": "author" } ], "date": "12/22/2013", "abstractNote": "Northwestern University recently condemned the American Studies Association boycott of Israel. Unlike some other schools that quit their institutional membership in the ASA over the boycott, Northwestern has not. Many of my Northwestern colleagues were about to start urging a similar withdrawal.\nThen we learned from our administration that despite being listed as in institutional member by the ASA, the university has, after checking, concluded it has no such membership, does not plan to get one, and is unclear why the ASA would list us as institutional member.\nApparently, at least several other schools listed by the ASA as institutional members say they have no such relationship.\nThe ASA has been spending a great deal of energy on political activism far from its mission, but apparently cannot keep its books in order. The association has yet to explain how it has come to list as institutional members so many schools that know nothing about such a membership. The ASA’s membership rolls may get much shorter in the coming weeks even without any quitting.\nHow this confusion came to arise is unclear. ASA membership, like that of many academic organizations, comes with a subscription to their journal. Some have suggested that perhaps the ASA also counts as members any institution whose library happened to subscribe to the journal, ie tacking on membership to a subscription, rather than vice versa. This would not be fair on their part. A library may subscribe to all sorts of journals for academic research purposes (ie Pravda), without endorsing the organization that publishes it. That is the difference between subscription and membership.\nI eagerly await the ASA’s explanation of the situation. [...]", "accessDate": "CURRENT_TIMESTAMP", "libraryCatalog": "www.volokh.com", "publicationTitle": "The Volokh Conspiracy", "url": "http://www.volokh.com/2013/12/22/northwestern-cant-quit-asa-boycott-member/", "attachments": [ { "title": "Snapshot" } ], "tags": [ "boycott", "israel" ], "notes": [], "seeAlso": [] } ] }, { "type": "web", "url": "http://apps.who.int/iris/handle/10665/97603", "items": [ { "itemType": "book", "title": "WHO recommendations on postnatal care of the mother and newborn", "creators": [ { "firstName": "World Health", "lastName": "Organization", "creatorType": "author" } ], "date": "2014", "ISBN": "9789241506649", "extra": "62 p.", "language": "en", "libraryCatalog": "apps.who.int", "publisher": "World Health Organization", "url": "http://apps.who.int//iris/handle/10665/97603", "attachments": [ { "title": "Full Text PDF", "mimeType": "application/pdf" }, { "title": "Snapshot" } ], "tags": [ "Guideline", "Infant", "Maternal Welfare", "Newborn", "Postnatal Care", "WHO guideline", "standards" ], "notes": [], "seeAlso": [] } ] } ] /** END TEST CASES **/