changeset 5:cbbb7ef22394

Change urls from "localmonographs" to "localgazetteers".
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Fri, 30 Jan 2015 10:17:44 +0100
parents 883ad980a43b
children 63e08b98032f
files index.php index_20150130.php interface/add_dynasty.php
diffstat 3 files changed, 167 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Tue Jan 27 16:40:30 2015 +0100
+++ b/index.php	Fri Jan 30 10:17:44 2015 +0100
@@ -13,8 +13,8 @@
         <head>
                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                 <link href="index.css" type="text/css" rel="stylesheet"/>
-                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
-                <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
+                <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
+                <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
         </head>
         <body>
 		<div id='sysName'>Tools for Local Monographs on this machine:</div>
@@ -25,16 +25,16 @@
 		<div class='block'>
 			<div class='title'>Search and extract 中國方志庫</div>
 			<div class='content'>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search.php' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search.php' target='_blank'>
 
 					<div class='name'>Search in the full texts</div> 
 					<div class='note'>(You can specify multiple keywords to search the full texts from the 1,824 local monographs in 中國方志庫, and save the result to a html file.)</div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search_results/locust_temples_2.html' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search_results/locust_temples_2.html' target='_blank'>
 					<div class='name'>Show the search result for "locust temples"</div>
 					<div class='note'>(Show the saved search result for locust temples. From there, you can begin the tagging/extraction procedure.) </div>
 				</a>
-				<a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search_results' target='_blank'>
+				<a class='entry related' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search_results' target='_blank'>
 					>> All saved search results
 				</a>
 			</div>
@@ -54,22 +54,22 @@
 		<div class='block'>
 			<div class='title'>Correct TOCs for 中國方志庫 texts</div>
 			<div class='content'>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php' target='_blank'>
 					<div class='name'>Find wrongly segmented sections by inputting a threshold.</div> 
 					<div class='note'>(Use links below for predefined thresholds. From there, you can get into each book and correct the Table of Contents - TOCs.)</div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?count=100&find=find' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?count=100&find=find' target='_blank'>
 					<div class='name'>Find wrongly segmented sections which duplicate more than 100 times. </div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?count=5&find=find' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?count=5&find=find' target='_blank'>
 					<div class='name'>Find wrongly segmented sections which duplicate more than 5 times. </div>
 					<div class='note'>(Long list!)</div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections_details.php?count=2&book_id=' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections_details.php?count=2&book_id=' target='_blank'>
 					<div class='name'>Or, you can get to the TOC page for a given book and begin correcting the TOC. </div>
 					<div class='note'>(Please specify a bookID in the URL by yourself.)</div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?sort_by=time' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?sort_by=time' target='_blank'>
 					<div class='name'>Correct TOCs for 中國方志庫 texts (Sorting by time)</div>
 					<div class='note'></div>
 				</a>
@@ -111,17 +111,17 @@
 		<div class='block'>
 			<div class='title'>中國大陸各省地方志書目查詢系統</div>
 			<div class='content'>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/all_data.csv' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/all_data.csv' target='_blank'>
 					<div class='name'>The list for all extant local monographs from Academia Sinica </div>
 					<div class='note'>(Click to open the CSV file. They need to be aggregated by title. )</div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/analyze_data_from_sinica.php' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/analyze_data_from_sinica.php' target='_blank'>
 					<div class='name'>The statistics for the local monographs from Academia Sinica </div>
 				</a>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/parse_data_from_sinica.php' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/parse_data_from_sinica.php' target='_blank'>
 					<div class='name'>The list for merged extant local monographs of source 1 from Academia Sinica</div>
 				</a>
-				<a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica' target='_blank'>
+				<a class='entry related' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica' target='_blank'>
 					>> All downloaded files
 				</a>
 			</div>
@@ -140,7 +140,7 @@
 		<div class='block'>
 			<div class='title'>Backend Mysql Database</div>
 			<div class='content'>
