• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_current_record函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_current_record函数的典型用法代码示例。如果您正苦于以下问题:PHP get_current_record函数的具体用法?PHP get_current_record怎么用?PHP get_current_record使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_current_record函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: emiglio_exhibit_builder_page_nav

function emiglio_exhibit_builder_page_nav($exhibitPage = null, $currentPageId)
{
    if (!$exhibitPage) {
        $exhibitPage = get_current_record('exhibit_page');
    }
    $parents = array();
    $currentPage = get_record_by_id('Exhibit Page', $currentPageId);
    while ($currentPage->parent_id) {
        $currentPage = $currentPage->getParent();
        array_unshift($parents, $currentPage->id);
    }
    $class = '';
    $class .= $exhibitPage->id == $currentPageId ? 'current' : '';
    $parent = array_search($exhibitPage->id, $parents) !== false ? ' parent' : '';
    $html = '<li class="' . $class . $parent . '">' . '<a href="' . exhibit_builder_exhibit_uri(get_current_record('exhibit'), $exhibitPage) . '">' . metadata($exhibitPage, 'title') . '</a>';
    $children = $exhibitPage->getChildPages();
    if ($children) {
        $html .= '<ul>';
        foreach ($children as $child) {
            $html .= emiglio_exhibit_builder_page_nav($child, $currentPageId);
            release_object($child);
        }
        $html .= '</ul>';
    }
    $html .= '</li>';
    return $html;
}
开发者ID:sgbalogh,项目名称:peddler_clone4,代码行数:27,代码来源:custom.php


示例2: videoStreamSources

 /**
  * Get the sources for a video stream.
  *
  * @param Item $item
  * @return array The list of sources.
  */
 public function videoStreamSources($item = null)
 {
     $view = $this->view;
     if (is_null($item)) {
         $item = get_current_record('item');
     }
     $sources = array();
     if (get_option('videostream_jwplayer_flash_streaming')) {
         $segmentFlashUrl = metadata($item, array('Streaming Video', 'Video Streaming URL'));
         $segmentFlashType = metadata($item, array('Streaming Video', 'Video Type'));
         $segmentFlashFile = metadata($item, array('Streaming Video', 'Video Filename'));
         $sources[] = array('file' => $segmentFlashUrl . $segmentFlashType . $segmentFlashFile);
     }
     if (get_option('videostream_jwplayer_http_streaming')) {
         $segmentHttpDir = metadata($item, array('Streaming Video', 'HTTP Streaming Directory'));
         $segmentHttpFile = metadata($item, array('Streaming Video', 'HTTP Video Filename'));
         $sources[] = array('file' => $segmentHttpDir . $segmentHttpFile);
     }
     if (get_option('videostream_jwplayer_hls_streaming')) {
         $segmentHlsDir = metadata($item, array('Streaming Video', 'HLS Streaming Directory'));
         $segmentHlsFile = metadata($item, array('Streaming Video', 'HLS Video Filename'));
         $sources[] = array('file' => $segmentHlsDir . $segmentHlsFile);
     }
     return $sources;
 }
开发者ID:Daniel-KM,项目名称:VideoStream,代码行数:31,代码来源:VideoStreamSources.php


示例3: return_files_for_item

function return_files_for_item($options = array(), $wrapperAttributes = array('class' => 'item-file'), $item = null)
{
    if (!$item) {
        $item = get_current_record('item');
    }
    return return_files($item->Files, $options, $wrapperAttributes);
}
开发者ID:HCDigitalScholarship,项目名称:tichadocs_scribe,代码行数:7,代码来源:custom.php


示例4: fc_isFedoraStream

/**
 * Tests whether an item contains Fedora streams.
 *
 * @param Item $item The item.
 * @return bool Is the item a Fedora stream?
 * @author Eric Rochester <[email protected]>
 **/
function fc_isFedoraStream($item = null)
{
    $item = $item ? $item : get_current_record('item');
    $objects = get_db()->getTable('FedoraConnectorObject');
    $isStream = $item && $objects->findByItem($item);
    return $isStream;
}
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:14,代码来源:FedoraConnectorFunctions.php


