Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F32064210
jstor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
jstor.php
View Options
<?php
//Page analysis for www.jsor.rog
class
JSTORPage
extends
Page
{
/**
* Initializes a new JSTORPage instance. If an error occured, you can read it in $this->error.
*
* @param string $url the page URL
*/
function
__construct
(
$url
)
{
$this
->
url
=
$url
;
$this
->
data
=
self
::
curl_download
(
$url
);
$this
->
analyse
();
}
function
get_title
()
{
return
self
::
between
(
'<div class="mainCite jnlOverride"><div class="hd title">'
,
'</div>'
);
}
function
analyse
()
{
parent
::
analyse
();
//From HTML code
$this
->
author
=
trim
(
self
::
between
(
'<div class="author">'
,
'</div>'
));
$this
->
journal
=
trim
(
self
::
between
(
'<h2>'
,
"
\n
"
));
$this
->
issn
=
self
::
between
(
'<div class="issn">ISSN: '
,
'</div>'
);
$this
->
url
=
self
::
between
(
'<div class="stable">Article Stable URL: '
,
'</div>'
);
//Publisher
$pub
=
self
::
between
(
'<div class="pubString">Published by: '
,
'</div>'
);
$this
->
publisher
=
$pub
?
self
::
grab
(
$pub
,
'>'
,
'</a>'
)
:
'JSTOR'
;
//Issue information
$srcInfo
=
trim
(
self
::
between
(
'<!-- Formatting requires these tags be mashed together -->'
,
'</div>'
));
$this
->
volume
=
self
::
grab
(
$srcInfo
,
"Vol. "
,
","
);
$this
->
issue
=
self
::
grab
(
$srcInfo
,
"No. "
,
" "
);
$this
->
yyyy
=
self
::
grab
(
$srcInfo
,
'('
,
')'
);
$pos
=
strpos
(
$srcInfo
,
"pp. "
);
$this
->
pages
=
substr
(
$srcInfo
,
$pos
+
4
);
}
function
is_article
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 8, 09:00 (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3773991
Default Alt Text
jstor.php (1 KB)
Attached To
Mode
rSTG Source templates generator
Attached
Detach File
Event Timeline
Log In to Comment