koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/tools bree...


From: paul poulain
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/tools bree...
Date: Fri, 09 Mar 2007 15:42:54 +0000

CVSROOT:        /sources/koha
Module name:    koha
Changes by:     paul poulain <tipaul>   07/03/09 15:42:54

Added files:
        koha-tmpl/intranet-tmpl/prog/en/tools: breeding.tmpl 
                                               cleanborrowers.tmpl 
                                               inventory.tmpl 
                                               itemslost.tmpl 
                                               viewlog.tmpl 

Log message:
        rel_3_0 moved to HEAD (introducing new files)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/tools/breeding.tmpl?cvsroot=koha&rev=1.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/tools/cleanborrowers.tmpl?cvsroot=koha&rev=1.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/tools/inventory.tmpl?cvsroot=koha&rev=1.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/tools/itemslost.tmpl?cvsroot=koha&rev=1.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/tools/viewlog.tmpl?cvsroot=koha&rev=1.2

Patches:
Index: breeding.tmpl
===================================================================
RCS file: breeding.tmpl
diff -N breeding.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ breeding.tmpl       9 Mar 2007 15:42:54 -0000       1.2
@@ -0,0 +1,56 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: MARC 
Import<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+
+<!-- TMPL_INCLUDE NAME="menus.inc" -->
+<!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
+
+<h1>MARC acquisition system</h1>
+<h4>Import into the reservoir</h4>
+
+<!-- TMPL_IF name="uploadmarc" -->
+<p>Import results :</p>
+<ul>
+       <li><!-- TMPL_VAR name="imported" --> imported records</li>
+       <li><!-- TMPL_VAR name="alreadyindb" --> not imported because already 
in catalog</li>
+       <li><!-- TMPL_VAR name="alreadyinfarm" --> not imported because already 
in the reservoir</li>
+       <li><!-- TMPL_VAR name="notmarcrecord" --> not imported because they 
seem not to be in MARC format (or ISBN/ISSN missing) !</li>
+       <li><!-- TMPL_VAR name="total" -->  records parsed</li>
+       <li><a href="/cgi-bin/koha/admin-home.pl">Back</a></li>
+</ul>
+<!-- TMPL_ELSE -->
+<ul>
+       <li>Select a file to import into the reservoir. It will be parsed, and 
for each ISBN found, a new baby will be created in the reservoir.</li>
+       <li>If an ISBN already exists in the reservoir, you can choose whether 
to ignore the new one or overwrite the old one.</li>
+       <li>You can enter a name for this import. It may be useful, when 
creating a biblio, to remember where the suggested MARC data comes from!</li>
+       <li>Of course, if the ISBN already exists in the active DB, the biblio 
will be ignored.</li>
+</ul>
+<form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" 
enctype="multipart/form-data">
+<table>
+       <tr>
+               <th scope="row"><label for="uploadmarc">Select the file to 
import: </label></th>
+               <td>
+                       <input type="file" id="uploadmarc" name="uploadmarc" 
/><br />
+               </td>
+       </tr>
+       <tr>
+               <th scope="row"><label for="filename">Name of this import: 
</label></th>
+               <td>
+                       <input type="text" id="filename" name="filename" />
+               </td>
+       </tr>
+       <tr>
+               <th scope="row"><label for="syntax">Character encoding: 
</label></th>
+               <td>
+                       <select name="syntax" id="syntax"><option 
value="MARC21">MARC21</option><option value="UNIMARC">UNIMARC</option></select>
+               </td>
+       </tr>
+       <tr>
+               <th scope="row" rowspan="2">If ISBN is already in the 
reservoir: </th>
+               <td><input type="radio" name="overwrite_biblio" value="0" 
checked="checked" />Ignore this one, keep the existing one</td></tr>
+<tr><td>
+                       <input type="radio" name="overwrite_biblio" value="1" 
/>Overwrite the existing one with this</td>
+       </tr>
+</table><input type="submit" value="Import" />
+</form>
+<!-- /TMPL_IF -->
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

