Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
frontend:bookpagetabs [2013/07/31 14:53]
giancarlo
frontend:bookpagetabs [2013/09/27 10:05]
giancarlo
Line 69: Line 69:
         $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.
Line 80: Line 81:
         $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;
     }     }
Line 132: Line 134:
                   <xsl:variable name="DATA" select="text()"/>                   <xsl:variable name="DATA" select="text()"/>
                   <xsl:if test="$DATA != ' '">                   <xsl:if test="$DATA != ' '">
-                  <xsl:if test="$FIELD != 'source'"> 
                     <tr>                     <tr>
                       <td valign="top">                       <td valign="top">
Line 147: Line 148:
                       </td>                       </td>
                     </tr>                     </tr>
-                  </xsl:if> 
                   </xsl:if>                                     </xsl:if>                  
                 </xsl:for-each>                 </xsl:for-each>
Line 205: Line 205:
                   </td>                   </td>
                 </tr>                 </tr>
-              </xsl:if> 
-              <xsl:if test="$MODELLO = 'info:fedora/islandora:bookCModel'"> 
-                <xsl:for-each select="/*/*"> 
-                  <xsl:variable name="FIELD1" select="substring-after(name(),':')"/> 
-                  <xsl:variable name="DATA1" select="text()"/> 
-                  <xsl:if test="$FIELD1 = 'source'"> 
-                    <xsl:if test="$DATA1 != ' '"> 
-                      <tr> 
-                        <td colspan="3"> 
-                          <h3/> 
-                        </td> 
-                      </tr> 
-                      <tr> 
-                        <td colspan="3"> 
-                          <h3>External link</h3> 
-                        </td> 
-                      </tr> 
-                      <tr> 
-                        <td> 
-                          <strong>Catalogue</strong> 
-                        </td> 
-                        <td><a href="{$DATA1}" target="_blank"/>Piedmont libraries</td> 
-                      </tr> 
-                    </xsl:if> 
-                  </xsl:if> 
-                </xsl:for-each> 
               </xsl:if>               </xsl:if>
             </table>             </table>
Line 305: Line 279:
     $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;
 } }
 
 
frontend/bookpagetabs.txt · Last modified: 2013/09/27 10:05 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki