Bugzilla – Attachment 100365 Details for
Bug 24584
Rewrite optional installation files to YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24584: Rewrite optional/sample_z3950_servers to YAML
Bug-24584-Rewrite-optionalsamplez3950servers-to-YA.patch (text/plain), 5.17 KB, created by
Jonathan Druart
on 2020-03-09 12:21:37 UTC
(
hide
)
Description:
Bug 24584: Rewrite optional/sample_z3950_servers to YAML
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-09 12:21:37 UTC
Size:
5.17 KB
patch
obsolete
>From 7aeacd7265010e77c01041982c2aa305063cd4f9 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Wed, 5 Feb 2020 09:53:12 -0300 >Subject: [PATCH] Bug 24584: Rewrite optional/sample_z3950_servers to YAML > >YAML version of optional sample_z3950_servers > >To test: >1) Same test plan of first patch, only check table > z3950servers > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../en/optional/sample_z3950_servers.sql | 11 --- > .../en/optional/sample_z3950_servers.txt | 5 -- > .../en/optional/sample_z3950_servers.yml | 82 +++++++++++++++++++ > 3 files changed, 82 insertions(+), 16 deletions(-) > delete mode 100644 installer/data/mysql/en/optional/sample_z3950_servers.sql > delete mode 100644 installer/data/mysql/en/optional/sample_z3950_servers.txt > create mode 100644 installer/data/mysql/en/optional/sample_z3950_servers.yml > >diff --git a/installer/data/mysql/en/optional/sample_z3950_servers.sql b/installer/data/mysql/en/optional/sample_z3950_servers.sql >deleted file mode 100644 >index 1168fe12b9..0000000000 >--- a/installer/data/mysql/en/optional/sample_z3950_servers.sql >+++ /dev/null >@@ -1,11 +0,0 @@ >-INSERT INTO z3950servers >-(host, port, db, userid, password, servername, checked, `rank`, syntax, encoding,recordtype) VALUES >-('lx2.loc.gov',210,'LCDB','','','LIBRARY OF CONGRESS',1,1,'USMARC','utf8','biblio'), >-('lx2.loc.gov',210,'NAF','','','LIBRARY OF CONGRESS NAMES',1,1,'USMARC','utf8','authority'), >-('lx2.loc.gov',210,'SAF','','','LIBRARY OF CONGRESS SUBJECTS',1,2,'USMARC','utf8','authority'); >- >-#Insert SRU server >-INSERT INTO z3950servers >-(host, port, db, servername, syntax, encoding, servertype, sru_fields) >-VALUES >-('lx2.loc.gov',210,'LCDB','LIBRARY OF CONGRESS SRU','USMARC','utf8','sru','title=dc.title,isbn=bath.isbn,srchany=cql.anywhere,author=dc.author,issn=bath.issn,subject=dc.subject,stdid=bath.standardIdentifier'); >diff --git a/installer/data/mysql/en/optional/sample_z3950_servers.txt b/installer/data/mysql/en/optional/sample_z3950_servers.txt >deleted file mode 100644 >index b7a48c0f0b..0000000000 >--- a/installer/data/mysql/en/optional/sample_z3950_servers.txt >+++ /dev/null >@@ -1,5 +0,0 @@ >-Allow access to the following servers to search and download record information: >-LIBRARY OF CONGRESS >-LIBRARY OF CONGRESS NAMES (authority records) >-LIBRARY OF CONGRESS SUBJECTS (authority records) >-COLUMBIA UNIVERSITY >diff --git a/installer/data/mysql/en/optional/sample_z3950_servers.yml b/installer/data/mysql/en/optional/sample_z3950_servers.yml >new file mode 100644 >index 0000000000..7cd1f6f915 >--- /dev/null >+++ b/installer/data/mysql/en/optional/sample_z3950_servers.yml >@@ -0,0 +1,82 @@ >+--- >+# >+# Copyright 2020 Koha Development Team >+# >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it under the >+# terms of the GNU General Public License as published by the Free Software >+# Foundation; either version 2 of the License, or (at your option) any later >+# version. >+# >+# Koha 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 General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License along >+# with Koha; if not, write to the Free Software Foundation, Inc., >+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >+# >+ >+description: >+ - "Allow access to the following servers to search and download record information:" >+ - "LIBRARY OF CONGRESS" >+ - "LIBRARY OF CONGRESS NAMES (authority records)" >+ - "LIBRARY OF CONGRESS SUBJECTS (authority records)" >+ - "COLUMBIA UNIVERSITY" >+ >+ >+tables: >+ - z3950servers: >+ translatable: [ servername ] >+ multiline: [] >+ rows: >+ - host: "lx2.loc.gov" >+ port: 210 >+ db: LCDB >+ userid: "" >+ password: "" >+ servername: "LIBRARY OF CONGRESS" >+ checked: 1 >+ rank: 1 >+ syntax: USMARC >+ encoding: utf8 >+ recordtype: biblio >+ >+ - host: "lx2.loc.gov" >+ port: 210 >+ db: NAF >+ userid: "" >+ password: "" >+ servername: "LIBRARY OF CONGRESS NAMES" >+ checked: 1 >+ rank: 1 >+ syntax: USMARC >+ encoding: utf8 >+ recordtype: authority >+ >+ - host: "lx2.loc.gov" >+ port: 210 >+ db: SAF >+ userid: "" >+ password: "" >+ servername: "LIBRARY OF CONGRESS SUBJECTS" >+ checked: 1 >+ rank: 2 >+ syntax: USMARC >+ encoding: utf8 >+ recordtype: authority >+ >+ - z3950servers: >+ translatable: [ servername ] >+ multiline: [] >+ rows: >+ # Insert SRU server >+ - host: "lx2.loc.gov" >+ port: 210 >+ db: LCDB >+ servername: "LIBRARY OF CONGRESS SRU" >+ syntax: USMARC >+ encoding: utf8 >+ servertype: sru >+ sru_fields: "title=dc.title,isbn=bath.isbn,srchany=cql.anywhere,author=dc.author,issn=bath.issn,subject=dc.subject,stdid=bath.standardIdentifier" >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24584
:
98464
|
98465
|
98466
|
98467
|
98468
|
98469
|
98470
|
98471
|
98472
|
98473
|
98474
|
98475
|
98476
|
98477
|
99402
|
99403
|
99404
|
99405
|
99406
|
99407
|
99408
|
99409
|
99410
|
99411
|
99412
|
99413
|
99414
|
99415
|
100352
|
100353
|
100354
|
100355
|
100356
|
100357
|
100358
|
100359
|
100360
|
100361
|
100362
|
100363
|
100364
| 100365