Index: cleanborrowers.tmpl
===================================================================
RCS file: cleanborrowers.tmpl
diff -N cleanborrowers.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ cleanborrowers.tmpl 9 Mar 2007 15:42:54 -0000       1.2
@@ -0,0 +1,153 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Clean borrowers
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+
+<!-- Additions to enable Calendar system -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-system.css">
+<!-- End of additions --><!-- Additions to enable Calendar system -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-en.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-setup.js"></script>
+<!-- End of additions -->
+
+<!-- TMPL_INCLUDE NAME="menus.inc" -->
+<!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
+
+<h1>Delete some old borrowers/Anonymize some issue history</h1>
+
+<!-- TMPL_IF NAME="step1" -->
+<!-- step 1 START -->
+<div id="step1">
+    <form name="f1" onsubmit="return checkForm(this);" 
action="/cgi-bin/koha/tools/cleanborrowers.pl" method="POST">
+    <fieldset>
+    <legend>What do you want to do ?</legend>
+        <input id="checkborrower" type="checkbox" name="checkbox" 
value="borrower" checked="true" />
+        <label for="checkborrower">Delete borrower who has not borrowed 
since:</label>
+        <input size="10" id="date1" name="filterdate1" value="<!-- TMPL_VAR 
NAME="filterdate1"-->" type="text" />
+            <script type="text/javascript">
+                Calendar.setup(
+                 {
+                     inputField : "date1",
+                     ifFormat : "%Y-%m-%d",
+                 }
+                );
+            </script>
+        
+        <br />
+        <input id="checkissue" type="checkbox" name="checkbox" value="issue" 
checked="true" />
+        <label for="checkissue">Anonymize issue history older than</label>
+        <input size="10" id="date2" name="filterdate2" value="<!-- TMPL_VAR 
NAME="filterdate2"-->" type="text" />
+            <script type="text/javascript">
+                Calendar.setup(
+                 {
+                     inputField : "date2",
+                     ifFormat : "%Y-%m-%d",
+                 }
+                );
+            </script>
+            
+            <br />
+            <input type="submit" value=" OK " style="float:right;" />
+            
+            <!-- hidden here -->
+            <input type="hidden" name="step2" value="1" />
+    </form>
+</div>
+<!-- step 1 END -->
+<!-- /TMPL_IF -->
+
+<!-- TMPL_IF NAME="step2" -->
+<!-- STEP 2 START -->
+<div id="step2">
+    <fieldset>
+        <legend>Warnings</legend>
+        <b>
+        <!-- TMPL_IF NAME="totalToDelete" --><!-- TMPL_VAR 
NAME="totalToDelete" --> <!-- TMPL_ELSE -->0 <!-- /TMPL_IF --> borrowers will 
be deleted.
+        <br />
+        <!-- TMPL_IF NAME="totalToAnonymize" --><!-- TMPL_VAR 
NAME="totalToAnonymize" --> <!-- TMPL_ELSE -->0 <!-- /TMPL_IF --> issue history 
will be anonymized.
+        <br />
+        </b>
+        <br />
+        <form name="f2" action="/cgi-bin/koha/tools/cleanborrowers.pl" 
method="POST" onsubmit="return checkForm2(this);">
+            <!-- TMPL_IF NAME="totalToDelete" -->
+                What do you want to do for deleted members ?<br />
+                <label for="delete">Delete completly theses members</label>
+                <input id="delete" type="radio" name="radio" value="delete" 
checked="true" />
+                
+                <label for="trash">Move to trash theses members</label>
+                <input id="trash" type="radio" name="radio" value="trash" />
+                <input type="hidden" name="do_delete" value="<!-- TMPL_VAR 
NAME="totalToDelete" -->" />
+                <br />
+            <!-- /TMPL_IF -->
+            <!--TMPL_IF NAME="totalToAnonymize"-->
+                <br />
+                Are you sure you want to anonymize issue history for <!-- 
TMPL_VAR NAME="totalToAnonymize"--> borrowers ?
+                <input type="hidden" name="do_anonym" value="<!-- TMPL_VAR 
NAME="totalToAnonymize" -->" />
+            <!-- /TMPL_IF -->
+            <br /><br />
+            <a href="JavaScript:back();" title="go back">Cancel</a>
+            <input type="submit" value=" OK " style="float:right;"/>
+            
+            <input type="hidden" name="step3" value="1" />
+            <input type="hidden" name="filterdate1" value="<!-- TMPL_VAR 
NAME="filterdate1" -->" />
+            <input type="hidden" name="filterdate2" value="<!-- TMPL_VAR 
NAME="filterdate2" -->" />
+        </form>
+    </fieldset>
+</div>
+<!-- STEP 2 END -->
+<!-- /TMPL_IF -->
+
+<!-- TMPL_IF NAME="step3" -->
+<!-- Step 3 START -->
+
+    <div id="step3">
+          <b>
+          <!-- TMPL_IF NAME="do_delete" -->
+                <!-- TMPL_IF NAME="trash" -->
+                    <!-- TMPL_VAR NAME="TotalDel" --> borrowers have been 
successfuly moved to trash.
+                <!-- TMPL_ELSE -->
+                    <!-- TMPL_VAR NAME="TotalDel" --> borrowers have been 
successfuly deleted.
+                <!-- /TMPL_IF -->
+            <!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="do_anonym" -->
+                All user which issue's history older than <!-- TMPL_VAR 
NAME="filterdate1" --> has been anonimized.
+            <!-- /TMPL_IF -->
+          </b>
+    </div>
+    <a href="/cgi-bin/koha/tools/tools-home.pl">Go back to tools home.</a>
+<!-- Step 3 END -->
+<!-- /TMPL_IF -->
+
+<script type="text/javascript" language="JavaScript">
+// <![CDATA[
+        /**
+         *  checkForm(form)
+         *  This function check the form is correctly filled.
+         */
+          function checkForm(form) {
+              if((form.checkbox[0].checked)){
+                  if(!(form.date1.value)){
+                    alert("please enter a date !");
+                    document.form.date1.focus();
+                    return false;
+                  }
+              }
+              if((form.checkbox[1].checked)){
+                  if(!(form.date2.value)){
+                      alert("please enter a date !");
+                      document.form.date2.focus();
+                      return false;
+                  }
+              }
+              return true;
+          }
+          
+        /**
+         *  checkForm2(form)
+         *  This function check the form2 is correctly filled.
+         */
+          function checkForm2(form) {
+              return true;
+          }
+     // ]]>
+</script>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

Index: inventory.tmpl
===================================================================
RCS file: inventory.tmpl
diff -N inventory.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ inventory.tmpl      9 Mar 2007 15:42:54 -0000       1.2
@@ -0,0 +1,120 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Inventory <!-- TMPL_INCLUDE 
NAME="doc-head-close.inc" -->
+<!--TMPL_INCLUDE NAME="menus.inc" --><!-- TMPL_INCLUDE 
NAME="menu-reports.inc"-->
+<!-- Additions to enable Calendar system -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-system.css">
+<!-- End of additions --><!-- Additions to enable Calendar system -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-en.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-setup.js"></script>
+    <h1>Inventory/Stocktaking</h1>
+    <form method="post">
+        <fieldset>
+        <legend>Select items you want to check</legend>
+        <p>
+        <label>Branch</label><select id="branchloop" name="branchcode">
+        <!-- TMPL_LOOP NAME="branchloop" -->
+            <!-- TMPL_IF name="selected" -->
+                <option value="<!-- TMPL_VAR NAME='value' -->" SELECTED><!-- 
TMPL_VAR NAME='branchname' --></option>
+            <!-- TMPL_ELSE -->
+                <option value="<!-- TMPL_VAR NAME='value' -->"><!-- TMPL_VAR 
NAME='branchname' --></option>
+            <!-- /TMPL_IF -->
+        <!-- /TMPL_LOOP -->
+        </select>
+        </p>
+        <p>
+            Item Location (items.itemcallnumber) between 
+                <input type="text" name="minlocation" value="<!-- TMPL_VAR 
NAME="minlocation" -->" /> 
+            and 
+                <input type="text" name="maxlocation" value="<!-- TMPL_VAR 
NAME="maxlocation" -->" />
+        </p>
+        <p><label>Not seen since:</label>
+            <input type="text" name="datelastseen" value="<!-- TMPL_VAR 
NAME="datelastseen" -->" />
+        </p>
+        <p><label>Show:</label>
+            <input type="text" name="pagesize" value="<!-- TMPL_VAR 
NAME="pagesize" -->" maxlength="5" size="5" />
+            <i> items beginning at offset</i>
+            <input type="text" name="offset" value="<!-- TMPL_VAR 
NAME="offset" -->" size="5" maxlength="5" />
+        </p>
+        <p>
+            <input type="hidden" name="op" value="do_it" />
+            <input type="submit" value="OK" class="button reports"/>
+        </p>
+        </fieldset>
+    </form>
+    <form  name="barcodefile" method="post">
+        <fieldset>
+            <legend>Use a barcode file</legend>
+            <p>barcode filename : <input type="file" name="uploadbarcodes" 
/></p>
+            <p>Set datelastseen to : <input type="text" name="setdate" /></p>
+            <p><input type="submit" value="OK" class="button reports"></p>
+        </fieldset>
+    </form>
+    <!--TMPL_IF Name="Number" --><p><!--TMPL_VAR Name="Number"--> items 
modified : datelastseen set to <!--TMPL_VAR Name="date"--></p><!-- /TMPL_IF-->
+    <!--TMPL_IF Name="errorfile" --><p class="error"><!--TMPL_VAR 
Name="errorfile"--> can't be opened</p><!-- /TMPL_IF-->
+    <!--TMPL_LOOP Name="errorloop"-->
+        <p class="error">
+            <!--TMPL_VAR Name="barcode"-->
+            <!--TMPL_IF Name="ERR_BARCODE"--> : barcode not 
found<!--/TMPL_IF-->
+            <!--TMPL_IF Name="ERR_WTHDRAWN"--> : item withdrawn<!--/TMPL_IF-->
+            <!--TMPL_IF Name="ERR_ONLOAN_RET"--> : item was on loan. It was 
returned before marked as seen<!--/TMPL_IF-->
+            <!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"--> : item was on loan. 
couldn't be returned.<!--/TMPL_IF-->
+        </p>
+    <!-- /TMPL_LOOP-->
+    <!-- TMPL_IF NAME="loop" -->
+    <form method="post">
+    <input type="hidden" name="markseen" value="1">
+    <input type="hidden" name="minlocation" value="<!-- TMPL_VAR 
NAME="minlocation" -->">
+    <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR 
NAME="maxlocation" -->">
+    <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR 
NAME="datelastseen" -->">
+    <input type="hidden" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" 
-->">
+    <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="offset" -->">
+    <table>
+        <tr>
+            <th>Seen</th>
+            <th>Barcode</th>
+            <th>Title</th>
+            <th>Unseen since</th>
+        </tr>
+    <!-- TMPL_LOOP NAME="loop" -->
+        <tr>
+            <td>
+                <input type="checkbox" name="SEEN-<!-- TMPL_VAR 
NAME="itemnumber" -->" value="1">
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="barcode" -->
+            </td>
+            <td>
+                <p><b><!-- TMPL_VAR NAME="itemcallnumber" --></b> - <!-- 
TMPL_VAR NAME="title" --></p>
+                <p><!-- TMPL_VAR NAME="author" --></p>
+            </td>
+            <td>
+                <p><!-- TMPL_VAR name="datelastseen" --></p>
+            </td>
+        </tr>
+    <!-- /TMPL_LOOP -->
+    </table>
+    <input type="submit" value="Mark seen">
+    </form>
+    <!-- /TMPL_IF -->
+    <!-- TMPL_IF NAME="offset" -->
+    <form method="post">
+        <input type="hidden" name="minlocation" value="<!-- TMPL_VAR 
NAME="minlocation" -->">
+        <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR 
NAME="maxlocation" -->">
+        <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR 
NAME="datelastseen" -->">
+        <input type="hidden" name="pagesize" value="<!-- TMPL_VAR 
NAME="pagesize" -->">
+        <input type="hidden" name="offset" value="<!-- TMPL_VAR 
NAME="prevoffset" -->">
+        <input type="submit" value="&lt;&lt;&lt;" class="button reports">
+    </form>
+    <!-- /TMPL_IF -->
+    <!-- TMPL_IF NAME="nextoffset" -->
+    <form method="post">
+        <input type="hidden" name="minlocation" value="<!-- TMPL_VAR 
NAME="minlocation" -->">
+        <input type="hidden" name="maxlocation" value="<!-- TMPL_VAR 
NAME="maxlocation" -->">
+        <input type="hidden" name="datelastseen" value="<!-- TMPL_VAR 
NAME="datelastseen" -->">
+        <input type="hidden" name="pagesize" value="<!-- TMPL_VAR 
NAME="pagesize" -->">
+        <input type="hidden" name="offset" value="<!-- TMPL_VAR 
NAME="nextoffset" -->">
+        <input type="submit" value="&gt;&gt;&gt;" class="button reports">
+    </form>
+    <!-- /TMPL_IF -->
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

Index: itemslost.tmpl
===================================================================
RCS file: itemslost.tmpl
diff -N itemslost.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ itemslost.tmpl      9 Mar 2007 15:42:54 -0000       1.2
@@ -0,0 +1,121 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System 
Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+
+<!-- TMPL_INCLUDE NAME="menus.inc" -->
+<!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
+
+<h1>Items lost</h1>
+
+<b>
+    <!-- TMPL_IF NAME="total" -->
+        <!-- TMPL_VAR NAME="total" --> lost item found.
+    <!-- TMPL_ELSE-->
+        No lost item found...
+    <!-- /TMPL_IF -->
+</b>
+<br />
+<br />
+<form name="f" action="/cgi-bin/koha/tools/itemslost.pl" method="POST">
+    <label for="orderbyfilter">Set result order by</label>
+    <select id="orderbyfilter" name="orderbyfilter">
+        <option value=""> --- </option>
+        <option value="homebranch">Branch</option>
+        <option value="itemtype">Itemtypes</option>
+        <option value="barcode">Barcode</option>
+        <option value="price">price</option>
+    </select>
+    <input type="submit" value="OK" />
+    <input type="hidden" name="get_items" value="1" />
+    <table>
+    <tr>
+        <th>
+            Barcode
+        </th>
+        <th>
+            Date last seen
+        </th>
+        <th>
+            Price
+        </th>
+        <th>
+            Branch
+        </th>
+        <th>
+            Itemtype
+        </th>
+        <th>
+            Holdingbranch
+        </th>
+        <th>
+            Location
+        </th>
+    </tr>
+    <tr>
+        <td>
+            <input type="text" name="barcodefilter" size="6"/>
+        </td>
+        <td>
+            <!-- datelastseen -->
+        </td>
+        <td>
+            <!-- price -->
+        </td>
+        <td>
+            <select name="branchfilter">
+                <option value="">All</option>
+            <!-- TMPL_LOOP name="branchloop" -->
+                <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF 
name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="branchname" 
--></option>
+            <!-- /TMPL_LOOP -->
+            </select>
+        </td>
+        <td>
+            <select name="itemtypesfilter">
+                <option value="">All</option>
+                <!-- TMPL_LOOP name="itemtypeloop" -->
+                <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF 
name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="description" 
--></option>
+                <!-- /TMPL_LOOP -->
+            </select>
+        </td>
+        <td>
+            <!-- holdingbranch -->
+        </td>
+        <td>
+            <!-- location -->
+        </td>
+    </tr>
+     <!-- TMPL_LOOP NAME="itemsloop"-->
+        <tr>
+            <td>
+                <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- 
TMPL_VAR NAME="biblionumber"-->" title="<!-- TMPL_VAR NAME="itemnotes"-->">
+                    <!-- TMPL_VAR NAME="barcode"-->
+                </a>
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="datelastseen"-->
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="price" -->
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="homebranch" -->
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="itemtype" -->
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="holdingbranch"-->
+            </td>
+            <td>
+                <!-- TMPL_VAR NAME="location"-->
+            </td>
+        </tr>
+    <!-- /TMPL_LOOP -->
+    </table>
+</form>
+
+<script type="text/javascript" language="JavaScript">
+// <![CDATA[
+    
+     // ]]>
+</script>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

Index: viewlog.tmpl
===================================================================
RCS file: viewlog.tmpl
diff -N viewlog.tmpl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ viewlog.tmpl        9 Mar 2007 15:42:54 -0000       1.2
@@ -0,0 +1,197 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Log viewer<!-- 
TMPL_INCLUDE NAME="doc-head-close.inc" -->
+
+<!-- Additions to enable Calendar system -->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-system.css">
+<!-- End of additions --><!-- Additions to enable Calendar system -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-en.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" 
-->/includes/calendar/calendar-setup.js"></script>
+<!-- End of additions -->
+
+<!-- TMPL_INCLUDE NAME="menus.inc" -->
+<!-- TMPL_INCLUDE NAME="menu-tools.inc" -->
+
+<h1>Browse system logs</h1>
+
+<form method="POST" action="/cgi-bin/koha/tools/viewlog.pl">
+
+<fieldset>
+    <legend>Additional infos</legend>
+        <p>
+         Display from <input type="text" size="10" id="from" name="from" 
value="<!-- TMPL_VAR NAME="datefrom"-->"/>
+                                                       <img src="<!-- TMPL_VAR 
Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" 
vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
+                                                               <script 
language="JavaScript" type="text/javascript">
+                                                                       
function validate1(date) {
+                                                                               
var day = date.getDate();
+                                                                               
var month = date.getMonth() + 1;
+                                                                               
var year = date.getFullYear();
+                                                                               
var weekDay = date.getDay();
+                                                                               
var dayMonth = month + '-' + day;
+                                                                               
var dateString = year + '-' + month + '-' + day;
+                                                                               
var dateTo = document.getElementById('to').value.split("-");
+                                                                               
var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
+                                                                               
if (date > limitDate) {
+                                                                               
        return true;
+                                                                               
} else {
+                                                                               
        return false;
+                                                                               
}
+                                                                       }
+                                       
+                                                                       
Calendar.setup(
+                                                                               
{
+                                                                               
        inputField : "from",
+                                                                               
        ifFormat : "%Y-%m-%d",
+                                                                               
        button : "openCalendarFrom",
+                                                                               
        disableFunc : validate1,
+                                                                               
        dateStatusFunc : validate1
+                                                                               
}
+                                                                       );
+                                                               </script>
+                                       to <input size="10" id="to" name="to" 
type="text" value="<!-- TMPL_VAR NAME="dateto"-->"/>
+                                               <img src="<!-- TMPL_VAR 
Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" 
style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
+                                       <script type="text/javascript">
+                                               function validate2(date) {
+                                                       var day = 
date.getDate();
+                                                       var month = 
date.getMonth() + 1;
+                                                       var year = 
date.getFullYear();
+                                                       var weekDay = 
date.getDay();
+                                                       var dayMonth = month + 
'-' + day;
+                                                       var dateString = year + 
'-' + month + '-' + day;
+                                                       var dateFrom = 
document.getElementById('from').value.split("-");
+                                                       var limitDate = new 
Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
+                                                       if (limitDate > date) {
+                                                               return true;
+                                                       } else {
+                                                               return false;
+                                                       }
+                                               }
+                                               Calendar.setup(
+                                       {
+                                                       inputField : "to",
+                                                       ifFormat : "%Y-%m-%d",
+                                                       button : 
"openCalendarTo",
+                                                       disableFunc : validate2,
+                                                       dateStatusFunc : 
validate2
+                                               }
+                                       );
+                   </script>
+               </p>
+               <p>
+               <p><b>Export into</b></p>
+        <input id="screen" type="radio" checked name="output" value="screen" />
+        <label for="screen" >To screen into the browser</label>
+               <br>
+               <input id="file" type="radio" name="output" value="file" />
+                <label for="file">To file</label>
+               <input type="text" name="basename" value="Export"> into an 
application  
+               <!-- TMPL_VAR NAME="CGIextChoice" -->
+               <!-- TMPL_VAR NAME="CGIsepChoice" -->
+           <input type="hidden" name="report_name" value="<!--TMPL_VAR 
NAME="report_name" -->">
+           <input type="submit" value=" GO " />
+           </p>
+</fieldset>
+    
+    <!-- TMPL_IF NAME="do_it" -->
+        <p>
+        <!-- TMPL_IF NAME="total" -->
+            <b><!-- TMPL_VAR NAME="total" --> lines found.</b>
+        <!-- TMPL_ELSE -->
+            <b><span class="problem">No log found.</span></b>
+        <!-- /TMPL_IF -->
+        </p>
+    <!-- /TMPL_IF -->
+    <div class="searchresults">
+       <table>
+    <tr>
+        <th>Date</th>
+        <th>Librarian</th>
+       <th>Module</th>
+       <th>Action</th>
+               <th>Object</th>
+               <th>Info</th>
+       </tr>
+       <tr>
+           <td>
+            <input type="submit" value="filter" />
+            <input type="hidden" name="do_it" value="1">
+           </td>
+           <td>
+               <input type="text" name="user" value="<!-- TMPL_VAR 
NAME="user"-->" />
+           </td>
+           <td>
+               <select name="module">
+                           <option value="" checked>All</option>
+                           <option value ="CATALOGUING">Catalogue</option>
+                               <option value ="MEMBERS">Members</option>
+                               <option value 
="ACQUISITION">Acquisitions</option>
+                               <option value ="SERIAL">Serial</option>
+                               <option value="CIRCULATION">Circulation</option>
+                               <option value="LETTER">Letter</option>
+                               <option value="FINES">Fines</option>
+                       </select>
+           </td>
+           <td>
+               <select name="action">
+                       <option value ="">All</option>
+                               <option value ="add">Add</option>
+                               <option value ="del">Delete</option>
+                               <option value ="mod">Modify</option>
+                               <option value="issue">Issue</option>
+                               <option value="return">Return</option>
+                       </select>
+           </td>
+           <td>
+               <input type="text" name="object" value="<!-- TMPL_VAR 
NAME="object"-->" />
+           </td>
+           <td>
+               <input type="text" name="info" value="<!-- TMPL_VAR 
NAME="info"-->" />
+           </td>
+       </tr>
+           <!-- TMPL_LOOP NAME="looprow" -->
+                                       <tr>
+                                               <td><!-- TMPL_VAR 
NAME="timestamp" --></td>
+                                               <td>
+                                                   <a 
href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR 
NAME="user" -->" title="display detail for this librarian.">
+                                                       <!-- TMPL_VAR 
NAME="user" -->
+                                                   </a>
+                                               </td>
+                                               <td><!-- TMPL_VAR NAME="module" 
--></td>
+                                               <td><!-- TMPL_VAR NAME="action" 
--></td>
+                                               <td>
+                                                   <!-- TMPL_IF 
NAME="MEMBERS"-->
+                                                       <a 
href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR 
NAME="object" -->" title="display detail for this member." title="Display 
member details.">
+                                                           member <!-- 
TMPL_VAR NAME="object" -->
+                                                       </a>
+                                                   <!-- TMPL_ELSE -->
+                                                   <!-- TMPL_IF 
NAME="CIRCULATION" -->
+                                                       <a 
href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR 
NAME="object" -->" title="display detail for this member." title="Display 
member details.">
+                                                           <!-- TMPL_IF 
NAME="object"-->member <!-- TMPL_VAR NAME="object" --><!-- /TMPL_IF -->
+                                                       </a>
+                                                   <!-- TMPL_ELSE -->
+                                                   <!-- TMPL_IF 
NAME="CATALOGUING" -->
+                                                       <a 
href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR 
NAME="object" -->" title="Display detail for this biblio">biblio <!-- TMPL_VAR 
NAME="object" --></a>
+                                                   <!-- TMPL_ELSE-->
+                                                   <!-- TMPL_IF 
NAME="SERIAL"-->
+                                                       <a 
href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR 
NAME="object" -->">
+                                                           <!-- TMPL_VAR 
NAME="object" -->
+                                                       </a>
+                                                   <!-- TMPL_ELSE -->
+                                                   <!-- TMPL_VAR NAME="object" 
-->
+                                               <!-- /TMPL_IF -->
+                                               <!-- /TMPL_IF -->
+                                               <!-- /TMPL_IF -->
+                                               <!-- /TMPL_IF -->
+                                               </td>
+                                               <td>
+                                                   <!-- TMPL_IF 
NAME="CIRCULATION" -->
+                                                        <a 
href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="info" 
-->" title="Display detail for this biblio">biblio <!-- TMPL_VAR NAME="info" 
--></a>
+                                               <!-- TMPL_ELSE -->
+                                                   <!-- TMPL_VAR NAME="info" 
-->
+                                               <!-- /TMPL_IF -->
+                                               </td>
+                                       </tr>
+               <!-- /TMPL_LOOP -->
+    </table>
+    </div>
+
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]