[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple additem.tmpl,1.11,1.12

Paul POULAIN tipaul at users.sourceforge.net
Mon Nov 24 17:28:51 CET 2003


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple
In directory sc8-pr-cvs1:/tmp/cvs-serv23449/koha-tmpl/intranet-tmpl/default/en/acqui.simple

Modified Files:
	additem.tmpl 
Log Message:
biblio & item deletion now works fine in MARC editor.
Stores deleted biblio/item in the marc field of the deletedbiblio/deleteditem table.

Index: additem.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui.simple/additem.tmpl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** additem.tmpl	4 Sep 2003 13:04:12 -0000	1.11
--- additem.tmpl	24 Nov 2003 16:28:49 -0000	1.12
***************
*** 39,43 ****
  		<tr>
  			<TMPL_VAR name="item_value">
! 			<td><a href="additem.pl?op=edititem&bibid=<TMPL_VAR name="bibid">&itemnum=<TMPL_VAR name="itemnum">">Edit</a></td>
  		</tr>
  		</TMPL_LOOP>
--- 39,44 ----
  		<tr>
  			<TMPL_VAR name="item_value">
! 			<td><a href="additem.pl?op=edititem&bibid=<TMPL_VAR name="bibid">&itemnum=<TMPL_VAR name="itemnum">"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png" border=0></a></td>
! 			<td><a href="javascript:confirm_deletion(<TMPL_VAR name="bibid">,<TMPL_VAR name="itemnum">)"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/edittrash.png" border=0></a></td>
  		</tr>
  		</TMPL_LOOP>
***************
*** 121,124 ****
--- 122,131 ----
  	defaultvalue=document.forms[0].field_value[i].value;
  	newin=window.open(link+"&result="+defaultvalue,"value builder",'width=500,height=400,toolbar=false,scrollbars=yes');
+ }
+ function confirm_deletion(bibid,itemnum) {
+ 	var is_confirmed = confirm('Do you confirm item deletion ?');
+ 	if (is_confirmed) {
+ 	window.location = "additem.pl?op=delitem&bibid="+bibid+"&itemnum="+itemnum;
+ 	}
  }
  </script>





More information about the Koha-cvs mailing list