示例5: filterDisplayElements

 public function filterDisplayElements($elementSets)
 {
     if (!($item = get_current_record('item', false))) {
         return $elementSets;
     }
     if (!metadata($item, array('Item Type Metadata', 'Player'))) {
         return $elementSets;
     }
     $newElementSets = array();
     foreach ($elementSets as $set => $elements) {
         $newElements = $elements;
         if ($set === "Moving Image Item Type Metadata") {
             $newElements = array();
             foreach ($elements as $key => $element) {
                 if ($key === "Player") {
                     $playerElement = $element;
                 } else {
                     $newElements[$key] = $element;
                 }
             }
         }
         $newElementSets[$set] = $newElements;
     }
     if (isset($playerElement)) {
         return array_merge(array('Player' => array('' => $playerElement)), $newElementSets);
     } else {
         return $elementSets;
     }
 }
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:29,代码来源:YouTubeImportPlugin.php


示例6: _getRecordType

 private function _getRecordType($params)
 {
     if (isset($params['module'])) {
         switch ($params['module']) {
             case 'exhibit-builder':
                 //ExhibitBuilder uses slugs in the params, so need to negotiate around those
                 //to dig up the record_id and model
                 if (!empty($params['page_slug_1'])) {
                     $page = get_current_record('exhibit_page', false);
                     $model = 'ExhibitPage';
                 } else {
                     if (!empty($params['item_id'])) {
                         $model = 'Item';
                     } else {
                         //TODO: check for other possibilities
                     }
                 }
                 break;
             default:
                 $model = Inflector::camelize($params['module']) . ucfirst($params['controller']);
                 break;
         }
     } else {
         $model = ucfirst(Inflector::singularize($params['controller']));
     }
     return $model;
 }
开发者ID:regan008,项目名称:WearingGayHistory-Plugins,代码行数:27,代码来源:CommentForm.php


示例7: rhythm_display_date_added

function rhythm_display_date_added($format = 'F j, Y', $item = null)
{
    if (!$item) {
        $item = get_current_record('item');
    }
    $dateAdded = metadata($item, 'added');
    return date($format, strtotime($dateAdded));
}
开发者ID:SBUtltmedia,项目名称:omeka-neatline,代码行数:8,代码来源:custom.php


示例8: __construct

 /**
  * Load viewer properties when instantiating class
  *
  * @param object the database object, defaults to standard Omeka db
  * @return null
  */
 public function __construct($db = null)
 {
     parent::__construct($db);
     if (!empty($this->viewer)) {
         $this->setViewerByName($this->viewer);
     }
     try {
         $this->_item = get_current_record('Item');
     } catch (Exception $e) {
         //ignore for now
     }
 }
开发者ID:bijanisa,项目名称:MultimediaDisplay,代码行数:18,代码来源:MmdProfile.php


示例9: segmentTuningForm

 /**
  * Returns the form code for segmenting video for items.
  *
  * @param Item $item
  * @return string Html string.
  */
 public function segmentTuningForm($item = null)
 {
     $view = $this->view;
     $db = get_db();
     if (is_null($item)) {
         $item = get_current_record('item');
     }
     $sources = $view->videoStreamSources($item);
     $sources = version_compare(phpversion(), '5.4.0', '<') ? json_encode($sources) : json_encode($sources, JSON_UNESCAPED_SLASHES);
     $html = $view->partial('common/segment-tuning-form.php', array('item' => $item, 'sources' => $sources, 'segment_start' => (string) metadata($item, array('Streaming Video', 'Segment Start')), 'segment_end' => (string) metadata($item, array('Streaming Video', 'Segment End')), 'segment_description' => (string) metadata($item, array('Dublin Core', 'Description'))));
     return $html;
 }
开发者ID:Daniel-KM,项目名称:VideoStream,代码行数:18,代码来源:SegmentTuningForm.php


