Skip to content
27 changes: 27 additions & 0 deletions forms/Neatline_Form_Exhibit.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,30 @@ private function _registerElements()
'value' => $this->exhibit->wms_layers,
'size' => 40
));

// Zoomify Address:
$this->addElement('text', 'zoomify_address', array(
'label' => __('Zoomify Address'),
'description' => __('To use a custom Zoomify layer as the base layer of the exhibit, enter (a) the address of the Zoomified image folder,'),
'value' => $this->exhibit->zoomify_address,
'size' => 40
));

// Zoomify Width:
$this->addElement('text', 'zoomify_width', array(
'label' => __('Zoomify Width'),
'description' => __('(b) the Width of the image as specified in the ImageProperties.xml,'),
'value' => $this->exhibit->zoomify_width,
'size' => 40
));

// Zoomify Height:
$this->addElement('text', 'zoomify_height', array(
'label' => __('Zoomify Height'),
'description' => __('and (c) the Height of the image as specified in the ImageProperties.xml.'),
'value' => $this->exhibit->zoomify_height,
'size' => 40
));

// Spatial Querying:
$this->addElement('checkbox', 'spatial_querying', array(
Expand Down Expand Up @@ -221,6 +245,9 @@ private function _registerElements()
'zoom_levels',
'wms_address',
'wms_layers',
'zoomify_address',
'zoomify_width',
'zoomify_height',
'spatial_querying',
'public'
), 'fields');
Expand Down
3 changes: 3 additions & 0 deletions helpers/Schemas.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ function nl_schema220()
styles TEXT NULL,
map_focus VARCHAR(100) NULL,
map_zoom INT(10) UNSIGNED NULL,
zoomify_address TEXT NULL,
zoomify_height SMALLINT UNSIGNED NULL,
zoomify_width SMALLINT UNSIGNED NULL,

PRIMARY KEY (id)

Expand Down
3 changes: 3 additions & 0 deletions models/NeatlineExhibit.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class NeatlineExhibit extends Neatline_Row_Expandable
public $zoom_levels = 20;
public $wms_address;
public $wms_layers;
public $zoomify_address;
public $zoomify_width;
public $zoomify_height;
public $widgets;
public $title;
public $slug;
Expand Down
Loading