<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  >

<head>
  <title>${page_title()} - ${c.site_title}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="shortcut icon" href="http://assets.okfn.org/images/logo/favicon.ico" type="image/x-icon" />

  <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, print" />
  <link rel="stylesheet" href="/css/jquery-ui-1.8.9.custom.css" type="text/css" media="screen, print" />

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  <script type="text/javascript" src="/js/jquery-ui-1.8.9.custom.min.js"></script>

  <py:if test="defined('optional_head')">
    ${optional_head()}
  </py:if>
</head>

<body class="${value_of('body_class', default='')}">

<div id="wrapper" class="hfeed">
  <div id="header">
  <div id="masthead">
    <div id="branding" role="banner">
       <h1 id="site-title">
         <a href="${url(controller='home', action='index')}" title="${c.site_title} Home">
      <py:if test="c.site_logo">
            <img src="${c.site_logo}" alt="${c.site_title} Logo" title="${c.site_title} Logo" style="display: inline;" />
          </py:if>
          <py:if test="not c.site_logo">
            ${c.site_title}
          </py:if>
        </a>
      </h1>
      <div id="site-description">${getattr(c, 'site_description', '')}</div>
    </div> <!-- /branding -->

    <div id="login-and-search">
      <div class="user-nav">
        <py:choose>
        <py:when test="c.account">
        <div class="logged-in">
	  <span id="account_uri" href="${c.account.identifier}" style="display: none;" />
	  Logged in as <strong>${c.user}</strong> |
          <a href="${c.account.identifier}">My Account</a>
          | <a href="${url(controller='account', action='logout')}">Logout</a>
	</div>
        </py:when>
        <py:otherwise>
        <div class="guest">
					<a href="${url(controller='account',action='login')}">Login with <img width="16" height="16" alt="None" src="http://assets.okfn.org/images/icons/openid.png"/> OpenID</a>
        </div>
        </py:otherwise>
        </py:choose>
      </div>
       </div><!-- /login-and-search -->

    <div id="access" role="navigation">
      <div class="skip-link screen-reader-text">
        <a href="#content" title="Skip to content">Skip to content</a>
      </div> 
      <div class="menu">
        <ul>
          <li><a href="/">Home</a></li>
          <!-- <li><a href="${url('import')}">Import</a></li> -->
          <li><a href="/sparql">SPARQL</a></li>
          <!-- <li><a href="${url('add')}">Add</a></li> -->
          <li><a href="${url(controller='isbn', action='index')}">ISBN search</a></li>
          <li><a href="${url(controller='collection', action='index_html')}">Collections</a></li>
          <!-- <li><a href="${url('changesets')}">Changesets</a></li> -->
          <py:if test="c.deliverance_enabled">
          <li><a href="http://blog.bibliographica.org/">Blog</a></li>
          <li><a href="/about">About</a></li>
          <li><a href="/get-involved">Get Involved</a></li>
          </py:if>
          <li><a href="/search">Search</a></li>
        </ul>
      </div> <!-- .menu -->
      <div class="search-form menusearch">
        <form action="/search" method="GET">
          <input type="search" class="search" name="q" value="" autocomplete="off" results="5" placeholder="Search..."/>
          <input type="submit"  class="search" value="search" />
        </form>
      </div>

    </div> <!-- #access -->
  </div><!-- #masthead -->
  </div><!-- #header -->  


  <div id="main"> 
    <div id="container"> 
      <div id="content" role="main"> 

        <div class="page type-page hentry">
          <div class="entry-content">
            <py:if test="defined('content')">
            ${content()}
            </py:if>
            <content>
                <p>Master content template placeholder &hellip; please replace me.</p>
            </content>
          </div><!-- .entry-content -->
        </div>

        <div id="comments">
        </div><!-- #comments -->

      </div> <!-- #content -->
    </div> <!-- #container -->

    <div id="primary" class="widget-area" role="complementary">
      <ul class="xoxo">
        <li class="widget-container widget_text">
          <h3 class="widget-title">About</h3>
          <div class="textwidget">
            The ${c.site_title} service is an <strong><a
                href="http://opendefinition.org/">open</a> catalogue of cultural
              works</strong>. <a
              href="http://openbiblio.net/p/bibliographica/">Find out more &raquo; </a>.
	    
          </div>
        </li>
        <py:if test="defined('primary_sidebar_extras')">
          ${primary_sidebar_extras()}
        </py:if>
      </ul>
    </div><!-- #primary .widget-area -->

  </div><!-- #main -->
  
<div id="footer" role="contentinfo"> 
  <div id="colophon">
    <div id="footer-widget-area" role="complementary">

      <div id="first" class="widget-area">
        <ul class="xoxo">
          <li class="widget-container widget_text">
          <h3 class="widget-title">About</h3>
          <div class="textwidget">
            <ul>
              <li>
                <a href="http://okfn.org/projects/openbiblio/">Project Home Page</a>
              </li>
              <li>
                <a href="http://okfn.org/contact/">Contact Us</a>
              </li>
              <li>
                <a href="http://okfn.org/privacy-policy/">Privacy Policy</a>
              </li>
              <li>
                <a href="/terms.html">Terms and Conditions</a>
              </li>
            </ul>
          </div>
          </li>
        </ul>
      </div><!-- #first .widget-area -->

      <div id="fourth" class="widget-area">
        <ul class="xoxo">
          <li class="widget-container widget_text">
          <h3 class="widget-title">Credits</h3>
          <div class="textwidget">
            <ul>
              <li i18n:msg="">
                <img src="http://assets.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" id="footer-okf-logo" />
                An
                <a href="http://www.okfn.org/">OKF</a> Project
              </li>
              <li class="supported-by">
                Supported by
                <a href="http://idea.ed.ac.uk/">
                  <img src="/idealab.png"
                     alt="IDEALab Edinburgh Logo"
                     />
                </a>
                <a href="http://www.jisc.ac.uk/">
                  <img src="http://openbiblio.net/wp-content/uploads/2010/07/JISCcolour15.gif"
                     alt="JISC Logo"
                     id="jisc-logo"
                     />
                </a>
              </li>
              <li>
                <a href="http://opendefinition.org/okd/">
                  <img alt="This Content and Data is Open" src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" class="ok-buttons" />
                </a>
              </li>
              <li>
                <a href="http://www.opendefinition.org/okd/">
                  <img alt="This Content and Data is Open" src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" class="ok-buttons" />
                </a>
              </li>
            </ul>
          </div>
          </li>
        </ul>
      </div><!-- #fourth .widget-area -->

    </div><!-- #footer-widget-area -->

    <div id="site-info">
      <a href="/" title="${c.site_title}" rel="home">
        ${c.site_title}</a>
    </div><!-- #site-info -->

    <div id="site-generator">
      <a href="http://okfn.org/projects/openbiblio/"
        title="" rel="generator">
        Powered by OpenBiblio 
        <span i18n:msg="version">
          v${c.__version__}
        </span>
      </a>
    </div><!-- #site-generator -->
  </div><!-- #colophon -->
</div><!-- #footer --> 

</div><!-- #wrapper -->

${getattr(c, 'template_footer_end', '')}
</body>
</html>