示例10: custom_item_image_gallery

function custom_item_image_gallery($attrs = array(), $imageType = 'square_thumbnail', $filesShow = false, $item = null)
{
    if (!$item) {
        $item = get_current_record('item');
    }
    $files = $item->Files;
    if (!$files) {
        return '';
    }
    $defaultAttrs = array('wrapper' => array('id' => 'item-images'), 'linkWrapper' => array(), 'link' => array(), 'image' => array());
    $attrs = array_merge($defaultAttrs, $attrs);
    $html = '';
    if ($attrs['wrapper'] !== null) {
        $html .= '<div ' . tag_attributes($attrs['wrapper']) . '>' . "\n";
    }
    foreach ($files as $file) {
        if ($attrs['linkWrapper'] !== null) {
            $html .= '<div ' . tag_attributes($attrs['linkWrapper']) . '>' . "\n";
        }
        $fileTitle = metadata($file, 'display title');
        $webPath = $file->getWebPath('original');
        // Taille de l'image en fonction du type de fichier
        if (preg_match("/\\.jpg\$/", $webPath)) {
            $imageType = 'fullsize';
            $attrs['image'] = array('style' => 'max-width: 100%');
        } else {
            $imageType = 'thumbnail';
            $attrs['image'] = array('style' => 'width:5em;vertical-align:middle;');
        }
        $image = file_image($imageType, $attrs['image'], $file);
        $html .= '<h2 class="title" style="text-align:center;">' . $fileTitle . '</h2>' . "\n";
        if ($filesShow) {
            $html .= link_to($file, 'show', $image, $attrs['link']);
        } else {
            if (preg_match("/\\.pdf\$/", $webPath)) {
                $html .= '<p style="padding:0 1em 1em 1em;color: #333333;">T&eacute;l&eacute;charger le fichier PDF : ';
            }
            $linkAttrs = $attrs['link'] + array('href' => $webPath);
            $html .= '<a ' . tag_attributes($linkAttrs) . '>' . $image . '</a>' . "\n";
            if (preg_match("/\\.pdf\$/", $webPath)) {
                $html .= '</p>';
            }
        }
        if ($attrs['linkWrapper'] !== null) {
            $html .= '</div>' . "\n";
        }
    }
    if ($attrs['wrapper'] !== null) {
        $html .= '</div>' . "\n";
    }
    return $html;
}
开发者ID:pcouchet,项目名称:seasons-ahp,代码行数:52,代码来源:custom.php


示例11: getBookReader

 /**
  * Get the specified BookReader.
  *
  * @param array $args Associative array of optional values:
  *   - (integer|Item) item: The item is the current one if not set.
  *   - (integer) page: set the page to be shown when including the iframe.
  *   - (boolean) embed_functions: include buttons (Zoom, Search...).
  *   - (integer) mode_page: allow to display 1 or 2 pages side-by-side.
  *   - (integer) part: can be used to display the specified part of a book.
  *
  * @return string. The html string corresponding to the BookReader.
  */
 public function getBookReader($args = array())
 {
     if (!isset($args['item'])) {
         $item = get_current_record('item');
     } elseif ($args['item'] instanceof Item) {
         $item = $args['item'];
     } else {
         $item = get_record_by_id('Item', (int) $args['item']);
     }
     if (empty($item)) {
         return '';
     }
     $part = empty($args['part']) ? 0 : (int) $args['part'];
     $page = empty($args['page']) ? '0' : $args['page'];
     // Currently, all or none functions are enabled.
     $embed_functions = isset($args['embed_functions']) ? $args['embed_functions'] : get_option('bookreader_embed_functions');
     // TODO Count leaves, not files.
     if ($item->fileCount() > 1) {
         $mode_page = isset($args['mode_page']) ? $args['mode_page'] : get_option('bookreader_mode_page');
     } else {
         $mode_page = 1;
     }
     // Build url of the page with iframe.
     $queryParams = array();
     if ($part > 1) {
         $queryParams['part'] = $part;
     }
     if (empty($embed_functions)) {
         $queryParams['ui'] = 'embed';
     }
     $url = absolute_url(array('id' => $item->id), 'bookreader_viewer', $queryParams);
     $url .= '#';
     $url .= empty($page) ? '' : 'page/n' . $page . '/';
     $url .= 'mode/' . $mode_page . 'up';
     $class = get_option('bookreader_class');
     if (!empty($class)) {
         $class = ' class="' . $class . '"';
     }
     $width = get_option('bookreader_width');
     if (!empty($width)) {
         $width = ' width="' . $width . '"';
     }
     $height = get_option('bookreader_height');
     if (!empty($height)) {
         $height = ' height="' . $height . '"';
     }
     $html = '<div><iframe src="' . $url . '"' . $class . $width . $height . ' frameborder="0"></iframe></div>';
     return $html;
 }
