s/Waited/Expected/ for serials statuses reformating rebuild_nozebra.pl indexes
authorJoshua Ferraro <jmf@liblime.com>
Tue, 1 Jan 2008 18:56:14 +0000 (13:56 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 1 Jan 2008 18:59:28 +0000 (12:59 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/en/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/help/bull/statecollection.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/serials-edit.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serial-issues-full.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-recieve.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tmpl
misc/migration_tools/rebuild_nozebra.pl

index d33b877..755e192 100644 (file)
@@ -63,8 +63,8 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('NotifyBorrowerDeparture',30,'Define number of days before expiry where circulation is warned about patron account expiry',NULL,'Integer');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacAuthorities',1,'If ON, enables the search authorities link on OPAC',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacbookbag',1,'If ON, enables display of biblio basket (book bag)','','YesNo');
-INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacBrowser',1,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/build_browser.pl)',NULL,'YesNo');
-INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacCloud',1,'If ON, enables subject cloud on OPAC',NULL,'YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacBrowser',0,'If ON, enables subject authorities browser on OPAC (needs to set misc/cronjob/build_browser.pl)',NULL,'YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacCloud',0,'If ON, enables subject cloud on OPAC',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaccolorstylesheet','colors.css','Define the color stylesheet to use in the OPAC','','free');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaccredits','','Define HTML Credits at the bottom of the OPAC page','70|10','Textarea');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacheader','','Add HTML to be included as a custom header in the OPAC','30|10','Textarea');
index 788f1d7..d7f2943 100644 (file)
@@ -326,7 +326,7 @@ NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> by <!-- TMPL_VAR NAM
                 <tr>
                     <td><!--TMPL_VAR Name="serialseq"--></td>
                     <td><!--TMPL_VAR Name="planneddate"--></td>
-                    <td><!--TMPL_IF Name="status1"-->Awaited
+                    <td><!--TMPL_IF Name="status1"-->Expected
                         <!--TMPL_ELSE -->
                             <!-- TMPL_IF Name="status2"-->Arrived
                             <!--TMPL_ELSE -->
index 9b7e73e..c5819f5 100644 (file)
@@ -10,7 +10,7 @@
        <p>The right part deals with issues. When you create a new subscription, the 1st issue is automatically calculated. When you want/need, you can define issues that have a new status:</p>
        <ul>
                <li>Arrived : when an book arrives, you can set it's status to "arrived". Then, the issue disappear from this list, and the number of the issue is added to the "arrived list" (on the left box)</li>
-               <li>Late : means that the book is late and should be arrived. A books changed to "late" status stays on the issue list, and the next waited number is generated</li>
+               <li>Late : means that the book is late and should be arrived. A books changed to "late" status stays on the issue list, and the next expected number is generated</li>
                <li>Missing : means the book will never arrive. The issue disappear from the list, and the number of the issue is added to the "missing list" (on the left box)</li>
        </ul>
        <h2>The left part</h2>
@@ -24,7 +24,7 @@
                <li>opac note : the field that appears in the librarian interface (with some other subscription information like beginning date and end date. This field must be filled manually. Nothing is put here automatically.</li>
        </ul>
        <h2>Subscription renewals</h2>
-       <p>Koha calculates automatically the end of the subscription (based on the start date and the number of issues recieved). when a subscription has ended, you can't change the status of the last "waited number" (as it's not waited in fact). To be able to "recieve" this number, you must renew your subscription.</p>
+       <p>Koha calculates automatically the end of the subscription (based on the start date and the number of issues recieved). when a subscription has ended, you can't change the status of the last "expected number" (as it's not expected in fact). To be able to "recieve" this number, you must renew your subscription.</p>
        <p>Renewing a subscription means that you define some informations for the renewal. When those informations have been filled, a suggestion is automatically created in Koha. This suggestion can be managed by the librarian that orders books, as any other order (= budget and bookseller are defined here).</p>
        <p><i>Note that the subscription renewal done by the "serials librarian" is supposed to be immediate. We have decided to keep Koha as simple as possible. In fact, the subscription renewal won't be immediate, but we didn't wanted to add too much complexity.</i></p>
        </p>
index caf601f..87d77ae 100644 (file)
@@ -1,5 +1,5 @@
 <!-- TMPL_INCLUDE name="help-top.inc" -->
 <div class="main">
-<h1>Recieving Serials</h1><h2>How do I receive an expected issue?</h2><p>The number for the next expected Issue should display in the top row. The status will default to waited. If the serial has arrived, then select &quot;arrived&quot; from the drop down. If SerialAddItems is turned on you will be prompted to add the item detail. </p><p>Once you press save the new issue will be recorded in the subscription history. </p><h2>How do I receive an unexpected or supplemental issue?</h2><p>Uss the blank line under the expected issue line to add in the details for the unexpected or supplemental issue.&nbsp; Select the appropriate status and save.&nbsp;</p><h2>What happens if an Issue does not turn up?</h2><p>If an issue does not turn up or is late, then select that status from the Status drop down. The issue will now appear under &quot;Claims&quot; and can be managed from there. &nbsp;</p> 
+<h1>Recieving Serials</h1><h2>How do I receive an expected issue?</h2><p>The number for the next expected Issue should display in the top row. The status will default to expected. If the serial has arrived, then select &quot;arrived&quot; from the drop down. If SerialAddItems is turned on you will be prompted to add the item detail. </p><p>Once you press save the new issue will be recorded in the subscription history. </p><h2>How do I receive an unexpected or supplemental issue?</h2><p>Uss the blank line under the expected issue line to add in the details for the unexpected or supplemental issue.&nbsp; Select the appropriate status and save.&nbsp;</p><h2>What happens if an Issue does not turn up?</h2><p>If an issue does not turn up or is late, then select that status from the Status drop down. The issue will now appear under &quot;Claims&quot; and can be managed from there. &nbsp;</p> 
 </div>
 <!-- TMPL_INCLUDE name="help-bottom.inc" -->
index b881476..6dfa689 100644 (file)
@@ -90,7 +90,7 @@
                         <!-- TMPL_VAR name="serialseq" -->
                         </td>
                         <td>
-                            <!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF -->
+                            <!-- TMPL_IF Name="status1" -->Expected<!-- /TMPL_IF -->
                             <!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
                             <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
                             <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
@@ -197,4 +197,4 @@ name="supplierid" -->,''); return false" class="button">Supplier Group Claim Let
 </div>
 <!-- /TMPL_UNLESS -->
 </div>
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
index 27087da..7500c00 100644 (file)
@@ -68,7 +68,7 @@ function active(numlayer)
                                </td>
                                <td>
                                        <!-- TMPL_IF Name="status1" -->Arrived<!-- /TMPL_IF -->
-                                       <!-- TMPL_IF Name="status2" -->Waited<!-- /TMPL_IF -->
+                                       <!-- TMPL_IF Name="status2" -->Expected<!-- /TMPL_IF -->
                                        <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
                                        <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
                                </td>
@@ -85,4 +85,4 @@ function active(numlayer)
 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
 </div>
 </div>
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
index e15acad..32b7980 100644 (file)
@@ -201,7 +201,7 @@ $(document).ready(function() {
                     <!-- TMPL_VAR Name="serialseq" -->
                 </td>
                 <td>
-                    <!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF --><!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF --><!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF --><!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF --><!-- TMPL_IF Name="status5" -->Not Available<!-- /TMPL_IF --><!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
+                    <!-- TMPL_IF Name="status1" -->Expected<!-- /TMPL_IF --><!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF --><!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF --><!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF --><!-- TMPL_IF Name="status5" -->Not Available<!-- /TMPL_IF --><!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
                 </td>
                 <td>
                     <!-- TMPL_VAR Name="notes" -->
index 57e66bd..1fb4931 100644 (file)
@@ -210,7 +210,7 @@ Error : Barcode Not Unique For serialseq <!--TMPL_VAR Name="errserialseq"-->
                <!--/TMPL_IF--> 
             <!--/TMPL_IF-->
   <!--TMPL_IF name="status1" -->
-                    <option value="1" selected="selected">Waited</option>
+                    <option value="1" selected="selected">Expected</option>
   <!-- /TMPL_IF -->
   <!--TMPL_IF name="status2" -->
                     <option value="2" selected="selected">Arrived</option>
@@ -316,7 +316,7 @@ Error : Barcode Not Unique For serialseq <!--TMPL_VAR Name="errserialseq"-->
             <select name="status" size="1" id="addstatus<!-- TMPL_VAR NAME="num" -->">
                     <option value="">----</option>
   <!--TMPL_IF name="status1" -->
-                    <option value="1" selected="selected">Waited</option>
+                    <option value="1" selected="selected">Expected</option>
   <!-- /TMPL_IF -->
   <!--TMPL_IF name="status2" -->
                     <option value="2" selected="selected">Arrived</option>
index d3365f6..905fd22 100644 (file)
@@ -63,7 +63,7 @@ function barcode_check(){
     <!-- /TMPL_IF -->
 </div>
 
-<h2>Awaited or late</h2>
+<h2>Expected or late</h2>
        <form method="post" name="f" action="serials-recieve.pl" onsubmit="return barcode_check()">
                <input type="hidden" name="op" value="serialchangestatus" />
                <input type="hidden" name="serial" value="<!-- TMPL_VAR name="serial" -->" />
@@ -111,7 +111,7 @@ function barcode_check(){
                                <input type="hidden" name="serialid" value="<!-- TMPL_VAR name="serialid" -->" />
                                <select name="status" id="status<!-- TMPL_VAR NAME="num" -->">
                                        <!--TMPL_IF name="status1" -->
-                                               <option value="1" selected="selected">Waited</option>
+                                               <option value="1" selected="selected">Expected</option>
                                        <!-- /TMPL_IF -->
                                        <!--TMPL_IF name="status2" -->
                                                <option value="2" selected="selected">Arrived</option>
@@ -300,7 +300,7 @@ function barcode_check(){
        <input type="submit" value="Save changes" accesskey="w" class="button" />
        <!-- TMPL_IF name="hassubscriptionexpired" -->
                <h3>Subscription has expired.</h3>
-               <p><b>Waited last issue status can't be changed. <a href="#" onclick="popup()" class="button">Renew</a> your subscription</b></p>
+               <p><b>Expected issue status can't be changed. <a href="#" onclick="popup()" class="button">Renew</a> your subscription</b></p>
        <!-- /TMPL_IF -->
        <!-- TMPL_IF name="abouttoexpire" -->
                <h3>Note: Subscription is about to expire next issue.</h3>
index 77cac32..c800254 100644 (file)
@@ -329,7 +329,7 @@ function popup(subscriptionid) {
                 </td>
                 <td>
                         <!--TMPL_IF name="status1" -->
-                            Waited
+                            Expected
                         <!-- /TMPL_IF -->
                         <!--TMPL_IF name="status2" -->
                             Arrived
index 93c8687..1e53bfc 100755 (executable)
@@ -23,14 +23,14 @@ my $biblios;
 my $authorities;
 my $sysprefs;
 GetOptions(
-       'd:s'      => \$directory,
-       'reset'      => \$reset,
-       's'        => \$skip_export,
-       'k'        => \$keep_export,
-       'b'        => \$biblios,
-       'a'        => \$authorities,
-       's'        => \$sysprefs,  # rebuild 'NoZebraIndexes' syspref
-       );
+    'd:s'      => \$directory,
+    'reset'      => \$reset,
+    's'        => \$skip_export,
+    'k'        => \$keep_export,
+    'b'        => \$biblios,
+    'a'        => \$authorities,
+    's'        => \$sysprefs,  # rebuild 'NoZebraIndexes' syspref
+    );
 
 $directory = "export" unless $directory;
 my $dbh=C4::Context->dbh;
@@ -58,7 +58,8 @@ if  (!%index || $sysprefs ) {
         'host-item' => '995a,995c',\" where variable='NoZebraIndexes'");
         %index = GetNoZebraIndexes();
     } elsif (C4::Context->preference('marcflavour') eq 'MARC21') {
-        $dbh->do("UPDATE systempreferences SET value=\"'title' => '130a,210a,222a,240a,243a,245a,245b,246a,246b,247a,247b,250a,250b,440a,830a',
+        $dbh->do("UPDATE systempreferences SET value=\"
+'title' => '130a,210a,222a,240a,243a,245a,245b,246a,246b,247a,247b,250a,250b,440a,830a',
 'author' => '100a,100b,100c,100d,110a,111a,111b,111c,111d,245c,700a,710a,711a,800a,810a,811a',
 'isbn' => '020a',
 'issn' => '022a',
@@ -73,7 +74,8 @@ if  (!%index || $sysprefs ) {
 'bc' => '952p',
 'callnum' => '952o',
 'an' => '6009,6109,6119',
-'host-item' => '952a,952c',\" where variable='NoZebraIndexes'");
+'host-item' => '952a,952c',
+\"WHERE variable='NoZebraIndexes'");
 
         %index = GetNoZebraIndexes();
     }