Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
frontend:bookpagetabs [2013/06/18 10:35] giancarlo |
frontend:bookpagetabs [2013/09/27 10:05] giancarlo |
$indice_html = $stringhe[0]; | $indice_html = $stringhe[0]; |
$colleinfo_html = $stringhe[1]; | $colleinfo_html = $stringhe[1]; |
| $bookinfo_html = $stringhe[2]; |
$tabset['1'] = array( | $tabset['1'] = array( |
// #type and #title are the minimum requirements. | // #type and #title are the minimum requirements. |
$tabset['4'] = array('#type' => 'tabpage', '#title' => t('Pages'), '#selected' => $pages_selected, '#content' => $page_items, '#weight' => '4',); | $tabset['4'] = array('#type' => 'tabpage', '#title' => t('Pages'), '#selected' => $pages_selected, '#content' => $page_items, '#weight' => '4',); |
$tabset['5'] = array('#type' => 'tabpage', '#title' => 'PAGE ' . substr($paginapid, -4), '#content' => islandora_book_create_book_view($paginapid), '#selected' => $pagina_selected, '#weight' => '5',); | $tabset['5'] = array('#type' => 'tabpage', '#title' => 'PAGE ' . substr($paginapid, -4), '#content' => islandora_book_create_book_view($paginapid), '#selected' => $pagina_selected, '#weight' => '5',); |
$tabset['6'] = array('#type' => 'tabpage', '#title' => 'Collection info', '#content' => $colleinfo_html, '#weight' => '6',); | $tabset['6'] = array('#type' => 'tabpage', '#title' => 'Book info', '#content' => $bookinfo_html, '#weight' => '6',); |
| $tabset['7'] = array('#type' => 'tabpage', '#title' => 'Collection info', '#content' => $colleinfo_html, '#weight' => '7',); |
return $tabset; | return $tabset; |
} | } |
<WRAP prewrap center> | <WRAP prewrap center> |
<code xml tocnr_book_view.xsl> | <code xml tocnr_book_view.xsl> |
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
<xsl:variable name="OBJECTSPAGE"> | <xsl:variable name="OBJECTSPAGE"> |
<td valign="top"> | <td valign="top"> |
<img> | <img> |
<xsl:attribute name="src"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PID"/>/TN</xsl:attribute> | <xsl:attribute name="src"><xsl:copy-of select="$OBJECTSPAGE"/>fedora/repository/<xsl:copy-of select="$PID"/>/TN |
| </xsl:attribute> |
</img> | </img> |
</td> | </td> |
<xsl:value-of select="text()"/> | <xsl:value-of select="text()"/> |
<xsl:for-each select="*"> | <xsl:for-each select="*"> |
<div><xsl:value-of select="substring-after(name(),':')"/> = <xsl:value-of select="text()"/></div> | <div><xsl:value-of select="substring-after(name(),':')"/> = <xsl:value-of select="text()"/> |
| </div> |
</xsl:for-each> | </xsl:for-each> |
</td> | </td> |
</tr> | </tr> |
</xsl:if> | </xsl:if> |
</xsl:for-each> | </xsl:for-each> |
</tbody> | </tbody> |
$colleinfo_html = $objectHelper->getStream($parentcolle, 'INFO'); | $colleinfo_html = $objectHelper->getStream($parentcolle, 'INFO'); |
$strs[1] = $colleinfo_html; | $strs[1] = $colleinfo_html; |
| $bookinfo_html = $objectHelper->getStream($pid, 'INFO'); |
| $strs[2] = $bookinfo_html; |
return $strs; | return $strs; |
} | } |