Browse Source

Full view for opac-serials. Includes tabbed view ported from addbiblio in the intranet, but still haven't figured out how to get the container div to extend to the bottom of the content

3.0.x
oleonard 19 years ago
parent
commit
dbbfb25439
  1. 80
      koha-tmpl/opac-tmpl/npl/en/opac-full-serial-issues.tmpl

80
koha-tmpl/opac-tmpl/npl/en/opac-full-serial-issues.tmpl

@ -0,0 +1,80 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- Serials
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!--TMPL_INCLUDE NAME="masthead_adv.inc" -->
<!--TMPL_INCLUDE NAME="navigation.inc" -->
<!-- TMPL_UNLESS name="popup" -->
<div id="main">
<h2>Subscription information for <em><!-- TMPL_VAR name="bibliotitle" --></em></h2>
<form action="opac-detail.pl" method="get"><input type="hidden" name="bib" value="<!-- TMPL_VAR name="biblionumber" -->" /><input type="submit" class="icon brief" value="Normal View" /></form>
<!-- /TMPL_UNLESS -->
<div class="tabs">
<!-- TMPL_LOOP NAME="years" -->
<!-- TMPL_IF NAME="year" -->
<a href="#" onclick="active(<!-- TMPL_VAR NAME="year" -->); return false;" id="link<!-- TMPL_VAR NAME="year" -->"><!-- TMPL_VAR NAME="year" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</div>
<!-- TMPL_LOOP NAME="years" -->
<div name="<!-- TMPL_VAR NAME="year" -->" id="<!-- TMPL_VAR NAME="year" -->" class="tab" <!--TMPL_IF Name="first" -->style="visibility:visible"<!--/TMPL_IF -->>
<table>
<caption><!-- TMPL_VAR NAME="year" --> Issues</caption>
<tr>
<th> Date
</th>
<th> Number
</th>
<th> Status
</th>
</tr>
<!-- TMPL_LOOP Name="serials" -->
<tr>
<td>
<!-- TMPL_VAR Name="planneddate" -->
</td>
<td>
<!-- TMPL_VAR Name="serialseq" -->
</td>
<td>
<!-- TMPL_IF Name="status1" -->Arrived<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status2" -->Waited<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<!--/TMPL_LOOP -->
</div>
<script language="JavaScript" type="text/javascript">
function active(numlayer)
{
for (i=<!--TMPL_VAR Name="yearmin"-->; i<=<!--TMPL_VAR Name="yearmax"-->; i++ ) {
ong = i;
link = "link"+i;
if (numlayer==i) {
document.getElementById(ong).style.visibility="visible";
document.getElementById(link).style.color="#000066";
document.getElementById(link).style.backgroundColor="#FFFFCC";
} else {
document.getElementById(ong).style.visibility="hidden";
if (document.getElementById(link)) {
document.getElementById(link).style.color="#669999";
document.getElementById(link).style.backgroundColor="#D8DEB8";
}
}
}
}
<!-- TMPL_LOOP name="years" -->
<!-- TMPL_IF NAME="first" -->
active(<!-- TMPL_VAR NAME="year" -->);
<!-- /TMPL_IF -->
<!--/TMPL_LOOP -->
</script>
</body>
</html>
Loading…
Cancel
Save