[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple addbiblio.tmpl,1.18,1.19
Paul POULAIN
tipaul at users.sourceforge.net
Thu Jun 19 18:38:52 CEST 2003
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple
In directory sc8-pr-cvs1:/tmp/cvs-serv9765/koha-tmpl/intranet-tmpl/default/en/acqui.simple
Modified Files:
addbiblio.tmpl
Log Message:
partial work for repetable fields.
Near each field is a +
If you click on it, it's duplicated.
TODO :
* cc the + to each tab (for instance, only in tab 0)
* doing the french template
* fixing an annoying bug : everything is stored in the same field :
200$a$b$c$a$b$c and not
200$a$b$c
200$a$b$c
as expected.
Index: addbiblio.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/addbiblio.tmpl,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** addbiblio.tmpl 17 Jun 2003 11:21:12 -0000 1.18
--- addbiblio.tmpl 19 Jun 2003 16:38:49 -0000 1.19
***************
*** 8,12 ****
</STYLE-->
! <form method="post" name="f">
<table width=100% cellspacing=0 cellpadding=5 border=1>
<tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
--- 8,12 ----
</STYLE-->
! <form method="post" name="f_add">
<table width=100% cellspacing=0 cellpadding=5 border=1>
<tr background="<TMPL_VAR name="themelang">/images/background-mem.gif">
***************
*** 28,31 ****
--- 28,32 ----
<td width=9% align="center"><a href="javascript:active(9)"><div id="link9">9</div></a></td>
<td width=10% align="center"><input type="hidden" name="op" value="addbiblio">
+ <input type="hidden" name="addfield_field">
<input type="hidden" name="oldbiblionumber" value="<TMPL_VAR name="oldbiblionumber">">
<input type="button" value="Add biblio" onClick='Check(this.form)' accesskey="w">
***************
*** 40,44 ****
<table width=100% cellspacing=0 cellpadding=2 border=0>
<TMPL_LOOP name="0XX">
! <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif"><td colspan=4><b><TMPL_VAR name="tag"> <input type="hidden" name="ind_tag" value="<TMPL_VAR name="tag">"><input type="text" name="indicator" size=3 maxlength=2 value="<TMPL_VAR name="indicator">"> - <tmpl_var name="tag_lib"></td></tr>
<TMPL_LOOP name="subfield_loop">
<tr>
--- 41,45 ----
<table width=100% cellspacing=0 cellpadding=2 border=0>
<TMPL_LOOP name="0XX">
! <tr background="<TMPL_VAR name="themelang">/images/background-mem.gif"><td colspan=4><b><TMPL_VAR name="tag"> <input type="hidden" name="ind_tag" value="<TMPL_VAR name="tag">"><input type="text" name="indicator" size=3 maxlength=2 value="<TMPL_VAR name="indicator">"> - <tmpl_var name="tag_lib"> <a href="javascript:AddField(<TMPL_VAR name="tag">)">+</a></td></tr>
<TMPL_LOOP name="subfield_loop">
<tr>
***************
*** 370,374 ****
alert(alertString2);
} else {
! document.f.submit();
}
}
--- 371,375 ----
alert(alertString2);
} else {
! document.forms[0].submit();
}
}
***************
*** 397,400 ****
--- 398,406 ----
}
+ function AddField(field) {
+ document.forms[0].op.value = "addfield";
+ document.forms[0].addfield_field.value=field;
+ document.f_add.submit();
+ }
</script>
</body>
More information about the Koha-cvs
mailing list