-				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/phpmyadmin/' target='_blank'>
+				<a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/phpmyadmin/' target='_blank'>
 					<div class='name'>The managing interface (phpmyadmin, login required) </div>
 				</a>
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/index_20150130.php	Fri Jan 30 10:17:44 2015 +0100
@@ -0,0 +1,151 @@
+<?php
+	/*if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
+		$uri = 'https://';
+	} else {
+		$uri = 'http://';
+	}
+	$uri .= $_SERVER['HTTP_HOST'];
+	header('Location: '.$uri.'/xampp/');
+	exit;*/
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+        <head>
+                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+                <link href="index.css" type="text/css" rel="stylesheet"/>
+                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
+                <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
+        </head>
+        <body>
+		<div id='sysName'>Tools for Local Monographs on this machine:</div>
+		<div class="doc">Documentation: 	
+			<a href="documentation.pdf">PDF</a> / 
+			<a href="documentation.docx">WORD</a>
+		</div>
+		<div class='block'>
+			<div class='title'>Search and extract 中國方志庫</div>
+			<div class='content'>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search.php' target='_blank'>
+
+					<div class='name'>Search in the full texts</div> 
+					<div class='note'>(You can specify multiple keywords to search the full texts from the 1,824 local monographs in 中國方志庫, and save the result to a html file.)</div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search_results/locust_temples_2.html' target='_blank'>
+					<div class='name'>Show the search result for "locust temples"</div>
+					<div class='note'>(Show the saved search result for locust temples. From there, you can begin the tagging/extraction procedure.) </div>
+				</a>
+				<a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/search/search_results' target='_blank'>
+					>> All saved search results
+				</a>
+			</div>
+		</div>
+		<!--<div class='block'>
+			<div class='title'>Extract data from 中國方志庫 texts</div>
+			<div class='content'>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/tagging_text.php?id=' target='_blank'>
+					Tag a section by section Id
+					<div class='note'>(Please add the section id to the url.)</div>
+				</a>
+				<a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/' target='_blank'>
+					>> See all the files in this directory
+				</a>
+			</div>
+		</div>-->
+		<div class='block'>
+			<div class='title'>Correct TOCs for 中國方志庫 texts</div>
+			<div class='content'>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php' target='_blank'>
+					<div class='name'>Find wrongly segmented sections by inputting a threshold.</div> 
+					<div class='note'>(Use links below for predefined thresholds. From there, you can get into each book and correct the Table of Contents - TOCs.)</div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?count=100&find=find' target='_blank'>
+					<div class='name'>Find wrongly segmented sections which duplicate more than 100 times. </div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?count=5&find=find' target='_blank'>
+					<div class='name'>Find wrongly segmented sections which duplicate more than 5 times. </div>
+					<div class='note'>(Long list!)</div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections_details.php?count=2&book_id=' target='_blank'>
+					<div class='name'>Or, you can get to the TOC page for a given book and begin correcting the TOC. </div>
+					<div class='note'>(Please specify a bookID in the URL by yourself.)</div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/check_sections.php?sort_by=time' target='_blank'>
+					<div class='name'>Correct TOCs for 中國方志庫 texts (Sorting by time)</div>
+					<div class='note'></div>
+				</a>
+				<!--<a class='entry' href='/interface/check_sections_details.php?book_id=&count=' target='_blank'>
+					Re-segment a section 
+					<div class='note'>(book id and overlapping threshold should be given in the url)</div>
+				</a>-->
+				<!--<a class='entry related' href='/interface/' target='_blank'>
+					>> All related files
+				</a>-->
+			</div>
+		</div>
+		<div class='block'>
+			<div class='title'>Getting coordinates from CHGIS</div>
+			<div class='content'>
+				<a class='entry' href='/map/coordinates/local_monographs_coordinates.html' target='_blank'>
+					<div class='name'>The resulting coordinates for 中國方志庫 from CHGIS</div>
+				</a>
+				<a class='entry' href='/map/coordinates/local_monographs_176_coordinates.html' target='_blank'>
+					<div class='name'>The resulting coordinates for 176 books in 中國方志庫 from CHGIS</div>
+				</a>
+				<a class='entry' href='/map/coordinates/get_coordinates_from_chgis.php' target='_blank'>
+					<div class='name'>To re-get the coordinates from CHGIS</div>
+					<div class='note'>(Warning: it will be a long wait! Append "?list=176" to the url to get coordinates for the 176 books)</div>
+				</a>
+				<a class='entry' href='/map/coordinates/map.php' target='_blank'>
+					<div class='name'>Drawing the coordinates for 中國方志庫 from CHGIS</div>
+					<div class='note'>(Append "?list=176" to the url to draw coordinates for the 176 books)</div>
+				</a>
+				<a class='entry' href='/map/coordinates/csv_files/' target='_blank'>
+					<div class='name'>Raw data of the coordinates for 中國方志庫 from CHGIS</div>
+				</a>
+				<a class='entry related' href='/map/coordinates' target='_blank'>
+					>> All related files
+				</a>
+			</div>
+		</div>
+	
+		<div class='block'>
+			<div class='title'>中國大陸各省地方志書目查詢系統</div>
+			<div class='content'>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/all_data.csv' target='_blank'>
+					<div class='name'>The list for all extant local monographs from Academia Sinica </div>
+					<div class='note'>(Click to open the CSV file. They need to be aggregated by title. )</div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/analyze_data_from_sinica.php' target='_blank'>
+					<div class='name'>The statistics for the local monographs from Academia Sinica </div>
+				</a>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/parse_data_from_sinica.php' target='_blank'>
+					<div class='name'>The list for merged extant local monographs of source 1 from Academia Sinica</div>
+				</a>
+				<a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica' target='_blank'>
+					>> All downloaded files
+				</a>
+			</div>
+		</div>
+		<div class='block'>
+			<div class='title'>Visualization</div>
+			<div class='content'>
+				<a class='entry' href='/map/map.php' target='_blank'>
+					<div class='name'>Visualize data</div>
+				</a>
+				<a class='entry related' href='/map/' target='_blank'>
+					>> All related files
+				</a>
+			</div>
+		</div>
+		<div class='block'>
+			<div class='title'>Backend Mysql Database</div>
+			<div class='content'>
+				<a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/phpmyadmin/' target='_blank'>
+					<div class='name'>The managing interface (phpmyadmin, login required) </div>
+				</a>
+
+			</div>
+		</div>
+
+	</body>
+</html>
--- a/interface/add_dynasty.php	Tue Jan 27 16:40:30 2015 +0100
+++ b/interface/add_dynasty.php	Fri Jan 30 10:17:44 2015 +0100
@@ -61,7 +61,7 @@
 }
 
 
-
+// $dynasty array contains (dynasty, start_year, end_year)
 $dynasty = array("漢",-140,200);
 add_dynasty($dynasty);
 $dynasty = array("三國",220,280);