Skip to content
Permalink
Browse files

[Milli Kutuphane.js]: Delete "no publisher" value (#1428)

  • Loading branch information...
zuphilip authored and adam3smith committed Oct 9, 2017
1 parent b1a7088 commit 4c54af3c5e7fc290caedc5a812ece0e7547e2e1a
Showing with 39 additions and 3 deletions.
  1. +39 −3 Milli Kutuphane.js
@@ -9,10 +9,9 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2017-09-16 11:06:31"
"lastUpdated": "2017-10-01 17:23:23"
}


/*
***** BEGIN LICENSE BLOCK *****
@@ -129,6 +128,11 @@ function scrape(doc, url) {

record.translate(newItem);

//don't save value "no publisher" = "yayl.y."
if (newItem.publisher == 'yayl.y.') {
delete newItem.publisher;
}

newItem.complete();
});
}
@@ -171,6 +175,38 @@ var testCases = [
"seeAlso": []
}
]
},
{
"type": "web",
"url": "https://kasif.mkutup.gov.tr/SonucDetay.aspx?MakId=423635",
"items": [
{
"itemType": "book",
"title": "Peygamberlik makamı ve sevgili peygamberimiz",
"creators": [
{
"firstName": "Nihat (F)",
"lastName": "Dalgın",
"creatorType": "editor"
},
{
"firstName": "Yunus (F)",
"lastName": "Macit",
"creatorType": "editor"
}
],
"date": "1992",
"callNumber": "1993 AD 4043",
"language": "TUR",
"libraryCatalog": "Milli Kütüphane",
"numPages": "126",
"place": "Samsun",
"attachments": [],
"tags": [],
"notes": [],
"seeAlso": []
}
]
}
]
/** END TEST CASES **/
/** END TEST CASES **/

0 comments on commit 4c54af3

Please sign in to comment.
You can’t perform that action at this time.