[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin...
From: |
Henri-Damien LAURENT |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/cataloguin... |
Date: |
Mon, 16 Jul 2007 15:41:40 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Changes by: Henri-Damien LAURENT <hdl> 07/07/16 15:41:40
Modified files:
koha-tmpl/intranet-tmpl/prog/en/cataloguing: addbiblio.tmpl
Log message:
AddBiblio can be executed as a popup now.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/addbiblio.tmpl?cvsroot=koha&r1=1.7&r2=1.8
Patches:
Index: addbiblio.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/cataloguing/addbiblio.tmpl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- addbiblio.tmpl 9 Jul 2007 13:03:46 -0000 1.7
+++ addbiblio.tmpl 16 Jul 2007 15:41:40 -0000 1.8
@@ -2,9 +2,17 @@
<title>Koha › Cataloging › <!-- TMPL_IF NAME="biblionumber"
-->Edit MARC Record Number <!-- TMPL_VAR name="biblionumber" --><!-- TMPL_ELSE
-->Add MARC Record<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!--TMPL_UNLESS Name="popup"-->
<!-- TMPL_INCLUDE NAME="menus.inc" -->
<!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
-
+<!--/TMPL_UNLESS-->
+<!--TMPL_IF Name="done"-->
+<script language="JavaScript" type="text/javascript">
+ opener.document.forms['f'].biblionumber.value=<!--TMPL_VAR
Name="biblionumber"-->;
+ opener.document.forms['f'].title.value='<!--TMPL_VAR Name="title"
ESCAPE=HTML-->';
+ self.close();
+</script>
+<!--TMPL_ELSE-->
<form method="post" name="f" id="f" action="addbiblio.pl">
<h1><!-- TMPL_IF NAME="biblionumtagfield" -->Edit MARC Record Number <!--
TMPL_VAR name="biblionumber" --><!-- TMPL_ELSE -->Add MARC Record<!-- /TMPL_IF
--></h1>
@@ -12,14 +20,21 @@
<!-- TMPL_IF name="biblionumber" -->
<input type="button" value="Save Bibliographic Record and go to Items"
onclick="Check(this.form)" accesskey="w" />
<!-- TMPL_ELSE -->
+ <!--TMPL_IF Name="popup"-->
+ <input type="button" value="Add Bibliographic Record"
onclick="Check(this.form)" accesskey="w" />
+ <!--TMPL_ELSE-->
<input type="button" value="Add Bibliographic Record and go to Items"
onclick="Check(this.form)" accesskey="w" />
<!-- /TMPL_IF -->
+ <!-- /TMPL_IF -->
<input type="button" value="z39.50 Search" onclick="PopupZ3950(); return
false;" />
</div>
<br />
Change framework : <!--TMPL_VAR Name="framework" -->
<input type="hidden" name="op" value="addbiblio" />
+<!--TMPL_IF Name="popup"-->
+ <input type="hidden" name="mode" value="popup" />
+<!--/TMPL_IF-->
<input type="hidden" name="repeat_field" />
<input type="hidden" name="addfield_field" />
<input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR
NAME="frameworkcode" -->" />
@@ -49,7 +64,7 @@
<!-- show duplicate warning on tab 0 only -->
<!-- TMPL_IF name="duplicatebiblionumber" -->
<div class="error">
- <p class="problem">Is this a duplicate of <a
href="../cataloguing/MARCdetail.pl?biblionumber=<!-- TMPL_VAR
name="duplicatebiblionumber" -->"
onclick="openWindow('../MARCdetail.pl?biblionumber=<!-- TMPL_VAR
name="duplicatebiblionumber" -->&popup=1', 'Duplicate biblio'; return
false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
+ <p class="problem">Is this a duplicate of <a
href="../catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR
name="duplicatebiblionumber" -->"
onclick="openWindow('../MARCdetail.pl?biblionumber=<!-- TMPL_VAR
name="duplicatebiblionumber" -->&popup=1', 'Duplicate biblio'; return
false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
<p>You must either :</p>
<ul>
<li>If it <em>is</em> a duplicate, <a
href="additem.pl?biblionumber=<!-- TMPL_VAR name="duplicatebiblionumber"
-->">Edit Items</a> of the existing record.</li>
@@ -394,4 +409,5 @@
label.style.display='none';
}
</script>
+<!--/TMPL_IF-->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->