diff --git a/C4/Items.pm b/C4/Items.pm index 3483d69af9..e62dca961e 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2251,6 +2251,7 @@ sub _koha_modify_item { my $query = "UPDATE items SET "; my @bind; for my $key ( keys %$item ) { + next if ( $key eq 'itemnumber' ); $query.="$key=?,"; push @bind, $item->{$key}; } diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl index 1d82152682..1a835fb61f 100755 --- a/acqui/neworderempty.pl +++ b/acqui/neworderempty.pl @@ -386,6 +386,7 @@ $template->param( # CHECKME: gst-stuff needs verifing, mason. gstrate => $bookseller->{'gstrate'} // C4::Context->preference("gist") // 0, gstreg => $bookseller->{'gstreg'}, + acqcreate => C4::Context->preference("AcqCreateItem") eq "ordering" ? 1 : "" ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index 7203d2d613..a7c04b38c2 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -163,7 +163,6 @@ if ( $count == 1 ) { quantityreceived => @$results[0]->{'quantityreceived'}, rrp => @$results[0]->{'rrp'}, ecost => sprintf( "%.2f",$order->{'ecost'}), - unitprice => sprintf( "%.2f",$order->{'unitprice'}), memberfirstname => $member->{firstname} || "", membersurname => $member->{surname} || "", invoice => $invoice, @@ -174,6 +173,15 @@ if ( $count == 1 ) { surnamesuggestedby => $suggestion->{surnamesuggestedby}, firstnamesuggestedby => $suggestion->{firstnamesuggestedby}, ); + + # regardless of the content of 'unitprice' e.g 0 or '' or any string will return in these cases 0.00 + # and the 'IF' in the .tt will show 0.00 and not 'ecost' (see BZ 7129) + # So if 'unitprice' == 0 we don't create unitprice + if ( $order->{'unitprice'} != 0) { + $template->param( + unitprice => sprintf( "%.2f",$order->{'unitprice'}), + ); + } } else { my @loop; diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 5e3848d623..835466a16c 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -428,6 +428,7 @@ sub StringSearch { my $sth = $dbh->prepare("Select variable,value,explanation,type,options from systempreferences where (variable like ?) order by variable"); $sth->execute($syspref); while ( my $data = $sth->fetchrow_hashref ) { + unless (defined $data->{value}) { $data->{value} = "";} $data->{shortvalue} = $data->{value}; $data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if defined( $data->{value} ) and length( $data->{value} ) > 60; push( @results, $data ); @@ -460,6 +461,7 @@ sub StringSearch { } while ( my $data = $sth->fetchrow_hashref ) { + unless (defined $data->{value}) { $data->{value} = "";} $data->{shortvalue} = $data->{value}; $data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if length( $data->{value} ) > 60; push( @results, $data ); diff --git a/debian/docs/koha-common.xml b/debian/docs/koha-common.xml index 4dc21799ce..39da872491 100644 --- a/debian/docs/koha-common.xml +++ b/debian/docs/koha-common.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-create-dirs.xml b/debian/docs/koha-create-dirs.xml index 9f9ddead63..a7383e5e3e 100644 --- a/debian/docs/koha-create-dirs.xml +++ b/debian/docs/koha-create-dirs.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-create.xml b/debian/docs/koha-create.xml index 26559c917a..d879a69beb 100644 --- a/debian/docs/koha-create.xml +++ b/debian/docs/koha-create.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-disable.xml b/debian/docs/koha-disable.xml index 8b7f729808..1bc9ca3372 100644 --- a/debian/docs/koha-disable.xml +++ b/debian/docs/koha-disable.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-dump-defaults.xml b/debian/docs/koha-dump-defaults.xml index 048c3e9277..b4623695ee 100644 --- a/debian/docs/koha-dump-defaults.xml +++ b/debian/docs/koha-dump-defaults.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-dump.xml b/debian/docs/koha-dump.xml index ec79f6e393..a749fb21d6 100644 --- a/debian/docs/koha-dump.xml +++ b/debian/docs/koha-dump.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-email-disable.xml b/debian/docs/koha-email-disable.xml index 83bf8ef396..81834f2f86 100644 --- a/debian/docs/koha-email-disable.xml +++ b/debian/docs/koha-email-disable.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-email-enable.xml b/debian/docs/koha-email-enable.xml index 5274f753f4..0f39010bff 100644 --- a/debian/docs/koha-email-enable.xml +++ b/debian/docs/koha-email-enable.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-enable.xml b/debian/docs/koha-enable.xml index a2f8cc3569..db45daa9af 100644 --- a/debian/docs/koha-enable.xml +++ b/debian/docs/koha-enable.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-foreach.xml b/debian/docs/koha-foreach.xml index 733ddd99a8..c8a612ccbc 100644 --- a/debian/docs/koha-foreach.xml +++ b/debian/docs/koha-foreach.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-list.xml b/debian/docs/koha-list.xml index 9d0acf9d58..c67096d0ad 100644 --- a/debian/docs/koha-list.xml +++ b/debian/docs/koha-list.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-mysql.xml b/debian/docs/koha-mysql.xml index b8079ced70..070deb6cb9 100644 --- a/debian/docs/koha-mysql.xml +++ b/debian/docs/koha-mysql.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-rebuild-zebra.xml b/debian/docs/koha-rebuild-zebra.xml index e5b319c507..b8ce51cac3 100644 --- a/debian/docs/koha-rebuild-zebra.xml +++ b/debian/docs/koha-rebuild-zebra.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-remove.xml b/debian/docs/koha-remove.xml index 4e272f8186..69079bef50 100644 --- a/debian/docs/koha-remove.xml +++ b/debian/docs/koha-remove.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-reset-passwd.xml b/debian/docs/koha-reset-passwd.xml index 85e84436fd..5ded51d8ab 100644 --- a/debian/docs/koha-reset-passwd.xml +++ b/debian/docs/koha-reset-passwd.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-restart-zebra.xml b/debian/docs/koha-restart-zebra.xml index 649df1e6ac..4b78902247 100644 --- a/debian/docs/koha-restart-zebra.xml +++ b/debian/docs/koha-restart-zebra.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-restore.xml b/debian/docs/koha-restore.xml index 6acb0e825b..5409d83857 100644 --- a/debian/docs/koha-restore.xml +++ b/debian/docs/koha-restore.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-run-backups.xml b/debian/docs/koha-run-backups.xml index 153881713a..653a611a4f 100644 --- a/debian/docs/koha-run-backups.xml +++ b/debian/docs/koha-run-backups.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-start-zebra.xml b/debian/docs/koha-start-zebra.xml index eb3c2abf34..2d52000f9b 100644 --- a/debian/docs/koha-start-zebra.xml +++ b/debian/docs/koha-start-zebra.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-stop-zebra.xml b/debian/docs/koha-stop-zebra.xml index 050ddd7cb0..ea35f893ef 100644 --- a/debian/docs/koha-stop-zebra.xml +++ b/debian/docs/koha-stop-zebra.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-upgrade-schema.xml b/debian/docs/koha-upgrade-schema.xml index 8b5a4c4b60..a0391d0b60 100644 --- a/debian/docs/koha-upgrade-schema.xml +++ b/debian/docs/koha-upgrade-schema.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/debian/docs/koha-upgrade-to-3.4.xml b/debian/docs/koha-upgrade-to-3.4.xml index c528377169..d3d6ae2f41 100644 --- a/debian/docs/koha-upgrade-to-3.4.xml +++ b/debian/docs/koha-upgrade-to-3.4.xml @@ -3,7 +3,7 @@ Koha is the first free software library automation package. - The Koha Communnity + The Koha Community http://koha-community.org/ diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index 9233b53fff..dc82d08a39 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -20,16 +20,6 @@ SetEnv MEMCACHED_SERVERS "__MEMCACHED_SERVERS__" SetEnv MEMCACHED_NAMESPACE "__MEMCACHED_NAMESPACE__" - - Options -Indexes - - - # Secure internal stuff - - Order deny,allow - Deny from all - - mod_gzip_on yes mod_gzip_dechunk yes @@ -129,16 +119,6 @@ ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl - - Options -Indexes - - - # Secure internal stuff - - Order deny,allow - Deny from all - - mod_gzip_on yes mod_gzip_dechunk yes diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xml b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml similarity index 100% rename from etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xml rename to etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/localcovers.js b/koha-tmpl/intranet-tmpl/prog/en/js/localcovers.js index 981af75e76..f044f62247 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/localcovers.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/localcovers.js @@ -28,6 +28,13 @@ KOHA.LocalCover = { '/cgi-bin/koha/catalogue/image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class")) .load(function () { if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { + //IE HACK + try { + $(mydiv).append(img); + $(mydiv).children('.no-image').remove(); + } + catch(err){ + } } else { if (uselink) { var a = $("").attr('href', '/cgi-bin/koha/catalogue/imageviewer.pl?biblionumber=' + $(mydiv).attr("class")); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index b59b2ee5ad..c9eda4f48f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -129,6 +129,7 @@ $(document).ready(function() //We apply the fonction only for modify option [% IF ( quantityrec ) %] + [% IF ( acqcreate ) %] $('#quantity').blur(function() { // if user decreases the quantity @@ -147,6 +148,7 @@ $(document).ready(function() } }); [% END %] + [% END %] //keep a copy of all budgets before removing the inactives disabledBudgetsCopy = $('#budget_id').html(); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 03fac60e86..7cdebd86d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -38,7 +38,7 @@ $(document).ready(function() { [% INCLUDE 'cat-search.inc' %] +
+ Cancel +
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt index c54478d470..62347f8351 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tt @@ -133,7 +133,7 @@ [% IF ( f7b ) %] [% ELSE %] - + [% END %] [% IF ( f7c ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt index d53ee7e04e..182070fc74 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt @@ -106,7 +106,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "data": {ok: $(event.target).attr("title"), CGISESSID: readCookie('CGISESSID')}, "success": count_approve // success_approve }); - $(event.target).next(".rej").removeAttr("disabled").attr("value","Reject").css("color","#000"); + $(event.target).next(".rej").removeAttr("disabled").attr("value",_("Reject")).css("color","#000"); $(event.target).attr( "value",_("Approved")).attr("disabled","disabled").css("color","#666"); return false; // cancel submit } @@ -115,7 +115,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "data": {rej: $(event.target).attr("title"), CGISESSID: readCookie('CGISESSID')}, "success": count_reject // success_reject }); - $(event.target).prev(".ok").removeAttr("disabled").attr("value","Approve").css("color","#000"); + $(event.target).prev(".ok").removeAttr("disabled").attr("value",_("Approve")).css("color","#000"); $(event.target).attr( "value",_("Rejected")).attr("disabled","disabled").css("color","#666"); return false; // cancel submit } @@ -249,8 +249,8 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } [% END %] [% IF ( tagloop ) %]
- - + +
[% END %] @@ -278,7 +278,7 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; }
Enter a word or phrase to check against approved/rejected lists:
-
+
[% IF ( test_term ) %] [% IF ( verdict_ok ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl index 963fd722c1..62b6b7f260 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl @@ -2,7 +2,7 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index faad011fbf..7a92d2d796 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -4,6 +4,7 @@ diff --git a/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js b/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js index f2808ef6f9..6d247983bf 100644 --- a/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js +++ b/koha-tmpl/opac-tmpl/prog/en/js/localcovers.js @@ -28,6 +28,13 @@ KOHA.LocalCover = { '/cgi-bin/koha/opac-image.pl?thumbnail=1&biblionumber=' + $(mydiv).attr("class")) .load(function () { if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { + //IE HACK + try { + $(mydiv).append(img); + $(mydiv).children('.no-image').remove(); + } + catch(err){ + }; } else { if (uselink) { var a = $("").attr('href', '/cgi-bin/koha/opac-imageviewer.pl?biblionumber=' + $(mydiv).attr("class")); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt index bb8719d234..101a0272a0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt @@ -141,7 +141,7 @@ $(document).ready(function(){ $("span.clearall").html(""+_("Clear all")+"<\/a>"); $("span.checkall").html(""+_("Select all")+"<\/a>"); [% IF ( opacbookbag ) %]$("span.addto").html(param1);[% ELSE %][% IF ( virtualshelves ) %][% IF ( loggedinusername ) %]$("span.addto").html(param1);[% END %][% END %][% END %] -[% IF ( opacbookbag ) %] +[% IF ( opacbookbag || virtualshelves ) %] [% IF ( virtualshelves ) %] $("#addto").change(function(){ cartList(); diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index 09bd9e09a4..91d9b3db2e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -4,6 +4,7 @@ diff --git a/misc/cronjobs/social_data/get_report_social_data.pl b/misc/cronjobs/social_data/get_report_social_data.pl index 7069e24662..89d6b35061 100644 --- a/misc/cronjobs/social_data/get_report_social_data.pl +++ b/misc/cronjobs/social_data/get_report_social_data.pl @@ -1,4 +1,4 @@ -#!/bin/perl +#!/usr/bin/perl use Modern::Perl; use C4::SocialData; diff --git a/tags/review.pl b/tags/review.pl index 7517f4167e..01e29d8ea2 100755 --- a/tags/review.pl +++ b/tags/review.pl @@ -89,7 +89,12 @@ my ($template, $borrowernumber, $cookie) = get_template_and_user({ }); my ($op, @errors, @tags); -$op = lc($input->param('op')) || 'none'; + +foreach (qw( approve reject test )) { + $op = $_ if ( $input->param("op-$_") ); +} +$op ||= 'none'; + @tags = $input->param('tags'); $borrowernumber == 0 and push @errors, {op_zero=>1};