File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ target_file_path =
15
15
# Path to metadata for plain text target files. Needs to be a CSV or TSV file with at least the filename as metadata
16
16
target_metadata =
17
17
18
+ # For backwards compatibility. Will remove in future versions
19
+ source_url =
20
+ target_url =
21
+
18
22
[TEXT_PARSING]
19
23
# #########################################################################
20
24
# # If TEI parsing was not done by PhiloLogic, you can parse your source ##
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash && apt-get ins
8
8
9
9
RUN apt-get clean && rm -rf /var/lib/apt
10
10
11
- RUN mkdir textpair && curl -L https://github.com/ARTFL-Project/text-pair/archive/v2.1.0.3 .tar.gz| tar xz -C textpair --strip-components 1 &&\
11
+ RUN mkdir textpair && curl -L https://github.com/ARTFL-Project/text-pair/archive/v2.1.0.4 .tar.gz| tar xz -C textpair --strip-components 1 &&\
12
12
cd textpair && sh install.sh && mkdir -p /var/www/html/text-pair
13
13
14
14
RUN echo "[WEB_APP]\n web_app_path = /var/www/html/text-pair\n api_server = http://localhost/text-pair-api\n [DATABASE]\n database_name = textpair\n database_user = textpair\n database_password = textpair" > /etc/text-pair/global_settings.ini
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ def __parse_config(self):
37
37
self .web_app_config ["api_server" ] = global_config ["WEB_APP" ]["api_server" ]
38
38
config = configparser .ConfigParser ()
39
39
config .read (self .__cli_args ["config" ])
40
+ self .web_app_config ["source_url" ] = config ["TEXT_SOURCES" ]["source_url" ]
41
+ self .web_app_config ["target_url" ] = config ["TEXT_SOURCES" ]["target_url" ]
40
42
if self .__cli_args ["is_philo_db" ] is True :
41
43
self .web_app_config ["source_philo_db_path" ] = config ["TEXT_SOURCES" ]["source_file_path" ]
42
44
self .web_app_config ["target_philo_db_path" ] = config ["TEXT_SOURCES" ]["target_file_path" ] or config ["TEXT_SOURCES" ]["source_file_path" ]
You can’t perform that action at this time.
0 commit comments