开发者ID:mjlassila,项目名称:BookReader,代码行数:61,代码来源:GetBookReader.php


示例12: videoStream

 /**
  * Get the specified JW Player to display a video stream.
  *
  * @param Item $item
  * @return string Html string.
  */
 public function videoStream($item = null)
 {
     $view = $this->view;
     $db = get_db();
     if (is_null($item)) {
         $item = get_current_record('item');
     }
     $sources = $view->videoStreamSources($item);
     $sources = version_compare(phpversion(), '5.4.0', '<') ? json_encode($sources) : json_encode($sources, JSON_UNESCAPED_SLASHES);
     $partial = get_option('videostream_jwplayer_external_control') ? 'video-stream-external-control' : 'video-stream-internal-control';
     $html = $view->partial('common/' . $partial . '.php', array('item' => $item, 'sources' => $sources, 'segment_start' => (string) metadata($item, array('Streaming Video', 'Segment Start')), 'segment_end' => (string) metadata($item, array('Streaming Video', 'Segment End')), 'segment_description' => (string) metadata($item, array('Dublin Core', 'Description'))));
     if (get_option('videostream_display_current')) {
         $html .= $view->partial('common/video-stream-current.php', array('item' => $item, 'video_filename' => (string) metadata($item, array('Streaming Video', 'Video Filename'))));
     }
     return $html;
 }
开发者ID:Daniel-KM,项目名称:VideoStream,代码行数:22,代码来源:VideoStream.php


示例13: testCanRetrieveCorrectExhibitPageValue

 /**
  * Tests whether metadata() returns the correct value for an exhibit page.
  *
  * @uses metadata()
  **/
 public function testCanRetrieveCorrectExhibitPageValue()
 {
     $exhibit = $this->helper->createNewExhibit(true, false, 'Exhibit Title', 'Exhibit Description', 'Exhibit Credits', 'exhibitslug');
     $this->assertTrue($exhibit->exists());
     $exhibitPage = $this->helper->createNewExhibitPage($exhibit, null, 'Exhibit Page Title', 'exhibitpageslug', 1, 'text');
     $this->assertTrue($exhibitPage->exists());
     $this->dispatch('exhibits/show/exhibitslug/exhibitpageslug');
     $exhibitPage = get_current_record('exhibit_page');
     $this->assertTrue($exhibitPage->exists());
     $this->assertEquals('Exhibit Page Title', $exhibitPage->title);
     $this->assertEquals('exhibitpageslug', $exhibitPage->slug);
     // Exhibit Page Title
     $this->assertEquals('Exhibit Page Title', metadata('exhibitPage', 'Title'));
     // Exhibit Page Layout
     $this->assertEquals('text', metadata('exhibitPage', 'Layout'));
     // Exhibit Page Order
     $this->assertEquals(1, metadata('exhibitPage', 'Order'));
     // Exhibit Page Slug
     $this->assertEquals('exhibitpageslug', metadata('exhibitPage', 'Slug'));
 }
开发者ID:fitnycdigitalinitiatives,项目名称:plugin-ExhibitBuilder,代码行数:25,代码来源:ExhibitPageTest.php


