{ "translatorID": "d76fea32-fe20-4c00-b5b9-bea8c688c2b0", "label": "DEPATISnet", "creator": "Klaus Flittner", "target": "^https?://depatisnet\\.dpma\\.de/DepatisNet/depatisnet", "minVersion": "3.0", "maxVersion": "", "priority": 100, "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", "lastUpdated": "2014-03-12 04:43:57" } /* ***** BEGIN LICENSE BLOCK ***** DEPATISnet translator - Copyright © 2014 Klaus Flittner This program 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. This program 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 this program. If not, see . ***** END LICENSE BLOCK ***** */ function detectWeb(doc, url) { if (url.indexOf("action=bibdat") !== -1) { return "patent"; } if (url.indexOf("action=treffer") !== -1 && Object.keys(getSearchResults(doc)).length) { return "multiple"; } } function getSearchResults(doc) { var results = {} var rows = ZU.xpath(doc, '//div[@id="inhalt"]/form/table/tbody/tr'); for (var i=0, n=rows.length; i 0) { var pdfurl = "https://register.dpma.de/pdfschrift/"+pn+".pdf?dpi=300"; newItem.attachments.push({ title: newItem.patentNumber, url: pdfurl, mimeType: "application/pdf" }); } newItem.complete(); } function doWeb(doc, url) { if (detectWeb(doc, url) == "multiple"){ var results = getSearchResults(doc); Z.selectItems(results, function (items) { if (!items) return true; var urls = []; for (var j in items) { urls.push(j); } ZU.processDocuments(urls, scrape); } ); } else { scrape(doc, url); } } /** BEGIN TEST CASES **/ var testCases = [ { "type": "web", "url": "https://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=DE000004446098C2", "items": [ { "itemType": "patent", "creators": [ { "firstName": "Jacques", "lastName": "Longueville", "creatorType": "inventor" }, { "firstName": "Gerhard", "lastName": "Meyer", "creatorType": "inventor" } ], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "DEPATISnet patent record" }, { "title": "DE4446098C2", "mimeType": "application/pdf" } ], "title": "Elektrischer Verbinder mit Abschirmung", "assignee": "Philips Patentverwaltung GmbH; Siemens AG", "filingDate": "1994-12-22", "applicationNumber": "4446098", "date": "1998-11-26", "url": "http://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=DE000004446098C2", "patentNumber": "DE4446098C2", "extra": "IPC: H01R 23/68; H01R 4/24; H01R 13/648; H01R 13/652", "libraryCatalog": "DEPATISnet", "accessDate": "CURRENT_TIMESTAMP" } ] }, { "type": "web", "url": "https://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=EP000000871998A1", "items": [ { "itemType": "patent", "creators": [ { "firstName": "Jacques", "lastName": "Longueville", "creatorType": "inventor" }, { "firstName": "Gerhard", "lastName": "Meyer", "creatorType": "inventor" } ], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "DEPATISnet patent record" }, { "title": "EP871998A1", "mimeType": "application/pdf" } ], "title": "Elektrischer Verbinder Mit Abschirmung", "assignee": "Koninkl Philips Electronics Nv; Philips Patentverwaltung; Siemens Ag", "filingDate": "1995-12-20", "applicationNumber": "95942705", "date": "1998-10-21", "url": "http://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=EP000000871998A1", "patentNumber": "EP871998A1", "extra": "IPC: H01R 12/16", "libraryCatalog": "DEPATISnet", "accessDate": "CURRENT_TIMESTAMP" } ] }, { "type": "web", "url": "https://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=AR000000047789A1", "items": [ { "itemType": "patent", "creators": [], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "DEPATISnet patent record" } ], "title": "Sistema De Inyeccion De Odorizante En El Gas Natural", "assignee": "Fisher Controls Int", "filingDate": "2005-01-19", "applicationNumber": "P 050100188", "date": "2006-02-22", "abstractNote": "[ES] Un sistema de inyeccion de odorizante en el gas natural, para inyectar odorizante en un conducto de gas natural, que incluye un conducto de derivacion, un tanque de odorizante, un medidor de caudal, una válvula de control y un controlador acoplado para comunicarse con el medidor de caudal y con la válvula de control. El conducto de derivacion incluye una entrada que está en comunicacion fluida con una seccion corriente abajo del conducto de gas, y una salida que está en comunicacion fluida con una seccion corriente abajo del conducto de gas. El tanque de odorizante, la válvula de control y el medidor de caudal están dispuestos en el conducto de derivacion. El medidor de caudal detecta una característica de una corriente de fluido que lo atraviesa y genera una senal de flujo de fluido correspondiente. El controlador está programado para operar la válvula de control en base a la senal de flujo de fluido recibida del medidor de caudal.", "url": "http://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=AR000000047789A1", "patentNumber": "AR47789A1", "extra": "IPC: F17D 5/02; F17D 3/12; F17D 1/04; F17D 5/00; G01M 3/28", "libraryCatalog": "DEPATISnet", "accessDate": "CURRENT_TIMESTAMP" } ] }, { "type": "web", "url": "https://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=JP002007522283A", "items": [ { "itemType": "patent", "creators": [], "notes": [], "tags": [], "seeAlso": [], "attachments": [ { "title": "DEPATISnet patent record" } ], "title": "JP2007522283A", "filingDate": "2005-01-18", "applicationNumber": "2006551227", "date": "2007-08-09", "url": "http://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat&docid=JP002007522283A", "patentNumber": "JP2007522283A", "extra": "IPC: C10L 3/10", "libraryCatalog": "DEPATISnet", "accessDate": "CURRENT_TIMESTAMP" } ] } ] /** END TEST CASES **/