comparison index.php @ 47:886f43b26ee2 extractapp

move/remove develop folder
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Tue, 17 Mar 2015 10:54:13 +0100
parents cbbb7ef22394
children 97c1e5102a22
comparison
equal deleted inserted replaced
46:b3ca5d2b4d3f 47:886f43b26ee2
1
1 <?php 2 <?php
2 /*if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { 3 header("Content-Type: text/html;charset=utf-8");
3 $uri = 'https://'; 4
4 } else { 5 // system configiration
5 $uri = 'http://'; 6 include_once('config/Lib_mb_utf8.php');
6 } 7 include_once('config/config.php');
7 $uri .= $_SERVER['HTTP_HOST']; 8
8 header('Location: '.$uri.'/xampp/'); 9 // require the general classes
9 exit;*/ 10 require("classes/loader.php");
11 require("classes/basecontroller.php");
12 require("classes/basemodel.php");
13
14 // require the model classes
15 require("models/home.php");
16 require("models/extractapp.php");
17
18 // require the controller classes
19 require("controllers/home.php");
20 require("controllers/extractapp.php");
21
22 // create the controller and execute the action
23 $loader = new Loader($_GET, $_POST);
24
25 $controller = $loader->CreateController();
26 $controller->ExecuteAction();
27
10 ?> 28 ?>
11 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
12 <html>
13 <head>
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
15 <link href="index.css" type="text/css" rel="stylesheet"/>
16 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" type="text/javascript"></script>
17 <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
18 </head>
19 <body>
20 <div id='sysName'>Tools for Local Monographs on this machine:</div>
21 <div class="doc">Documentation:
22 <a href="documentation.pdf">PDF</a> /
23 <a href="documentation.docx">WORD</a>
24 </div>
25 <div class='block'>
26 <div class='title'>Search and extract 中國方志庫</div>
27 <div class='content'>
28 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search.php' target='_blank'>
29
30 <div class='name'>Search in the full texts</div>
31 <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>
32 </a>
33 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search_results/locust_temples_2.html' target='_blank'>
34 <div class='name'>Show the search result for "locust temples"</div>
35 <div class='note'>(Show the saved search result for locust temples. From there, you can begin the tagging/extraction procedure.) </div>
36 </a>
37 <a class='entry related' href='https://localgazetteers.mpiwg-berlin.mpg.de/search/search_results' target='_blank'>
38 >> All saved search results
39 </a>
40 </div>
41 </div>
42 <!--<div class='block'>
43 <div class='title'>Extract data from 中國方志庫 texts</div>
44 <div class='content'>
45 <a class='entry' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/tagging_text.php?id=' target='_blank'>
46 Tag a section by section Id
47 <div class='note'>(Please add the section id to the url.)</div>
48 </a>
49 <a class='entry related' href='https://localmonographs.mpiwg-berlin.mpg.de/interface/' target='_blank'>
50 >> See all the files in this directory
51 </a>
52 </div>
53 </div>-->
54 <div class='block'>
55 <div class='title'>Correct TOCs for 中國方志庫 texts</div>
56 <div class='content'>
57 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php' target='_blank'>
58 <div class='name'>Find wrongly segmented sections by inputting a threshold.</div>
59 <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>
60 </a>
61 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?count=100&find=find' target='_blank'>
62 <div class='name'>Find wrongly segmented sections which duplicate more than 100 times. </div>
63 </a>
64 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?count=5&find=find' target='_blank'>
65 <div class='name'>Find wrongly segmented sections which duplicate more than 5 times. </div>
66 <div class='note'>(Long list!)</div>
67 </a>
68 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections_details.php?count=2&book_id=' target='_blank'>
69 <div class='name'>Or, you can get to the TOC page for a given book and begin correcting the TOC. </div>
70 <div class='note'>(Please specify a bookID in the URL by yourself.)</div>
71 </a>
72 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/check_sections.php?sort_by=time' target='_blank'>
73 <div class='name'>Correct TOCs for 中國方志庫 texts (Sorting by time)</div>
74 <div class='note'></div>
75 </a>
76 <!--<a class='entry' href='/interface/check_sections_details.php?book_id=&count=' target='_blank'>
77 Re-segment a section
78 <div class='note'>(book id and overlapping threshold should be given in the url)</div>
79 </a>-->
80 <!--<a class='entry related' href='/interface/' target='_blank'>
81 >> All related files
82 </a>-->
83 </div>
84 </div>
85 <div class='block'>
86 <div class='title'>Getting coordinates from CHGIS</div>
87 <div class='content'>
88 <a class='entry' href='/map/coordinates/local_monographs_coordinates.html' target='_blank'>
89 <div class='name'>The resulting coordinates for 中國方志庫 from CHGIS</div>
90 </a>
91 <a class='entry' href='/map/coordinates/local_monographs_176_coordinates.html' target='_blank'>
92 <div class='name'>The resulting coordinates for 176 books in 中國方志庫 from CHGIS</div>
93 </a>
94 <a class='entry' href='/map/coordinates/get_coordinates_from_chgis.php' target='_blank'>
95 <div class='name'>To re-get the coordinates from CHGIS</div>
96 <div class='note'>(Warning: it will be a long wait! Append "?list=176" to the url to get coordinates for the 176 books)</div>
97 </a>
98 <a class='entry' href='/map/coordinates/map.php' target='_blank'>
99 <div class='name'>Drawing the coordinates for 中國方志庫 from CHGIS</div>
100 <div class='note'>(Append "?list=176" to the url to draw coordinates for the 176 books)</div>
101 </a>
102 <a class='entry' href='/map/coordinates/csv_files/' target='_blank'>
103 <div class='name'>Raw data of the coordinates for 中國方志庫 from CHGIS</div>
104 </a>
105 <a class='entry related' href='/map/coordinates' target='_blank'>
106 >> All related files
107 </a>
108 </div>
109 </div>
110
111 <div class='block'>
112 <div class='title'>中國大陸各省地方志書目查詢系統</div>
113 <div class='content'>
114 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica/all_data.csv' target='_blank'>
115 <div class='name'>The list for all extant local monographs from Academia Sinica </div>
116 <div class='note'>(Click to open the CSV file. They need to be aggregated by title. )</div>
117 </a>
118 <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'>
119 <div class='name'>The statistics for the local monographs from Academia Sinica </div>
120 </a>
121 <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'>
122 <div class='name'>The list for merged extant local monographs of source 1 from Academia Sinica</div>
123 </a>
124 <a class='entry related' href='https://localgazetteers.mpiwg-berlin.mpg.de/interface/insert_new_columns_into_books/data_from_sinica' target='_blank'>
125 >> All downloaded files
126 </a>
127 </div>
128 </div>
129 <div class='block'>
130 <div class='title'>Visualization</div>
131 <div class='content'>
132 <a class='entry' href='/map/map.php' target='_blank'>
133 <div class='name'>Visualize data</div>
134 </a>
135 <a class='entry related' href='/map/' target='_blank'>
136 >> All related files
137 </a>
138 </div>
139 </div>
140 <div class='block'>
141 <div class='title'>Backend Mysql Database</div>
142 <div class='content'>
143 <a class='entry' href='https://localgazetteers.mpiwg-berlin.mpg.de/phpmyadmin/' target='_blank'>
144 <div class='name'>The managing interface (phpmyadmin, login required) </div>
145 </a>
146
147 </div>
148 </div>
149
150 </body>
151 </html>