[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/catalogue MARCdetail.tmpl,NONE,1.1 searchresults.tmpl,1.1.1.1,1.2

Paul POULAIN tipaul at users.sourceforge.net
Mon Oct 7 16:01:29 CEST 2002


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/catalogue
In directory usw-pr-cvs1:/tmp/cvs-serv4691

Modified Files:
	searchresults.tmpl 
Added Files:
	MARCdetail.tmpl 
Log Message:
road to 1.3.1 : marc viewing from biblio search

--- NEW FILE ---
<TMPL_INCLUDE NAME="cat-top.inc">

<table width=100% cellspacing=0 cellpadding=5 border=1>
<tr>
	<td bgcolor="#cccc99" background="/images/background-mem.gif" colspan=2><b>MARC biblio : <TMPL_VAR name="bibid"></b></td>
</tr>
<tr>
	<td colspan=2>
	<table width=100% border=0 colspacing=0 cellpadding=0>
	<tr>
		<td width=9% align="center"><a href="javascript:active(0)"><div id="link0">0xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(1)" ><div id="link1">1xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(2)"><div  id="link2">2xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(3)"><div  id="link3">3xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(4)"><div  id="link4">4xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(5)"><div  id="link5">5xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(6)"><div  id="link6">6xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(7)"><div  id="link7">7xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(8)"><div  id="link8">8xx</div></a></td>
		<td width=9% align="center"><a href="javascript:active(9)"><div  id="link9">9xx</div></a></td>
		<td width=10% align="center"><a href="javascript:active(10)"><div  id="linkitem">Item</div></a></td>
	</tr>
	</table>
	</td>
</tr>
</table>
   <DIV name="0XX" id="0XX" style="position:absolute;left:100px;top:150px;visibility:visible">
    <table width=100% border=0>
	<TMPL_LOOP name="0XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
		<td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
		<td width="40%"><TMPL_VAR name="marc_value"></a>
	</tr>
	</tmpl_loop>
	</tmpl_loop>
     </table>
     </DIV>

    <DIV name="1XX" id="1XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="1XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="2XX" id="2XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="2XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
 		<td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
		<td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="3XX" id="3XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="3XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="4XX" id="4XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="4XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="5XX" id="5XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="5XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

	<DIV name="6XX" id="6XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=90% border=0>
	<TMPL_LOOP name="6XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="7XX" id="7XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="7XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

    <DIV name="8XX" id="8XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=100% border=0>
	<TMPL_LOOP name="8XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>
    <DIV name="9XX" id="9XX" style="position:absolute;left:100px;top:150px;visibility:hidden">
    <table width=90% border=0>
	<TMPL_LOOP name="9XX">
	<tr colspan=2><td><b><tmpl_var name="tag"></td></tr>
	<TMPL_LOOP name="subfield">
	<tr>
         <td width="60%"><TMPL_VAR name="marc_tag"> <TMPL_VAR name="marc_lib"></td>
	 <td width="40%"><TMPL_VAR name="marc_value"></a>
       </tr>
	</TMPL_LOOP>
	</TMPL_LOOP>
     </table>
     </DIV>

<script LANGUAGE="JavaScript">
function active(numlayer)
{
for (i=0; i <= 9 ; i++ ) {
    ong = i+"XX";
	link = "link"+i;
    if (numlayer==i) {
	document.getElementById(ong).style.visibility="visible";
	document.getElementById(link).style.backgroundColor="#11AA11";
} else {
	document.getElementById(ong).style.visibility="hidden";
	document.getElementById(link).style.backgroundColor="#FFFFFF";
}
}
}
</script>
</body>
</html>

Index: searchresults.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/catalogue/searchresults.tmpl,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** searchresults.tmpl	16 Sep 2002 09:10:27 -0000	1.1.1.1
--- searchresults.tmpl	7 Oct 2002 14:01:21 -0000	1.2
***************
*** 1,6 ****
! <TMPL_INCLUDE NAME="/usr/share/koha/intranet/htdocs/includes/cat-top.inc">
! <TMPL_INCLUDE NAME="searchheader.tmpl">
! <table border=0 cellspacing=0 cellpadding=0>
! <tr bgcolor=#ccccff><th>Title</th><th>Author</th><th>Item Count</th><th>Biblionumber</th></tr>
  <TMPL_LOOP NAME=SEARCH_RESULTS>
    <tr>
--- 1,8 ----
! <TMPL_INCLUDE NAME="cat-top.inc">
! <a href=search.pl?template=cmsdsearchresults.tmpl&startfrom=<TMPL_VAR NAME="startfrom">>Results with dewey</a>
! | <a href=search.pl?template=searchresults.tmpl&startfrom=<TMPL_VAR NAME="startfrom">>Results with biblionumber</a>
! <hr>
! <table border=0 cellspacing=0 cellpadding=5>
! <tr bgcolor=#ccccff><th>Title</th><th>Author</th><th>Item Count</th><th>Biblionumber</th><th>MARC detail</th></tr>
  <TMPL_LOOP NAME=SEARCH_RESULTS>
    <tr>
***************
*** 9,15 ****
    <td align=center> <TMPL_VAR NAME=itemcount> </td>
    <td> <TMPL_VAR NAME=biblionumber> </td>
    </tr>
  </TMPL_LOOP>
! <tr><td colspan=4 bgcolor=#ccccff>
      <table border=0 cellpadding=0 cellspacing=0 width=100%>
      <tr><td align=left>
--- 11,18 ----
    <td align=center> <TMPL_VAR NAME=itemcount> </td>
    <td> <TMPL_VAR NAME=biblionumber> </td>
+   <td> <a href="MARCdetail.pl?biblionumber=<TMPL_VAR name="biblionumber">">MARC</a>
    </tr>
  </TMPL_LOOP>
! <tr><td colspan=5 bgcolor=#ccccff>
      <table border=0 cellpadding=0 cellspacing=0 width=100%>
      <tr><td align=left>





More information about the Koha-cvs mailing list