Page MenuHomeDevCentral

worldcat.php
No OneTemporary

worldcat.php

<?php
class WorldCatPage extends Page {
function analyse () {
parent::analyse();
if (substr($this->url, 0, 30) == "http://www.worldcat.org/title/" && preg_match("@/oclc/([0-9]*)@", $this->url, $matches)) {
$this->switchTo = [
'document' => [
'class' => 'Book',
'params' => [
'OCLC' => $matches[1]
],
'method' => 'queryWorldCatFromOCLC',
],
'template' => 'book',
];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Nov 25, 11:01 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260043
Default Alt Text
worldcat.php (581 B)

Event Timeline