Skip to content

Commit

Permalink
Merge pull request #251 from zepinglee/standard
Browse files Browse the repository at this point in the history
更新“全国标准信息公共服务平台”测试用例(#250
  • Loading branch information
jiaojiaodubai authored Dec 12, 2023
2 parents 76f4f27 + ed7f9e0 commit 7bdfc37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2023-06-27 17:37:20"
"lastUpdated": "2023-12-12 08:42:32"
}

/*
Expand Down Expand Up @@ -133,7 +133,11 @@ function doWeb(doc, url) {
}
break;
case '标准语言':
item.language = value.toLowerCase();
let language = value.toLowerCase();
if (language === 'en') {
language = 'en-US';
}
item.language = language;
break;
default:
break;
Expand All @@ -153,7 +157,6 @@ var testCases = [
{
"type": "web",
"url": "https://std.samr.gov.cn/gb/search/gbDetailed?id=71F772D7AA78D3A7E05397BE0A0AB82A",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand Down Expand Up @@ -187,7 +190,6 @@ var testCases = [
{
"type": "web",
"url": "https://std.samr.gov.cn/gb/search/gbDetailed?id=71F772D8055ED3A7E05397BE0A0AB82A",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand Down Expand Up @@ -221,7 +223,6 @@ var testCases = [
{
"type": "web",
"url": "https://std.samr.gov.cn/hb/search/stdHBDetailed?id=8B1827F23645BB19E05397BE0A0AB44A",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand All @@ -238,6 +239,7 @@ var testCases = [
"language": "zh-CN",
"libraryCatalog": "全国标准信息公共服务平台",
"number": "CY/T 154—2017",
"status": "现行",
"url": "https://std.samr.gov.cn/hb/search/stdHBDetailed?id=8B1827F23645BB19E05397BE0A0AB44A",
"attachments": [
{
Expand All @@ -254,7 +256,6 @@ var testCases = [
{
"type": "web",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=3E25D6F98CDEEE0578BCF0333B17EECF",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand All @@ -267,7 +268,7 @@ var testCases = [
}
],
"date": "2021-06-11",
"language": "en",
"language": "en-US",
"libraryCatalog": "全国标准信息公共服务平台",
"number": "ISO 690:2021",
"status": "现行",
Expand All @@ -287,7 +288,6 @@ var testCases = [
{
"type": "web",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=373C3505A9085559695051CCF9F59895",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand All @@ -300,7 +300,7 @@ var testCases = [
}
],
"date": "2020-12-21",
"language": "en",
"language": "en-US",
"libraryCatalog": "全国标准信息公共服务平台",
"number": "ISO/IEC 10646:2020",
"status": "现行",
Expand All @@ -319,10 +319,10 @@ var testCases = [
},
{
"type": "web",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=B918D134293DC9AF17BD9A5FCB5C24B2",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=90EA7F0D4DF6771A08464E35E322E8BE",
"items": [
{
"itemType": "report",
"itemType": "standard",
"title": "Quantities and units — Part 2: Mathematics",
"creators": [
{
Expand All @@ -332,12 +332,12 @@ var testCases = [
}
],
"date": "2019-08-26",
"extra": "Type: standard",
"language": "en",
"language": "en-US",
"libraryCatalog": "全国标准信息公共服务平台",
"reportNumber": "ISO 80000-2:2019",
"number": "ISO 80000-2:2019",
"shortTitle": "Quantities and units — Part 2",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=B918D134293DC9AF17BD9A5FCB5C24B2",
"status": "现行",
"url": "https://std.samr.gov.cn/gj/search/gjDetailed?id=90EA7F0D4DF6771A08464E35E322E8BE",
"attachments": [
{
"title": "Snapshot",
Expand Down
6 changes: 1 addition & 5 deletions National Standards Open System - China.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2023-06-29 06:13:17"
"lastUpdated": "2023-12-12 08:43:39"
}

/*
Expand Down Expand Up @@ -121,7 +121,6 @@ var testCases = [
{
"type": "web",
"url": "https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=ADAA308A0BE559EC29E773B71591F463",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand All @@ -138,7 +137,6 @@ var testCases = [
"language": "zh-CN",
"libraryCatalog": "国家标准全文公开系统",
"number": "GB 3100—1993",
"publisher": "国家技术监督局",
"status": "现行",
"url": "https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=ADAA308A0BE559EC29E773B71591F463",
"attachments": [
Expand All @@ -156,7 +154,6 @@ var testCases = [
{
"type": "web",
"url": "https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=7FA63E9BBA56E60471AEDAEBDE44B14C",
"detectedItemType": "standard",
"items": [
{
"itemType": "standard",
Expand All @@ -173,7 +170,6 @@ var testCases = [
"language": "zh-CN",
"libraryCatalog": "国家标准全文公开系统",
"number": "GB/T 7714—2015",
"publisher": "中华人民共和国国家质量监督检验检疫总局、中国国家标准化管理委员会",
"status": "现行",
"url": "https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=7FA63E9BBA56E60471AEDAEBDE44B14C",
"attachments": [
Expand Down

0 comments on commit 7bdfc37

Please sign in to comment.