From 07517ae563097e04e91ea3fae2c2ca1cf2309b86 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 16 Dec 2019 20:48:17 +0000
Subject: [PATCH] Użycie API REST do pobierania danych z Biblioteki Narodowej

---
 includes/MARC21.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/includes/MARC21.php b/includes/MARC21.php
index d036f66..fc2163f 100644
--- a/includes/MARC21.php
+++ b/includes/MARC21.php
@@ -136,10 +136,10 @@
 		return array(
 			'tytul' => trim($MARC['245'][0]['a'], '().,\\/"\' '),
 			'autor' => trim($MARC['100'][0]['a'], '().,\\/"\' '),
-			'rok' => trim($MARC['260'][0]['c'], '().,\\/"\' '),
-			'miejsce' => trim($MARC['260'][0]['a'], '().,\\/"\' '),
-			'wydawnictwo' => trim($MARC['260'][0]['b'], '().,\\/"\' '),
-			'wydanie' => trim($MARC['250'][0]['a'], '().,\\/"\' '),
+			'rok' => trim($MARC['260'][0]['c'], '[]().,:\\/"\' '),
+			'miejsce' => trim($MARC['260'][0]['a'], '[]().,:\\/"\' '),
+			'wydawnictwo' => trim($MARC['260'][0]['b'], '[]().,:\\/"\' '),
+			'wydanie' => trim($MARC['250'][0]['a'], '[]().,:\\/"\' '),
 			'jezyk' => $MARC['041'][0]['a'],
 			'ISBN' => $ISBN,
 			'ISSN' => $ISSN,

--
Gitblit v1.9.1