Merge branch 'bug2505_patches' of git://git.catalyst.net.nz/koha into to-push
authorGalen Charlton <gmcharlt@gmail.com>
Fri, 23 Apr 2010 11:13:24 +0000 (07:13 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 23 Apr 2010 11:13:37 +0000 (07:13 -0400)
* 'bug2505_patches' of git://git.catalyst.net.nz/koha: (24 commits)
  Bug 2505 - use strict and warnings in sax_parser_test
  Bug 2505 - enable warnings for link_bibs_to_authorities
  Bug 2505 - add strict and warnings to perlmodule_ls
  Bug 2505 - add strict and warnings to check_sysprefs
  Bug 2505 - Add commented use warnings where missing in *.t
  Bug 2505 - Add commented use warnings where missing in *.pm
  Bug 2505 - Add commented use warnings where missing in the cataloguing/ directory
  Bug 2505 - Add commented use warnings where missing in the misc/ directory
  Bug 2505 - Add commented use warnings where missing in the tools/ directory
  Bug 2505 - Add commented use warnings where missing in the installer/ directory
  Bug 2505 - Add commented use warnings where missing in the rotating_collections/ directory
  Bug 2505 - Add commented use warnings where missing in the C4/ directory
  Bug 2505 - Add commented use warnings where missing in the serials/ directory
  Bug 2505 - Add commented use warnings where missing in the catalogue/ directory
  Bug 2505 - Add commented use warnings where missing in the sms/ directory
  Bug 2505 - Add commented use warnings where missing in the opac/ directory
  Bug 2505 - Add commented use warnings where missing in the virtualshelves/ directory
  Bug 2505 - Add commented use warnings where missing in the suggestion/ directory
  Bug 2505 - Add commented use warnings where missing in the admin/ directory
  Bug 2505 - Add commented use warnings where missing in the circ/ directory
  ...

Conflicts:
C4/Auth_with_cas.pm
acqui/supplier.pl

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
31 files changed:
C4/Auth_with_cas.pm
C4/Budgets.pm
C4/Output.pm
C4/Search.pm
acqui/basketgroup.pl
acqui/neworderbiblio.pl
acqui/neworderempty.pl
acqui/supplier.pl
admin/aqbudgets.pl
debian/koha.postrm
debian/patches/cronjob-hashbang [deleted file]
debian/patches/series [deleted file]
docs/history.txt
installer/data/mysql/en/optional/sample_news.sql
installer/data/mysql/fr-FR/2-Optionel/sample_news.sql
installer/data/mysql/pl-PL/optional/sample_news.sql [changed mode: 0644->0755]
installer/data/mysql/ru-RU/optional/sample_news.sql
installer/data/mysql/uk-UA/optional/sample_news.sql [changed mode: 0644->0755]
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/js/additem.js
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl
misc/translator/xgettext.pl
suggestion/suggestion.pl

index 8cf6b03..f9a03a3 100644 (file)
@@ -18,7 +18,7 @@ package C4::Auth_with_cas;
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 use strict;
-#use warnings; FIXME - Bug 2505
+use warnings;
 
 use C4::Debug;
 use C4::Context;
@@ -45,20 +45,20 @@ my $casserver = C4::Context->preference('casServerUrl');
 sub logout_cas {
     my ($query) = @_;
     my $cas = Authen::CAS::Client->new($casserver);
-    print $query->redirect($cas->logout_url(url => %ENV->{'SCRIPT_URI'}));
+    print $query->redirect($cas->logout_url(url => $ENV{'SCRIPT_URI'}));
 }
 
 # Login to CAS
 sub login_cas {
     my ($query) = @_;
     my $cas = Authen::CAS::Client->new($casserver);
-    print $query->redirect($cas->login_url(%ENV->{'SCRIPT_URI'})); 
+    print $query->redirect($cas->login_url($ENV{'SCRIPT_URI'})); 
 }
 
 # Returns CAS login URL with callback to the requesting URL
 sub login_cas_url {
     my $cas = Authen::CAS::Client->new($casserver);
-    return $cas->login_url(%ENV->{'SCRIPT_URI'});
+    return $cas->login_url($ENV{'SCRIPT_URI'});
 }
 
 # Checks for password correctness
@@ -74,7 +74,7 @@ sub checkpw_cas {
        $debug and warn "Got ticket : $ticket";
        
        # We try to validate it
-       my $val = $cas->service_validate(%ENV->{'SCRIPT_URI'}, $ticket);
+       my $val = $cas->service_validate($ENV{'SCRIPT_URI'}, $ticket);
        
        # If it's valid
        if( $val->is_success() ) {
@@ -89,7 +89,7 @@ sub checkpw_cas {
                $retnumber = $sth->fetchrow;
                return (1, $retnumber, $userid);
            }
-           my $sth = $dbh->prepare("select userid from borrowers where cardnumber=?");
+           $sth = $dbh->prepare("select userid from borrowers where cardnumber=?");
            $sth->execute($userid);
            if ( $sth->rows ) {
                $retnumber = $sth->fetchrow;
index eeb9b0c..df53905 100644 (file)
@@ -42,6 +42,7 @@ BEGIN {
         &GetBudgetSpent
         &GetBudgetOrdered
         &GetPeriodsCount
+        &GetChildBudgetsSpent
 
            &GetBudgetPeriod
         &GetBudgetPeriods
@@ -678,6 +679,37 @@ gets all budgets
 
 =cut
 
+# -------------------------------------------------------------------
+sub GetChildBudgetsSpent {
+    my ( $budget_id ) = @_;
+    my $dbh = C4::Context->dbh;
+    my $query = "
+        SELECT *
+        FROM   aqbudgets
+        WHERE  budget_parent_id=?
+        ";
+    my $sth = $dbh->prepare($query);
+    $sth->execute( $budget_id );
+    my $result = $sth->fetchall_arrayref({});
+    my $total_spent = GetBudgetSpent($budget_id);
+    if ($result){
+        $total_spent += GetChildBudgetsSpent($_->{"budget_id"}) foreach @$result;    
+    }
+    return $total_spent;
+}
+
+=head3 GetChildBudgetsSpent
+
+=over 4
+
+&GetChildBudgetsSpent($budget-id);
+
+gets the total spent of the level and sublevels of $budget_id
+
+=back
+
+=cut
+
 # -------------------------------------------------------------------
 sub GetBudgets {
     my ($filters,$orderby) = @_;
index 61e79c6..b512f30 100644 (file)
@@ -461,6 +461,7 @@ sub output_with_http_headers($$$$;$) {
 
 sub output_html_with_http_headers ($$$;$) {
     my ( $query, $cookie, $data, $status ) = @_;
+    $data =~ s/\&amp\;amp\; /\&amp\; /;
     output_with_http_headers( $query, $cookie, $data, 'html', $status );
 }
 
index 7b0b408..33f1612 100644 (file)
@@ -2607,7 +2607,7 @@ sub GetDistinctValues {
     if ($fieldname=~/\./){
                        my ($table,$column)=split /\./, $fieldname;
                        my $dbh = C4::Context->dbh;
-                       warn "select DISTINCT($column) as value, count(*) as cnt from $table group by lib order by $column ";
+                       warn "select DISTINCT($column) as value, count(*) as cnt from $table group by lib order by $column " if $DEBUG;
                        my $sth = $dbh->prepare("select DISTINCT($column) as value, count(*) as cnt from $table ".($string?" where $column like \"$string%\"":"")."group by value order by $column ");
                        $sth->execute;
                        my $elements=$sth->fetchall_arrayref({});
index 84d4e8e..94c5814 100755 (executable)
@@ -237,7 +237,7 @@ sub printbasketgrouppdf{
                 }
             }
         }
-        %orders->{$basket->{basketno}}=\@ba_orders;
+        $orders{$basket->{basketno}}=\@ba_orders;
     }
     print $input->header( -type => 'application/pdf', -attachment => $basketgroup->{name}.'.pdf' );
     my $pdf = printpdf($basketgroup, $bookseller, $baskets, \%orders, $bookseller->{gstrate} || C4::Context->preference("gist")) || die "pdf generation failed";
index fcb4ffc..09709d7 100755 (executable)
@@ -124,7 +124,7 @@ $template->param(
     resultsloop          => \@results,
     total                => $total_hits,
     query                => $query,
-    pagination_bar       => pagination_bar( "$ENV{'SCRIPT_NAME'}?q=$query&booksellerid=$booksellerid&", getnbpages( $total_hits, $results_per_page ), $page, 'page' ),
+    pagination_bar       => pagination_bar( "$ENV{'SCRIPT_NAME'}?q=$query&booksellerid=$booksellerid&basketno=$basketno&", getnbpages( $total_hits, $results_per_page ), $page, 'page' ),
 );
 
 # BUILD THE TEMPLATE
index 8b88f93..a580ae7 100755 (executable)
@@ -92,7 +92,7 @@ use C4::ImportBatch qw/GetImportRecordMarc SetImportRecordStatus/;
 
 my $input           = new CGI;
 my $booksellerid    = $input->param('booksellerid');   # FIXME: else ERROR!
-my $budget_id       = $input->param('budget_id');      # FIXME: else ERROR!
+my $budget_id       = $input->param('budget_id') || 0; # FIXME: else ERROR!
 my $title           = $input->param('title');
 my $author          = $input->param('author');
 my $publicationyear = $input->param('publicationyear');
@@ -125,7 +125,7 @@ my $contract = &GetContract($basket->{contractnumber});
 
 #simple parameters reading (all in one :-)
 my $params = $input->Vars;
-my $listprice; # the price, that can be in MARC record if we have one
+my $listprice=0; # the price, that can be in MARC record if we have one
 if ( $ordernumber eq '' and defined $params->{'breedingid'}){
 #we want to import from the breeding reservoir (from a z3950 search)
     my ($marcrecord, $encoding) = MARCfindbreeding($params->{'breedingid'});
@@ -231,7 +231,7 @@ my ( $flags, $homebranch )= ($borrower->{'flags'},$borrower->{'branchcode'});
 my $budget =  GetBudget($budget_id);
 # build budget list
 my $budget_loop = [];
-my $budgets = GetBudgetHierarchy(q{},q{},$borrower->{borrowernumber});
+my $budgets = GetBudgetHierarchy(q{},$borrower->{branchcode},$borrower->{borrowernumber});
 foreach my $r (@{$budgets}) {
     if (!defined $r->{budget_amount} || $r->{budget_amount} == 0) {
         next;
@@ -348,7 +348,7 @@ $template->param(
     quantityrec      => $data->{'quantity'},
     rrp              => $data->{'rrp'},
     listprice        => sprintf("%.2f", $data->{'listprice'}||$listprice),
-    total            => sprintf("%.2f", $data->{'ecost'}*$data->{'quantity'} ),
+    total            => sprintf("%.2f", ($data->{'ecost'}||0)*($data->{'quantity'}||0) ),
     ecost            => $data->{'ecost'},
     notes            => $data->{'notes'},
     publishercode    => $data->{'publishercode'},
index 04bbe11..c3a5db4 100755 (executable)
@@ -41,7 +41,7 @@ To know the bookseller this script has to display details.
 =cut
 
 use strict;
-#use warnings; FIXME - Bug 2505
+use warnings;
 use C4::Auth;
 use C4::Acquisition;
 use C4::Contract;
@@ -67,7 +67,10 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
                debug           => 1,
        }
 );
-my $GST = $booksellers[0]->{'gstrate'} || C4::Context->preference("gist");
+my $seller_gstrate = $booksellers[0]->{'gstrate'};
+# A perl-ism: '0'==false, '0.000'==true, but 0=='0.000' - this accounts for that
+undef $seller_gstrate if ($seller_gstrate == 0);
+my $GST = $seller_gstrate || C4::Context->preference("gist");
 $GST *= 100;
 
 my @contracts = GetContracts($id);
@@ -140,8 +143,6 @@ elsif ($op eq 'delete') {
             push @loop_invoicecurrency, { currency => "<option value=\"$currencies[$i]->{'currency'}\">$currencies[$i]->{'currency'}</option>"};
         }
     }
-    my $GST = $booksellers[0]->{'gstrate'} || C4::Context->preference("gist");
-    $GST *= 100;
        $template->param(
                id                   => $id,
                name                 => $booksellers[0]->{'name'},
index 35c8bc6..8920d5d 100755 (executable)
@@ -69,7 +69,7 @@ if  (  not defined $template->{param_map}->{'CAN_user_acquisition_budget_add_del
 my $num=FormatNumber;
 
 my $script_name               = "/cgi-bin/koha/admin/aqbudgets.pl";
-my $budget_hash=$input->Vars;
+my $budget_hash               = $input->Vars;
 my $budget_id                 = $$budget_hash{budget_id};
 my $budget_permission         = $input->param('budget_permission');
 my $budget_period_dropbox     = $input->param('budget_period_dropbox');
@@ -244,6 +244,9 @@ if ($op eq 'add_form') {
        #This Looks WEIRD to me : should budgets be filtered in such a way ppl who donot own it would not see the amount spent on the budget by others ?
 
     foreach my $budget (@budgets) {
+        #Level and sublevels total spent
+        $budget->{'total_levels_spent'} = GetChildBudgetsSpent($budget->{"budget_id"});
+
         # PERMISSIONS
         unless($staffflags->{'superlibrarian'} % 2   == 1 ) {
             #IF NO PERMS, THEN DISABLE EDIT/DELETE
@@ -284,14 +287,14 @@ if ($op eq 'add_form') {
         # adds to total  - only if budget is a 'top-level' budget
         $period_alloc_total += $budget->{'budget_amount_total'} if $budget->{'depth'} == 0;
         $base_spent_total += $budget->{'budget_spent'};
-        $budget->{'budget_remaining'} = $budget->{'budget_amount'} - $budget->{'budget_spent'};
+        $budget->{'budget_remaining'} = $budget->{'budget_amount'} - $budget->{'total_levels_spent'};
 
 # if amount == 0 dont display...
         delete  $budget->{'budget_unalloc_sublevel'} if  $budget->{'budget_unalloc_sublevel'} == 0 ;
 
         $budget->{'remaining_pos'} = 1 if $budget->{'budget_remaining'} > 0;
         $budget->{'remaining_neg'} = 1 if $budget->{'budget_remaining'} < 0;
-               for (grep {/budget_spent|budget_amount|budget_remaining|budget_unalloc/} keys %$budget){
+               for (grep {/total_levels_spent|budget_spent|budget_amount|budget_remaining|budget_unalloc/} keys %$budget){
         $$budget{$_}               = $num->format_price( $$budget{$_} ) if defined($$budget{$_})
                }
 
@@ -299,8 +302,21 @@ if ($op eq 'add_form') {
         $budget->{"budget_owner_name"}     = $borrower->{'firstname'} . ' ' . $borrower->{'surname'};
         $budget->{"budget_borrowernumber"} = $borrower->{'borrowernumber'};
 
+        #Make a list of parents of the bugdet
+        my @budget_hierarchy;
+        push  @budget_hierarchy, { element_name => $budget->{"budget_name"}, element_id => $budget->{"budget_id"} };
+        my $parent_id = $budget->{"budget_parent_id"};
+        while ($parent_id) {
+            my $parent = GetBudget($parent_id);
+            push @budget_hierarchy, { element_name => $parent->{"budget_name"}, element_id => $parent->{"budget_id"} };
+            $parent_id = $parent->{"budget_parent_id"};
+        }
+        push  @budget_hierarchy, { element_name => $period->{"budget_period_description"} }; 
+        @budget_hierarchy = reverse(@budget_hierarchy);
+
         push( @loop, {  %{$budget},
                         branchname  => $branches->{ $budget->{branchcode} }->{branchname},
+                        budget_hierarchy => \@budget_hierarchy,
                     }
         );
     }
index 60ba704..3992985 100644 (file)
@@ -10,12 +10,14 @@ if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
     dbc_go koha $@
 fi
 
-#if [ "$1" = "purge" ]; then
-#      rm -f /etc/db-test-mysql/debian-db.php
-#      if which ucf >/dev/null 2>&1; then
-#              ucf --purge /etc/db-test-mysql/debian-db.php
-#              ucfr --purge db-test-mysql /etc/db-test-mysql/debian-db.php
-#      fi
-#fi
+if [ "$1" = "purge" ]; then
+    configfile="/etc/koha/koha-conf.xml"
+    rm -f "$configfile"
+    if which ucf >/dev/null 2>&1; then
+        ucf --purge "$configfile"
+    fi
+
+    rm -rf /var/log/koha
+fi
 
 #DEBHELPER#
diff --git a/debian/patches/cronjob-hashbang b/debian/patches/cronjob-hashbang
deleted file mode 100644 (file)
index 7ca8849..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-Description: fix #! for cronjob
-Origin: vendor
-Forwarded: no
-Author: Lars Wirzenius <lars@catalyst.net.nz>
-Last-Update: 2010-04-12
-
---- a/misc/cronjobs/printoverdues.sh
-+++ b/misc/cronjobs/printoverdues.sh
-@@ -1,4 +1,4 @@
--#!/usr/bin/bash
-+#!/bin/bash
- print_usage(){
-     echo "$0 : generates PDF files from html files in directorys and prints them";
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644 (file)
index e34a824..0000000
+++ /dev/null
@@ -1 +0,0 @@
-cronjob-hashbang
index 3ccd4a1..d2edd8d 100644 (file)
@@ -485,3 +485,4 @@ April 7 2010        Donovan Jones becomes the 106th committer to have a patch accepted
 April 7 2010   Srdjan Jankovic becomes the 107th committer to have a patch accepted
 April 7 2010   Cindy Murdock Ames becomes the 108th committer to have a patch accepted
 April 7 2010   Alex Arnaud becomes the 109th committer to have a patch accepted
+April 16 2010  Amit Gupta becomes the 110th committer to have a patch accepted
index 3e2955a..66bcc7f 100644 (file)
@@ -1,2 +1,2 @@
 INSERT INTO `opac_news` VALUES (1,'Welcome to Koha','Welcome to Koha. Koha is a full-featured open-source ILS. Developed initially in New Zealand by Katipo Communications Ltd and first deployed in January of 2000 for Horowhenua Library Trust, Koha is currently maintained by a team of software providers and library technology staff from around the globe.','koha','2007-10-29 05:25:58','2099-01-10',1),
-(2,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
\ No newline at end of file
+(2,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
\ No newline at end of file
index 2be6788..e44609d 100644 (file)
@@ -1,2 +1,2 @@
 SET NAMES utf8;
-INSERT INTO `opac_news` VALUES (1,'Bienvenue dans Koha !','Bienvenue dans Koha 3, la toute nouvelle version du système intégré de gestion de bibliothèque (SIGB) open source de référence. Développé initialement en Nouvelle Zélande et déployé pour la première fois en janvier 2000, Koha est un projet international soutenu par des sociétés de services en logiciels libres et par des bibliothécaires du monde entier.','koha','2008-01-14 03:25:58','2099-01-10',1),(2,'Et maintenant ?','Félicitations ! vous avez désormais une version opérationnelle de Koha. Et maintenant, que faire ?\r\n<ul>\r\n<li><a href=\"http://kohadocs.org\">lisez la documentation de Koha ;</a></li>\r\n<li><a href=\"http://wiki.koha.org\">lisez et participez au Wiki de Koha ;</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">abonnez-vous aux listes de discussion ;</a></li>\r\n<li><a href=\"http://bugs.koha.org\">signalez des bugs ;</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">proposez des correctifs et des  améliorations ;</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">discutez avec les utilisateurs et les développeurs de Koha.</a></li>\r\n</ul>\r\n','koha','2008-01-14 03:34:45','2099-01-10',2);
+INSERT INTO `opac_news` VALUES (1,'Bienvenue dans Koha !','Bienvenue dans Koha 3, la toute nouvelle version du système intégré de gestion de bibliothèque (SIGB) open source de référence. Développé initialement en Nouvelle Zélande et déployé pour la première fois en janvier 2000, Koha est un projet international soutenu par des sociétés de services en logiciels libres et par des bibliothécaires du monde entier.','koha','2008-01-14 03:25:58','2099-01-10',1),(2,'Et maintenant ?','Félicitations ! vous avez désormais une version opérationnelle de Koha. Et maintenant, que faire ?\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">lisez la documentation de Koha ;</a></li>\r\n<li><a href=\"http://wiki.koha.org\">lisez et participez au Wiki de Koha ;</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">abonnez-vous aux listes de discussion ;</a></li>\r\n<li><a href=\"http://bugs.koha.org\">signalez des bugs ;</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">proposez des correctifs et des  améliorations ;</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">discutez avec les utilisateurs et les développeurs de Koha.</a></li>\r\n</ul>\r\n','koha','2008-01-14 03:34:45','2099-01-10',2);
old mode 100644 (file)
new mode 100755 (executable)
index baaa8f5..3c32abe
@@ -1,3 +1,3 @@
 INSERT INTO `opac_news` VALUES (1,'Witaj w Koha.','Koha to profesjonalny system biblioteczny o otwartym kodzie. Stworzony w Nowej Zelandii przez Katipo Communications Ltd (wdrożony po raz pierwszy w styczniu 2000 r. Horowhenua Library Trust) jest obecnie rozwijany przez grupe programistów i bibliotekarzy z całego świata..','koha','2007-10-29 05:25:58','2099-01-10',1),
 (2,'Co dalej?','Zainstalowałeś Koha - i co dalej? Poniżej znajdziesz kilka wskazówek:
-\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Zapoznaj się z dokumentacją</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Czytaj/Edytuj Koha Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Weź udział w dyskusji</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Zgłość błąd</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Wyślij patch przy uzyciu Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Porozmawiaj z twórcami i użytkownikami Koha</a></li>\r\n</ul>\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
+\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Zapoznaj się z dokumentacją</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Czytaj/Edytuj Koha Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Weź udział w dyskusji</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Zgłość błąd</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Wyślij patch przy uzyciu Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Porozmawiaj z twórcami i użytkownikami Koha</a></li>\r\n</ul>\r\n','koha','2007-10-29 05:34:45','2099-01-10',2);
index ad531a7..3aefcdc 100644 (file)
@@ -15,15 +15,15 @@ INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirati
 
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(5,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','en','2007-10-29 05:34:45','2099-01-10',2);
+(5,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','en','2007-10-29 05:34:45','2099-01-10',2);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(6,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','uk-UA','2008-05-28 23:07:23','2099-01-10',2);
+(6,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','uk-UA','2008-05-28 23:07:23','2099-01-10',2);
 
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(7,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','ru-RU','2008-05-28 23:02:25','2099-01-10',2);
+(7,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','ru-RU','2008-05-28 23:02:25','2099-01-10',2);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(8,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','koha','2008-05-28 23:02:25','2099-01-10',2);
+(8,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','koha','2008-05-28 23:02:25','2099-01-10',2);
 
old mode 100644 (file)
new mode 100755 (executable)
index 2b29653..5aafe03
@@ -4,7 +4,7 @@ INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirati
 (1,'Добро пожаловать в Коха','Добро пожаловать в Коха. Коха является полнофункциональной АБИС с открытыми исходниками. Разработана первоначально в Новой Зеландии компанией Katipo Communications Ltd и впервые выпущена в январе 2000 года для библиотечного консорциума Хороунеа, Коха в настоящее время поддерживается группой поставщиков программного обеспечения и специалистами по библиотечным технологиям со всего земного шара. ','ru-RU','2007-10-29 05:25:58','2099-01-10',1);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(2,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','en','2007-10-29 05:34:45','2099-01-10',2);
+(2,'What\'s Next?','Now that you\'ve installed Koha, what\'s next? Here are some suggestions:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Read Koha Documentation</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Read/Write to the Koha Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Read and Contribute to Discussions</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Report Koha Bugs</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\">Submit Patches to Koha using Git (Version Control System)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Chat with Koha users and developers</a></li>\r\n</ul>\r\n','en','2007-10-29 05:34:45','2099-01-10',2);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
 (3,'Welcome to Koha','Welcome to Koha. Koha is a full-featured open-source ILS. Developed initially in New Zealand by Katipo Communications Ltd and first deployed in January of 2000 for Horowhenua Library Trust, Koha is currently maintained by a team of software providers and library technology staff from around the globe.','en','2008-05-28 22:45:42','2099-01-10',1);
@@ -13,13 +13,13 @@ INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirati
 (4,'Ласкаво просимо до Коха','Ласкаво просимо до Коха. Коха є повнофункціональною АБІС з відкритими джерельними кодам. Розроблена спочатку в Новій Зеландії компанією Katipo Communications Ltd і вперше випущена в січні 2000 року для бібліотечного консорціуму Хороунеа. Коха в даний час підтримується групою постачальників програмного забезпечення і фахівцями з бібліотечних технологій зі всієї земної кулі. ','koha','2008-05-28 22:48:29','2099-01-10',1);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(5,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','ru-RU','2008-05-28 23:02:25','2099-01-10',2);
+(5,'Что дальше?','Теперь, когда Вы установили Коха, что же дальше? Вот некоторые предложения:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацию про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишите на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\"> Читайте и принимайте участие в обсуждениях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Отитывайтесь про недочеты Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчи для Коха, используя Git (система контроля версий)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат пользователей и разработчиков Коха</a></li>\r\n</ul>','ru-RU','2008-05-28 23:02:25','2099-01-10',2);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(6,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','koha','2008-05-28 23:07:23','2099-01-10',2);
+(6,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','koha','2008-05-28 23:07:23','2099-01-10',2);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
 (7,'Ласкаво просимо до Коха','Ласкаво просимо до Коха. Коха є повнофункціональною АБІС з відкритими джерельними кодам. Розроблена спочатку в Новій Зеландії компанією Katipo Communications Ltd і вперше випущена в січні 2000 року для бібліотечного консорціуму Хороунеа. Коха в даний час підтримується групою постачальників програмного забезпечення і фахівцями з бібліотечних технологій зі всієї земної кулі. ','uk-UA','2008-05-28 22:48:29','2099-01-10',1);
 
 INSERT INTO `opac_news` (`idnew`, `title`, `new`, `lang`, `timestamp`, `expirationdate`, `number`) VALUES 
-(8,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha.org/community/mailing-lists.html\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha.org/community/irc.html\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','uk-UA','2008-05-28 23:07:23','2099-01-10',2);
+(8,'Що далі?','Тепер, коли Ви встановили Коха, що ж далі? Ось деякі пропозиції:\r\n<ul>\r\n<li><a href=\"http://koha-community.org/documentation/\">Читайте документацію про Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org\">Читайте/пишіть на Коха Wiki</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Читайте і беріть участь в обговореннях</a></li>\r\n<li><a href=\"http://bugs.koha.org\">Рапортуйте про недоліки Коха</a></li>\r\n<li><a href=\"http://wiki.koha.org/doku.php?id=en:development:git_usage\"> Подавайте патчі для Коха, використовуючи Git (система контролю версій)</a></li>\r\n<li><a href=\"http://koha-community.org/support/\">Чат користувачів та розробників Коха</a></li>\r\n</ul>','uk-UA','2008-05-28 23:07:23','2099-01-10',2);
index cf72ba8..3519187 100644 (file)
@@ -1865,4 +1865,20 @@ img.spinner {
 }
 #cataloguing_additem_itemlist div {
        overflow : scroll;
-}
\ No newline at end of file
+}
+ul.budget_hierarchy {
+    margin-left: 0px;
+    padding-left: 0px;
+}
+ul.budget_hierarchy li {
+    display: inline;
+}
+ul.budget_hierarchy li:after {
+    content: " -> ";
+}
+ul.budget_hierarchy li:last-child:after {
+    content: "";
+}
+ul.budget_hierarchy li:first-child:after {
+    content: "";
+}
index a555bab..d834de9 100644 (file)
@@ -39,7 +39,7 @@
     function PopupZ3950() {
         var strQuery = GetZ3950Terms();
         if(strQuery){
-            window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
+            window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"+strQuery,"z3950search",'width=760,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes');
         }
     }
     /* provide Z3950 search points */
index 352c30f..ac3e8bd 100644 (file)
@@ -35,8 +35,8 @@ function cloneItemBlock(index) {
     //}
     // insert this line on the page    
     original.parentNode.insertBefore(clone,original.nextSibling);
-    var quantityrec = document.getElementById('quantityrec');
-    quantityrec.setAttribute('value',parseFloat(quantityrec.getAttribute('value'))+1);
+    var quantity = document.getElementById('quantity');
+    quantity.setAttribute('value',parseFloat(quantity.getAttribute('value'))+1);
 }
 function check_additem() {
        var     barcodes = document.getElementsByName('barcode');
index d54906b..3bc3c89 100644 (file)
                 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
                 <p>Closed on:  <!-- TMPL_VAR name="closedate" --></p>
                 <!-- TMPL_IF name="basketgroups" -->
-                    <p> basketgroup: <select id="basketgroupid" name="basketgroupid">
+                    <p> Basket group: <select id="basketgroupid" name="basketgroupid">
                         <!-- TMPL_LOOP name="basketgroups" -->
                             <!-- TMPL_IF name="default" -->
                             <option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
                         <input type="hidden" id="basketno" value="<!-- TMPL_VAR name="basketno" -->" name="basketno" />
                         <input type="hidden" value="mod_basket" name="op" />
                         <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
-                        <input type="submit" value="Change basketgroup" />
+                        <input type="submit" value="Change basket group" />
                     </p>
                 </form>
                 <!-- /TMPL_IF -->
index e0245c3..3d33b73 100644 (file)
@@ -1,5 +1,5 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Basket grouping for Vendor <!-- TMPL_VAR name="booksellername" --></title>
+<title>Koha &rsaquo; Basket Grouping for <!-- TMPL_VAR name="booksellername" --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts-min.css" />
@@ -132,7 +132,7 @@ function submitForm(form) {
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="booksellername" --></a> &rsaquo; Basket grouping for vendor: <!-- TMPL_VAR NAME="booksellername" --></div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="booksellername" --></a> &rsaquo; Basket Grouping</div>
 
 <div id="doc" class="yui-t7">
             
@@ -180,7 +180,7 @@ function submitForm(form) {
                                </script>
                                <a href="?op=add&amp;booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
                        </div>
-                       <h1>Basket grouping for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
+                       <h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR name="booksellername" --></a></h1>
                </div>
 <!--  TMPL_IF NAME="grouping" -->
        <div id="bd"> 
@@ -217,7 +217,7 @@ function submitForm(form) {
                    <div class="yui-u first"> 
                        <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
                                        <fieldset id="various" class='various' >
-                                               <h3><label for="basketgroupname">Basketgroup Name:</label></h3>
+                                               <h3><label for="basketgroupname">Basket Group Name:</label></h3>
                                                <input type="text" name="basketgroupname" id="basketgroupname" value="<!-- TMPL_VAR NAME="name" -->" />
                                                <h3><label for="billingplace">Billing Place:</label></h3>
                                                <select name="billingplace" id="billingplace">
@@ -235,7 +235,7 @@ function submitForm(form) {
                                                <h3><label for="deliverycomment">Delivery comment:</label></h3>
                                                <textarea cols="26" name="deliverycomment" id="deliverycomment"><!-- TMPL_VAR NAME="deliverycomment" --></textarea>
                                        <div class="workarea">
-                                                       <h3>Grouping</h3>
+                                                       <h3>Grouping:</h3>
                                                        <ul class="draglist" id="bg">
                                                                <!-- TMPL_LOOP NAME="selectedbaskets" -->
                                                    <li class="grouped" id="b-<!-- TMPL_VAR NAME="basketno" -->" >
@@ -253,7 +253,7 @@ function submitForm(form) {
 
                                                        </ul>
                                                </div>
-                                               <div><input type="checkbox" name="close">Close</input></div>
+                                               <div><input type="checkbox" name="close"> Close</input></div>
                                <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR name="booksellerid" -->" />
                                <!-- TMPL_IF NAME="basketgroupid" -->
                                        <input type="hidden" name="basketgroupid" value="<!-- TMPL_VAR name="basketgroupid" -->" />
index f42e58e..f6f7902 100644 (file)
@@ -240,7 +240,7 @@ ff.submit();
                     <!-- TMPL_IF name="items" -->
                         <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" onchange="calcNeworderTotal();" />
                     <!-- TMPL_ELSE -->
-                        <input type="text" size="20" id="quantityrec" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
+                        <input type="text" size="20" id="quantity" name="quantity" value="<!-- TMPL_VAR name="quantityrec" -->" onchange="calcNeworderTotal();" />
                     <!-- /TMPL_IF -->
                 <!--/TMPL_IF-->
                 <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
index baf13ea..54e321a 100644 (file)
             <th>Total<br />allocated</th>
             <th>Base-level<br />allocated</th>
             <th>Base-level<br />spent</th>
+            <th>Total sublevels<br />spent</th>
             <th>Base-level<br />remaining</th>
             <th class="tooltipcontent">&nbsp;</th>
             <th>Actions</th>
     <th nowrap="nowrap" class="data"> <!-- TMPL_VAR NAME="period_alloc_total"--></th>
     <th nowrap="nowrap"  class="data"> <!-- TMPL_VAR NAME="base_alloc_total"--></th>
     <th class="data"><!-- TMPL_VAR NAME="base_spent_total"--></th>
+    <th class="data"><!-- TMPL_VAR NAME="base_spent_total"--></th>
     <th class="data"><!-- TMPL_VAR NAME="base_remaining_total"--></th>
     <th class="tooltipcontent"></th>
     <th></th>
     <td class="data"><!-- TMPL_VAR NAME="budget_amount_total" --></td>
     <td class="data"><!-- TMPL_VAR NAME="budget_amount" --> </td>
     <td class="data"><!-- TMPL_VAR NAME="budget_spent" --> </td>
+    <td class="data"><!-- TMPL_VAR NAME="total_levels_spent" --></td>
     <td class="data"
     <!-- TMPL_IF NAME="remaining_pos" --> style="color: green;" <!-- /TMPL_IF -->
     <!-- TMPL_IF NAME="remaining_neg" --> style="color: red;" <!-- /TMPL_IF -->   >
     <!-- TMPL_VAR NAME="budget_remaining" --> </td>
 
-    <td class="tooltipcontent"><!-- TMPL_IF NAME="budget_owner_id" --><strong>Owner: </strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="budget_owner_id" -->"><!-- TMPL_VAR NAME="budget_owner_name" --></a><!-- /TMPL_IF --><!-- TMPL_IF NAME="budget_branchcode" --><br /><strong>Library: </strong><!-- TMPL_VAR NAME="budget_branchcode" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="budget_notes" --><br /><strong>Notes: </strong><!-- TMPL_VAR NAME="budget_notes" --><!-- /TMPL_IF --></td>
+    <td class="tooltipcontent"><!-- TMPL_IF NAME="budget_owner_id" --><strong>Owner: </strong><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="budget_owner_id" -->"><!-- TMPL_VAR NAME="budget_owner_name" --></a><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="budget_branchcode" --><br /><strong>Library: </strong><!-- TMPL_VAR NAME="budget_branchcode" --><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="budget_notes" --><br /><strong>Notes: </strong><!-- TMPL_VAR NAME="budget_notes" --><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="budget_hierarchy" -->
+            <ul class="budget_hierarchy"><!-- TMPL_LOOP name="budget_hierarchy" -->
+                <!-- TMPL_IF NAME="element_id" -->
+                    <li><a href="?op=add_form&budget_id=<!-- TMPL_VAR NAME="element_id" -->&budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->"><!-- TMPL_VAR NAME="element_name" --></a></li>
+                <!-- TMPL_ELSE -->
+                    <li><strong><!-- TMPL_VAR NAME="element_name" --> : </strong></li>
+                <!-- /TMPL_IF -->
+                <!-- /TMPL_LOOP -->
+            </ul>
+        <!-- /TMPL_IF --></td>
     <!-- TMPL_IF NAME="budget_lock"-->
         <td> <span style="color: gray;" > Edit Delete </span> </td>
     <!-- TMPL_ELSE -->
index 5fbe223..55859c7 100644 (file)
@@ -18,6 +18,10 @@ $.tablesorter.addParser({
     type: 'text' 
 });
 
+function closemenu(){
+    $(".linktools").hide();
+    $("tr").removeClass("selected");
+}
 $(document).ready(function(){
     $("#CheckAll").click(function(){
         $(".checkboxed").checkCheckboxes();
@@ -29,12 +33,35 @@ $(document).ready(function(){
     });
     $("#resultst").tablesorter({
         sortList: [[1,0]],
-        headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false } },
+        headers: { 1: { sorter: 'articles' },7: { sorter: false },8: { sorter: false } },
         widgets: ['zebra']
     }); 
+        /* Inline edit/delete links */
+        $("td").click(function(event){
+            $(".linktools").hide();
+            $("tr").removeClass("selected");
+            var row = $(this).parent();
+            row.addClass("selected");
+
+            var $tgt = $(event.target);
+            if($tgt.is("a")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")||$tgt.is(":nth-child(9)")||$tgt.is(":nth-child(10)")){ return true; } else {
+            var position = $(this).offset();
+            var top = position.top+5;
+            var left = position.left+5;
+            $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
+            }
+        });
 });
+
 //]]>
 </script>
+<style type="text/css">
+.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
+.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
+.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
+tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; }
+</style>
+      <!-- TMPL_IF name="opsearch" -->
    <style type="text/css">
           #custom-doc { width:53em;*width:51.72em;min-width:689px; margin:auto; text-align:left; }
    </style>
@@ -42,6 +69,11 @@ $(document).ready(function(){
 <body>
 
 <div id="custom-doc" class="yui-t7">
+<!-- TMPL_ELSE -->
+</head>
+<body style="padding:.5em;">
+<div>
+<!-- /TMPL_IF -->
       <div id="bd">
          <!-- TMPL_IF name="opsearch" -->
 <h2>Z39.50 Search Points</h2>
@@ -103,13 +135,9 @@ $(document).ready(function(){
     </tr></thead>
     <tbody><!-- TMPL_LOOP name="breeding_loop" -->
         <!-- TMPL_IF NAME="breedingid" -->
-               
-       <!-- TMPL_UNLESS NAME="__odd__" -->
-       <tr class="highlight">
-       <!-- TMPL_ELSE -->
-        <tr>
-       <!-- /TMPL_UNLESS -->
-            <td><!-- TMPL_VAR name="server" --></td>
+
+           <tr id="row<!-- TMPL_VAR NAME="breedingid" -->">
+               <td><!-- TMPL_VAR name="server" --> <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview Card</a> <a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,0); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td>
             <td><!-- TMPL_VAR NAME="title" escape="html" --></td>
             <td><!-- TMPL_VAR NAME="author" --></td>
             <td><!-- TMPL_VAR NAME="date" --></td>
@@ -118,7 +146,7 @@ $(document).ready(function(){
             <td><!-- TMPL_VAR NAME="lccn" --></td>
             <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a></td>
             <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td>
-            <td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> 
+            <td><a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->); return false">Import</a></td> 
         </tr>
         <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP --></tbody>
index d678022..90d6a00 100644 (file)
@@ -25,7 +25,7 @@
 
            // Checkboxes : Select All / None
            $("span.checkall").html("<input type=\"checkbox\" name=\"CheckAll\"> "+_("Check All"));
-           $("span.exportSelected").html("<a id=\"ExportSelected\" href=\"/cgi-bin/koha/serials/claims.pl\">Export selected items data<\/a>");
+           $("span.exportSelected").html("<a id=\"ExportSelected\" href=\"/cgi-bin/koha/serials/claims.pl\"> "+_("Export selected items data") +"<\/a>");
 
 
            $("#CheckAll").click(function(){ 
index 5efdfb5..b0904a1 100644 (file)
@@ -198,7 +198,7 @@ h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { di
             <th>Suggestion</th>
             <th>Suggested by /on</th>
             <th>Managed by /on</th>
-            <th>For</th>
+            <th>Library</th>
             <th>Budget</th>
             <th>Status</th></tr>
     </thead>
@@ -229,7 +229,7 @@ h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { di
                     <!-- TMPL_VAR name="branchcode" -->
                 </td>
                 <td>
-                    <!-- TMPL_VAR name="aqbudgetid" -->
+                    <!-- TMPL_VAR name="budget_name" -->
                 </td>
                 <td>
                     <!-- TMPL_IF name="ASKED" -->Requested<!-- /TMPL_IF --> <!-- TMPL_IF name="ACCEPTED" -->Accepted<!-- /TMPL_IF --> <!-- TMPL_IF name="ORDERED" -->Ordered<!-- /TMPL_IF --> <!-- TMPL_IF name="REJECTED" -->Rejected<!-- /TMPL_IF --> <!-- TMPL_IF name="CHECKED" -->Checked<!-- /TMPL_IF --> <!-- TMPL_IF name="reason" --><br />(<!-- TMPL_VAR name="reason" -->)<!-- /TMPL_IF -->
index df0b1db..46eb334 100644 (file)
@@ -71,7 +71,14 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
 
     <div id="bookcover">
     <!-- TMPL_IF NAME="OPACAmazonEnabled" --><!-- TMPL_IF NAME="OPACAmazonCoverImages" --><!-- TMPL_IF NAME="OPACURLOpenInNewWindow" --><a href="http://www.amazon<!-- TMPL_VAR NAME="AmazonTld" -->/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01.MZZZZZZZ.jpg" alt="Cover Image" /></a><!-- TMPL_ELSE --><a href="http://www.amazon<!-- TMPL_VAR NAME="AmazonTld" -->/gp/reader/<!-- TMPL_VAR NAME="normalized_isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="normalized_isbn" -->.01.MZZZZZZZ.jpg" alt="Cover Image" /></a><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
-    <!-- TMPL_IF NAME="SyndeticsEnabled" --><!-- TMPL_IF NAME="SyndeticsCoverImages" --><!-- TMPL_IF NAME="content_identifier_exists" --><!-- TMPL_IF NAME="using_https" --><img src="https://secure.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/<!--TMPL_ELSE><img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/<!-- /TMPL_IF --><!-- TMPL_VAR NAME="SyndeticsCoverImageSize" -->.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&amp;type=xw10<!-- TMPL_IF NAME="normalized_upc" -->&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" --><!-- /TMPL_IF -->" alt="" class="thumbnail" /><!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
+
+    <!-- TMPL_IF NAME="SyndeticsEnabled" --><!-- TMPL_IF NAME="SyndeticsCoverImages" --><!-- TMPL_IF NAME="content_identifier_exists" --><!-- TMPL_IF NAME="using_https" -->
+    <img src="https://secure.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/<!-- TMPL_VAR NAME="SyndeticsCoverImageSize" -->.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&amp;type=xw10&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" -->" alt="" class="thumbnail" />
+    <!--TMPL_ELSE -->
+    <img src="http://www.syndetics.com/index.aspx?isbn=<!-- TMPL_VAR NAME="normalized_isbn" -->/<!-- TMPL_VAR NAME="SyndeticsCoverImageSize" -->.GIF&amp;client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&amp;type=xw10&amp;upc=<!-- TMPL_VAR NAME="normalized_upc" -->&amp;oclc=<!-- TMPL_VAR NAME="normalized_oclc" -->" alt="" class="thumbnail" /><!-- /TMPL_IF -->
+
+    <!-- TMPL_ELSE --><span class="no-image">No cover image available</span><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
+
     <!-- TMPL_IF NAME="GoogleJackets" --><div style="block" title="<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->" class="<!-- TMPL_VAR NAME="normalized_isbn" -->" id="gbs-thumbnail-preview"></div><!-- /TMPL_IF -->
     <!-- TMPL_IF NAME="BakerTaylorEnabled" --><!-- TMPL_IF NAME="normalized_isbn" --><!-- TMPL_IF NAME="OPACURLOpenInNewWindow" --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" target="_blank"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" /></a><!-- TMPL_ELSE --><a href="https://<!-- TMPL_VAR NAME="BakerTaylorBookstoreURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->"><img alt="See Baker &amp; Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" /></a><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
     </div>
@@ -299,7 +306,10 @@ YAHOO.util.Event.onContentReady("furtherm", function () {
 <!-- /TMPL_IF --><!-- /TMPL_IF -->
 <!-- TMPL_IF NAME="SyndeticsReviews" --><!-- TMPL_IF NAME="SYNDETICS_REVIEWS" -->
  <li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#reviews">Reviews</a></li>
-<li> <!-- TMPL_IF NAME="using_https" --><script src="https://www.librarything.com/forlibraries/widget.js?id=<!-- TMPL_ELSE --><script src="http://www.librarything.com/forlibraries/widget.js?id=<!-- /TMPL_IF --><!-- TMPL_VAR NAME="LibraryThingForLibrariesID" -->" type="text/javascript"></script><noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <!-- TMPL_IF NAME="using_https" --><a href="https://www.librarything.com/forlibraries/noscript.php?id=99-274208589&amp;accessibility=1"><!-- TMPL_ELSE --><a href="http://www.librarything.com/forlibraries/noscript.php?id=99-274208589&amp;accessibility=1"><!-- /TMPL_IF -->here</a>.</noscript></li>
+<li> <!-- TMPL_IF NAME="using_https" --><script src="https://www.librarything.com/forlibraries/widget.js?id=<!-- TMPL_VAR NAME="LibraryThingForLibrariesID" -->" type="text/javascript"></script><noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=99-274208589&amp;accessibility=1">here</a>.</noscript>
+<!-- TMPL_ELSE -->
+<script src="http://www.librarything.com/forlibraries/widget.js?id=<!-- TMPL_VAR NAME="LibraryThingForLibrariesID" -->" type="text/javascript"></script><noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=99-274208589&amp;accessibility=1">here</a>.</noscript><!-- /TMPL_IF -->
+</li>
 <!-- /TMPL_IF --><!-- /TMPL_IF -->
 <!-- TMPL_IF NAME="SyndeticsAuthorNotes" --><!-- TMPL_IF NAME="SYNDETICS_ANOTES" -->
  <li> <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->#anotes">About the Author</a></li>
index a13be97..031f9ba 100755 (executable)
@@ -103,7 +103,7 @@ sub text_extract (*) {
             next if $a eq 'label' && $tag ne 'optgroup';
                    next if $a eq 'content' && $tag ne 'meta';
                    next if $a eq 'value' && ($tag ne 'input'
-                       || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:hidden|radio|submit)$/)); # FIXME
+                       || (ref $attr->{'type'} && $attr->{'type'}->[1] =~ /^(?:hidden|radio|checkbox)$/)); # FIXME
                    my($key, $val, $val_orig, $order) = @{$attr->{$a}}; #FIXME
                    $val = TmplTokenizer::trim $val;
                    remember( $s, $val ) if $val =~ /\S/s;
index ce79197..68f35be 100755 (executable)
@@ -167,12 +167,13 @@ if ($op=~/else/) {
 #        warn $$suggestion_ref{$displayby}."=$criteriumvalue; $displayby";
     
         my $suggestions = &SearchSuggestion($suggestion_ref);
-        foreach (@$suggestions){
+        foreach my $suggestion (@$suggestions){
+            $suggestion->{budget_name}=GetBudget($suggestion->{budgetid})->{budget_name} if $suggestion->{budgetid};
             foreach my $date qw(suggesteddate manageddate accepteddate){
-                if ($_->{$date} ne "0000-00-00" && $_->{$date} ne "" ){
-                $_->{$date}=format_date($_->{$date}) ;
+                if ($suggestion->{$date} ne "0000-00-00" && $suggestion->{$date} ne "" ){
+                $suggestion->{$date}=format_date($suggestion->{$date}) ;
                 } else {
-                $_->{$date}="" ;
+                $suggestion->{$date}="" ;
                 }             
             }    
         }
@@ -258,8 +259,8 @@ $template->param(itemtypeloop=>$supportlist);
 my $searchbudgets={ budget_branchcode=>$branchfilter} if $branchfilter;
 my $budgets = GetBudgets($searchbudgets);
 
-foreach (@$budgets){
-    $_->{'selected'}=1 if ($$suggestion_ref{'budget_id'} && $_{'budget_id'} eq $$suggestion_ref{'budget_id'})
+foreach my $budget (@$budgets){
+    $budget->{'selected'}=1 if ($$suggestion_ref{'budgetid'} && $budget->{'budget_id'} eq $$suggestion_ref{'budgetid'})
 };
 
 $template->param( budgetsloop => $budgets);