<div class="documentByLine"
     id="copyrightDocumentByLine"
     tal:define="bylineInfo view/getLicenseByline;
                 copyright python:bylineInfo[0];
                 alert_msg view/getAlertMsg;
                 citation_info view/getCitationInfo;
                 holder python:here.translate(bylineInfo[1]);
                 license_name python:bylineInfo[2];
                 license_url python:bylineInfo[3];
                 license_button python:bylineInfo[4];"
     i18n:domain="ContentLicensing">

  <div id="copyright-button">
    <a tal:condition="python:license_url and license_button"
       class="link-plain"
       rel="license"
       tal:attributes="href license_url;
                       title python:here.translate(license_name);">
    <img tal:condition="license_button"
         style="vertical-align: text-top; margin-top: 3px; padding-left: 5px"
         tal:attributes="src license_button;
                         alt python:here.translate(license_name);" /></a>
    <img tal:condition="python:license_button and not license_url"
         style="vertical-align: text-top; margin-top: 3px; padding-left: 5px"
         tal:attributes="src license_button;
                         alt python:here.translate(license_name);" />
  </div>

  <div id="copyright-text">
    <tal:block tal:condition="copyright" 
	       tal:replace="python:here.translate(copyright) + ',' " />
    <tal:block tal:condition="holder" 
	       tal:replace="python:here.translate(holder) + '.' " />
    <tal:block tal:condition="license_name">
      <tal:block tal:condition="python:license_name != 'All Rights Reserved'" 
		 i18n:domain="ContentLicensing" i18n:translate="">
	This work is licensed under a 
      </tal:block>
      <a tal:condition="license_url"
	 class="link-plain"
	 rel="license"
         target="_blank"
	 tal:attributes="href license_url;
			 title python:here.translate(license_name);"
	 tal:content="python:here.translate(license_name)">Creative Commons License.</a>
      <tal:block tal:condition="python:not license_url and license_name"
		 tal:replace="python:here.translate(license_name)">
	All Rights Reserved.
      </tal:block>
    </tal:block>
  </div>

  <div id="copyright-citation">
    <a class="visualNoPrint"
       id="click-citation"
       i18n:translate="" 
       tal:attributes="onclick string:prompt('${alert_msg}', '${citation_info}');">Cite/attribute Resource</a>.     
    <span id="print_citation" tal:content="citation_info">
      <tal:comment replace="nothing">Print Version Citation</tal:comment>
    </span>
  </div>

</div>
