# 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;
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
$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() ) {
$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;
&GetBudgetSpent
&GetBudgetOrdered
&GetPeriodsCount
+ &GetChildBudgetsSpent
&GetBudgetPeriod
&GetBudgetPeriods
=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) = @_;
sub output_html_with_http_headers ($$$;$) {
my ( $query, $cookie, $data, $status ) = @_;
+ $data =~ s/\&\;amp\; /\&\; /;
output_with_http_headers( $query, $cookie, $data, 'html', $status );
}
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({});
}
}
}
- %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";
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
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');
#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'});
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;
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'},
=cut
use strict;
-#use warnings; FIXME - Bug 2505
+use warnings;
use C4::Auth;
use C4::Acquisition;
use C4::Contract;
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);
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'},
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');
#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
# 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{$_})
}
$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,
}
);
}
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#
+++ /dev/null
-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";
+++ /dev/null
-cronjob-hashbang
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
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
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);
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);
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);
(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);
(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);
}
#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: "";
+}
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 */
//}
// 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');
<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 -->
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha › Basket grouping for Vendor <!-- TMPL_VAR name="booksellername" --></title>
+<title>Koha › 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" />
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="booksellername" --></a> › Basket grouping for vendor: <!-- TMPL_VAR NAME="booksellername" --></div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="booksellerid" -->"><!-- TMPL_VAR NAME="booksellername" --></a> › Basket Grouping</div>
<div id="doc" class="yui-t7">
</script>
<a href="?op=add&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">
<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">
<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" -->" >
</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" -->" />
<!-- 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 -->
<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"> </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 -->
type: 'text'
});
+function closemenu(){
+ $(".linktools").hide();
+ $("tr").removeClass("selected");
+}
$(document).ready(function(){
$("#CheckAll").click(function(){
$(".checkboxed").checkCheckboxes();
});
$("#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>
<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>
</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&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>
<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&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>
// 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(){
<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>
<!-- 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 -->
<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&client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&type=xw10<!-- TMPL_IF NAME="normalized_upc" -->&upc=<!-- TMPL_VAR NAME="normalized_upc" --><!-- /TMPL_IF --><!-- TMPL_IF NAME="normalized_oclc" -->&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&client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&type=xw10&upc=<!-- TMPL_VAR NAME="normalized_upc" -->&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&client=<!-- TMPL_VAR NAME="SyndeticsClientCode" -->&type=xw10&upc=<!-- TMPL_VAR NAME="normalized_upc" -->&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 & 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 & Taylor" src="<!-- TMPL_VAR NAME="BakerTaylorImageURL" ESCAPE="HTML" --><!-- TMPL_VAR NAME="normalized_isbn" -->" /></a><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->
</div>
<!-- /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&accessibility=1"><!-- TMPL_ELSE --><a href="http://www.librarything.com/forlibraries/noscript.php?id=99-274208589&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&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&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>
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;
# 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}="" ;
}
}
}
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);