Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764450
D997.id2546.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D997.id2546.diff
View Options
diff --git a/pages/index.dat b/pages/index.dat
old mode 100644
new mode 100755
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -26,4 +26,5 @@
http://www.tandfonline.com TaylorAndFrancis
http://www.theguardian.com TheGuardian
https://www.theguardian.com TheGuardian
+http://www.japantimes.co.jp/ TheJapanTimes
http://www.worldcat.org/ WorldCat
diff --git a/pages/thejapantimes.php b/pages/thejapantimes.php
new file mode 100644
--- /dev/null
+++ b/pages/thejapantimes.php
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * Represents a page from the http://www.japantimes.co.jp/ site.
+ */
+class TheJapanTimesPage extends Page {
+ /**
+ * Analyses the page and extracts metadata
+ */
+ function analyse () {
+ parent::analyse();
+
+ // Hardcoded known info
+ $this->site = "[[The Japan Times]]";
+
+ // Gets the date from the URL
+ $this->extractYYYYMMDDDateFromURL();
+
+ // Gets author
+ // e.g. <h5 class="writer" role="author" >by <a href="http://www.japantimes.co.jp/author/int-eric_johnston/" title="Posts by Eric Johnston" class="author url fn" rel="author">Eric Johnston</a></h5>
+ $this->author = self::between('rel="author">', '</a>');
+
+ // Remove pipe and website name from the title
+ $this->title = array_shift(explode('|', $this->title));
+ }
+}
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 05:54 (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257354
Default Alt Text
D997.id2546.diff (1 KB)
Attached To
Mode
D997: Analyze The Japan Times
Attached
Detach File
Event Timeline
Log In to Comment