Bug 7180: (follow-up) fix various issues
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 15 Apr 2014 14:31:18 +0000 (16:31 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 4 May 2014 19:56:59 +0000 (19:56 +0000)
* fix calculation of discount
* add CSS for unselected rows
* fix Javascript error
* correct capitalization
* use “Statistic” instead of “Planning value”
* improve description of system preference

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/addorderiso2709.pl
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref

index 54c4414..f3c124e 100755 (executable)
@@ -174,7 +174,7 @@ if ($op eq ""){
         my $c_quantity = shift( @quantities ) || GetMarcQuantity($marcrecord, C4::Context->preference('marcflavour') ) || 1;
         my $c_budget_id = shift( @budgets_id ) || $input->param('all_budget_id') || $budget_id;
         my $c_discount = shift ( @discount);
-        $c_discount = $c_discount / 100 if $c_discount > 100;
+        $c_discount = $c_discount / 100 if $c_discount > 1;
         my $c_sort1 = shift( @sort1 ) || $input->param('all_sort1') || '';
         my $c_sort2 = shift( @sort2 ) || $input->param('all_sort2') || '';
 
index aa6a0fd..829d9ae 100644 (file)
@@ -554,6 +554,12 @@ padding: 0;
 width: 100%; 
 }
 
+fieldset.rows.unselected {
+    background-color: white;
+    border-width : 0px;
+    border: 0;
+}
+
 fieldset.rows legend {  
        margin-left: 1em;
        font-weight: bold;
index c2c3cf2..3bac18b 100644 (file)
@@ -215,6 +215,9 @@ function calcNewsuggTotal(){
 }
 
 function getAuthValueDropbox( name, cat, destination, selected ) {
+    if ( typeof(selected) == 'undefined' ) {
+        selected = "";
+    }
     if (cat == null || cat == "") {
         $(destination).replaceWith(' <input type="text" name="' + name + '" value="' + selected + '" />' );
         return;
index 0e5dd12..f0fda55 100644 (file)
                   </ul>
 
                   <div id="records_to_import">
-                    <span class="checkall"><a id="checkAll" href="#">Check All</a></span>
-                    <span class="uncheckall"><a id="unCheckAll" href="#">Uncheck All</a></span>
+                    <span class="checkall"><a id="checkAll" href="#">Check all</a></span>
+                    <span class="uncheckall"><a id="unCheckAll" href="#">Uncheck all</a></span>
                         <input type="hidden" name="op" value="import_records"/>
                         <input type="hidden" name="basketno" value="[% basketno %]" />
                         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
                               <input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id %]" value="[% biblio.import_record_id %]" />
                               <span class="citation">[% biblio.citation %]</span>
                             </label>
-                            ( Show <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% biblio.import_record_id %]" title="Card" rel="gb_page_center[600,500]">Card</a> ; <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
-
-
+                            <span class="links" style="font-weight: normal;">
+                              ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% biblio.import_record_id %]" title="Card" rel="gb_page_center[600,500]">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
+                            </span>
                           </legend>
                           <ol>
                             <li class="status">
                             </li>
                             <li class="discount">
                                 <label for="discount_record_[% biblio.import_record_id %]">Discount: </label>
-                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" />
+                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" size="6" /> %
                             </li>
                             <li class="budget">
                                 <label for="fund_record_[% biblio.import_record_id %]">Fund: </label>
                                 [% END %]
                             </li>
                             <li class="sort1">
-                                <label for="sort1_record_[% biblio.import_record_id %]">Planning value 1: </label>
+                                <label for="sort1_record_[% biblio.import_record_id %]">Statistic 1: </label>
                                 <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
                             </li>
                             <li class="sort2">
-                                <label for="sort2_record_[% biblio.import_record_id %]">Planning value 2: </label>
+                                <label for="sort2_record_[% biblio.import_record_id %]">Statistic 2: </label>
                                 <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
                             </li>
                           </ol>
                         [% END %] <!-- items -->
                       </div>
                       <div id="accounting_details">
+                        <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
                         <fieldset class="rows" style="float:none;">
                             <legend>Accounting details</legend>
                             <ol>
                                 </li>
                                 <li>
                                     <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
-                                    <label for="sort1">Planning value 1: </label>
+                                    <label for="sort1">Statistic 1: </label>
                                     [% IF CGIsort1 %]
                                         <select id="all_sort1" size="1" name="all_sort1">
                                         [% FOREACH sort_opt IN CGIsort1 %]
                                 </li>
                                 <li>
                                   <span id="sort2_zone">
-                                    <label for="sort2">Planning value 2: </label>
+                                    <label for="sort2">Statistic 2: </label>
                                     [% IF CGIsort2 %]
                                         <select id="all_sort2" size="1" name="all_sort1">
                                         [% FOREACH sort_opt IN CGIsort2 %]
index 008d214..66829e7 100644 (file)
@@ -49,7 +49,8 @@ Acquisitions:
             - Set the mapping values for a new order line created from a marcrecord (staged file).
             - pref: MarcFieldsToOrder
               type: textarea
-            - "For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a<rb/>"
+            - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2"
+            - "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a"
     Printing:
         -
             - Use the