示例14: iiifCollection

 /**
  * Get the IIIF manifest for the specified collection.
  *
  * @param Record|integer|null $record Collection
  * @param boolean $asJson Return manifest as object or as a json string.
  * @return Object|string|null. The object or the json string corresponding to the
  * manifest.
  */
 public function iiifCollection($record = null, $asJson = true)
 {
     if (is_null($record)) {
         $record = get_current_record('collection');
     } elseif (is_numeric($record)) {
         $record = get_record_by_id('Collection', (int) $record);
     }
     if (empty($record)) {
         return null;
     }
     $recordClass = get_class($record);
     if ($recordClass != 'Collection') {
         return null;
     }
     $result = $this->_buildManifestCollection($record);
     if ($asJson) {
         return version_compare(phpversion(), '5.4.0', '<') ? json_encode($result) : json_encode($result, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
     }
     // Return as array
     return $result;
 }
开发者ID:pabalexa,项目名称:UniversalViewer4Omeka,代码行数:29,代码来源:IiifCollection.php


示例15: iiifManifest

 /**
  * Get the IIIF manifest for the specified record.
  *
  * @param Record|integer|null $record
  * @param boolean $asJson Return manifest as object or as a json string.
  * @return Object|string|null. The object or the json string corresponding to the
  * manifest.
  */
 public function iiifManifest($record = null, $asJson = true, $alternative = false, $currentImage = false)
 {
     if (is_null($record)) {
         $record = get_current_record('item');
     } elseif (is_numeric($record)) {
         $record = get_record_by_id('Item', (int) $record);
     }
     if (empty($record)) {
         return null;
     }
     $recordClass = get_class($record);
     if ($recordClass == 'Item') {
         $result = $this->_buildManifestItem($record, $alternative, $currentImage);
     } elseif ($recordClass == 'Collection') {
         return $this->view->iiifCollection($record, $asJson);
     } else {
         return null;
     }
     if ($asJson) {
         return version_compare(phpversion(), '5.4.0', '<') ? json_encode($result) : json_encode($result, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
     }
     // Return as array
     return $result;
 }
开发者ID:kyfr59,项目名称:cg35,代码行数:32,代码来源:IiifManifest.php


示例16: exhibit_builder_exhibit_item_uri

/**
 * Return a URL to an item within an exhibit.
 * 
 * @param Item $item
 * @param Exhibit|null $exhibit If null, will use the current exhibit.
 * @return string
 */
function exhibit_builder_exhibit_item_uri($item, $exhibit = null)
{
    if (!$exhibit) {
        $exhibit = get_current_record('exhibit');
    }
    return url(array('slug' => $exhibit->slug, 'item_id' => $item->id), 'exhibitItem');
}
开发者ID:rshiggin,项目名称:omeka-custom-exhibit,代码行数:14,代码来源:ExhibitFunctions.php


示例17: link_to_collection

    
            <?php 
    echo link_to_collection(__('Edit'), array('class' => 'big green button'), 'edit');
    ?>
        <?php 
}
?>
        <a href="<?php 
echo html_escape(public_url('collections/show/' . metadata('collection', 'id')));
?>
" class="big blue button" target="_blank"><?php 
echo __('View Public Page');
?>
</a>
        <?php 
if (is_allowed(get_current_record('collection'), 'delete')) {
    ?>
    
            <?php 
    echo link_to_collection(__('Delete'), array('class' => 'big red button delete-confirm'), 'delete-confirm');
    ?>
        <?php 
}
?>
    </div>       
    
    <div class="public-featured panel">
        <p><span class="label"><?php 
echo __('Public');
?>
:</span> <?php 
开发者ID:plagmada,项目名称:plagmada-archives,代码行数:30,代码来源:show.php


示例18: shortcodeOpenLayersZoom

 /**
  * Shortcode to display viewer.
  *
  * @param array $args
  * @param Omeka_View $view
  * @return string
  */
 public static function shortcodeOpenLayersZoom($args, $view)
 {
     // Check required arguments
     $recordType = isset($args['record_type']) ? $args['record_type'] : 'Item';
     $recordType = ucfirst(strtolower($recordType));
     if (!in_array($recordType, array('Item', 'File'))) {
         return;
     }
     // Get the specified record.
     if (isset($args['record_id'])) {
         $recordId = (int) $args['record_id'];
         $record = get_record_by_id($recordType, $recordId);
     } else {
         $record = get_current_record(strtolower($recordType));
     }
     if (empty($record)) {
         return;
     }
     $html = $view->openLayersZoom()->zoom($record);
     if ($html) {
         $html = '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >' . js_tag('ol') . js_tag('OpenLayersZoom') . $html;
         return $html;
     }
 }
开发者ID:patrova,项目名称:OpenLayersZoom,代码行数:31,代码来源:OpenLayersZoomPlugin.php


示例19: append


//.........这里部分代码省略.........
            if (get_option('jwplayer_flash_primary')) {
                ?>
		primary: "flash",
		<?php 
            }
            ?>
		autostart: false,
		width: "95%",
		height: <?php 
            echo get_option('jwplayer_height_public');
            ?>
		}
		);
		jwplayer("jwplayer_plugin").onReady(function(){
				jwplayer("jwplayer_plugin").seek(startTime);
                            <?php 
            if (get_option('jwplayer_autostart') == 0) {
                ?>
                                jwplayer("jwplayer_plugin").pause();
                            <?php 
            }
            ?>
		}
		);
		<?php 
        }
        ?>
        </script>
            <?php 
        if (get_option('jwplayer_display_current')) {
            ?>
                
                <?php 
            $orig_item = get_current_record('item');
            $orig_video = metadata("item", array("Streaming Video", "Video Filename"));
            ?>
                <?php 
            $items = get_records('item', array('collection' => metadata('item', 'collection id'), 'sort_field' => 'Streaming Video,Segment Start'), null);
            ?>
                
                <?php 
            set_loop_records('items', $items);
            if (has_loop_records('items')) {
                $items = get_loop_records('items');
            }
            ?>
                <?php 
            foreach (loop('items') as $item) {
                ?>
                <?php 
                if (metadata('item', array('Streaming Video', 'Segment Type')) == 'Scene' && metadata('item', array('Streaming Video', 'Video Filename')) == $orig_video) {
                    ?>
                    <div class="scene" id="<?php 
                    echo metadata('item', array('Streaming Video', 'Segment Start'));
                    ?>
" title="<?php 
                    echo metadata('item', array('Streaming Video', 'Segment End'));
                    ?>
" style="display:none;">
                    <h2>Current video segment:</h2>
                    <h3><?php 
                    echo link_to_item(metadata('item', array('Dublin Core', 'Title')));
                    ?>
</h3>
                    <div style="overflow:auto; max-height:150px;">
                    <p> <?php 
开发者ID:wmcowan,项目名称:VideoStream,代码行数:67,代码来源:VideoStreamPlugin.php


示例20: exhibit_builder_page_summary

/**
 * Get a list item for a page, containing a sublist of all its children.
 */
function exhibit_builder_page_summary($exhibitPage = null)
{
    if (!$exhibitPage) {
        $exhibitPage = get_current_record('exhibit_page');
    }
    $html = '<li>' . '<a href="' . exhibit_builder_exhibit_uri(get_current_record('exhibit'), $exhibitPage) . '">' . metadata($exhibitPage, 'title') . '</a>';
    $children = $exhibitPage->getChildPages();
    if ($children) {
        $html .= '<ul>';
        foreach ($children as $child) {
            $html .= exhibit_builder_page_summary($child);
            release_object($child);
        }
        $html .= '</ul>';
    }
    $html .= '</li>';
    return $html;
}
开发者ID:kyfr59,项目名称:cg35,代码行数:21,代码来源:ExhibitPageFunctions.php



注:本文中的get_current_record函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_current_screen函数代码示例发布时间:2022-05-15
下一篇:
PHP get_current_page函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap