From 5bc11106453b32a0d4e46fb584cc4030a026b0a0 Mon Sep 17 00:00:00 2001 From: jiaojiaodubai <63148861+jiaojiaodubai@users.noreply.github.com> Date: Fri, 10 May 2024 10:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=9C=A8=E9=9D=9E=E5=BC=95?= =?UTF-8?q?=E6=B3=A8=E4=BF=A1=E6=81=AF=E9=80=89=E9=A1=B9=E5=8D=A1=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=8A=93=E5=8F=96=EF=BC=9B=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=8A=93=E5=8F=96?= =?UTF-8?q?=EF=BC=9Bfix=20#340?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Pss-System.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Pss-System.js b/Pss-System.js index c6016a7..cc94bdf 100644 --- a/Pss-System.js +++ b/Pss-System.js @@ -9,7 +9,7 @@ "inRepository": true, "translatorType": 4, "browserSupport": "gcsibv", - "lastUpdated": "2024-05-08 04:00:06" + "lastUpdated": "2024-05-10 02:39:15" } /* @@ -37,6 +37,10 @@ function detectWeb(doc, url) { + const tabs = doc.querySelector('.e-tabs'); + if (tabs) { + Z.monitorDOMChanges(tabs, { childList: true, subtree: true }); + } return url.includes('/detail?') && doc.querySelector('.activeli:first-child') ? 'patent' : false; @@ -46,18 +50,18 @@ async function doWeb(doc, _url) { const newItem = new Z.Item('patent'); const labels = new LabelsX(doc, '.basic-con'); const extra = new Extra(); - newItem.title = ZU.capitalizeTitle(labels.getWith(['发明名称$', 'InventionTitle'])); + newItem.title = ZU.capitalizeTitle(labels.getWith(['发明名称((公开))?$', 'InventionTitle', 'Nameoftheinvention\\(disclosed\\)'])); extra.set('original-title', labels.getWith(['发明名称(原始国)', 'InventionTitle\\(Originalcountry\\)']), true); newItem.abstractNote = labels.getWith(['摘要', 'Abstract']); newItem.place = newItem.country = patentCountry(labels.getWith(['申请人所在国家', "Applicant'scountry"])); - newItem.assignee = ZU.capitalizeName(labels.getWith(['申请(专利权)人', 'Applicant/Patentee'])); - newItem.patentNumber = labels.getWith(['公开(公告)号', 'PublicNoticeNo']); + newItem.assignee = ZU.capitalizeName(labels.getWith(['申请((专利权))?人((公开))?$', 'Applicant/Patentee', 'Applicant\\(public\\)'])); + newItem.patentNumber = labels.getWith(['公开((公告))?号', 'PublicNoticeNo']); newItem.filingDate = ZU.strToISO(labels.getWith(['申请日', 'ApplicationDate'])); newItem.applicationNumber = labels.getWith(['申请号', 'ApplicationNo']); newItem.priorityNumbers = labels.getWith(['优先权号', 'PriorityNo']); - newItem.issueDate = ZU.strToISO(labels.getWith(['公开(公告)日', 'PublicationDate'])); - extra.set('IPC', labels.getWith('IPC')); - extra.set('CPC', labels.getWith('CPC')); + newItem.issueDate = ZU.strToISO(labels.getWith(['公开((公告))?日', 'PublicationDate'])); + extra.set('IPC', labels.getWith('^IPC')); + extra.set('CPC', labels.getWith('^CPC')); newItem.creators = labels.getWith(['发明人', 'Inventor']).split(/;\s/).map((string) => { const creator = ZU.cleanAuthor(ZU.capitalizeName(string), 'inventor'); if (/[\u4e00-\u9fff]/.test(creator.lastName)) {