From: Chris Cormack Date: Thu, 14 Apr 2011 01:36:57 +0000 (+1200) Subject: Merge branch 'new/enh/bug_5917' into kcmaster X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=d4f2bde05474bec3bb9534b510d424e2c5e792ed;hp=1c5005beb20962778b28b6a3418fddb0d0c90e5a;p=koha.git Merge branch 'new/enh/bug_5917' into kcmaster --- diff --git a/C4/Accounts.pm b/C4/Accounts.pm index 9540b44a63..32054f456f 100644 --- a/C4/Accounts.pm +++ b/C4/Accounts.pm @@ -352,7 +352,8 @@ should be the empty string. sub manualinvoice { my ( $borrowernumber, $itemnum, $desc, $type, $amount, $note ) = @_; - my $manager_id = C4::Context->userenv->{'number'}; + my $manager_id = 0; + $manager_id = C4::Context->userenv->{'number'} if C4::Context->userenv; my $dbh = C4::Context->dbh; my $notifyid = 0; my $insert; diff --git a/C4/Branch.pm b/C4/Branch.pm index 817aa385f2..abcdbd6b74 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -206,7 +206,7 @@ sub ModBranch { branchaddress2,branchaddress3,branchzip,branchcity,branchstate, branchcountry,branchphone,branchfax,branchemail, branchurl,branchip,branchprinter,branchnotes) - VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) + VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) "; my $sth = $dbh->prepare($query); $sth->execute( diff --git a/C4/Search.pm b/C4/Search.pm index a8d6625a05..ab7cb59721 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -359,10 +359,10 @@ sub getRecords { # Note: sort will override rank my $sort_by; foreach my $sort (@sort_by) { - if ( $sort eq "author_az" ) { + if ( $sort eq "author_az" || $sort eq "author_asc" ) { $sort_by .= "1=1003 {'RECORDS'}[ $numbers++ ] = $result{$key}->as_usmarc(); diff --git a/C4/Templates.pm b/C4/Templates.pm index 54ad9fd26e..ea11aeebdb 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -108,7 +108,7 @@ sub output { utf8_arrayref($vars->{$k}); } elsif (ref($vars->{$k}) eq 'HASH'){ - uft8_hashref($vars->{$k}); + utf8_hashref($vars->{$k}); } else { utf8::encode($vars->{$k}) if utf8::is_utf8($vars->{$k}); diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index df7054e57d..cb55b9c46f 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -57,6 +57,8 @@ sub shelfpage ($$$$$) { $query or die "No query"; $template or die "No template"; $template->param( { loggedinuser => $loggedinuser } ); + my $edit; + my $shelves; my @paramsloop; my $totitems; my $shelfoff = ( $query->param('shelfoff') ? $query->param('shelfoff') : 1 ); @@ -163,6 +165,7 @@ sub shelfpage ($$$$$) { my ( $shelfnumber2, $shelfname, $owner, $category, $sortfield ) = GetShelf($shelfnumber); my $member = GetMember( 'borrowernumber' => $owner ); my $ownername = defined($member) ? $member->{firstname} . " " . $member->{surname} : ''; + $edit = 1; $template->param( edit => 1, shelfnumber => $shelfnumber2, @@ -312,7 +315,7 @@ sub shelfpage ($$$$$) { $stay = 0; } $showadd = 1; - $stay and $template->param( shelves => 1 ); + $stay and $template->param( shelves => 1 ) and $shelves = 1; last SWITCH; } } @@ -359,7 +362,7 @@ sub shelfpage ($$$$$) { $qhash{$_} = $query->param($_) if $query->param($_); } ( scalar keys %qhash ) and $url .= '?' . join '&', map { "$_=$qhash{$_}" } keys %qhash; - if ( $query->param('viewshelf') ) { + if ( $shelfnumber ) { $template->param( { pagination_bar => pagination_bar( $url, ( int( $totitems / $shelflimit ) ) + ( ( $totitems % $shelflimit ) > 0 ? 1 : 0 ), $itemoff, "itemoff" ) } ); } else { $template->param( @@ -373,13 +376,13 @@ sub shelfpage ($$$$$) { "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1, csv_profiles => GetCsvProfilesLoop() ); - if ( $template->param('viewshelf') - or $template->param('shelves') - or $template->param('edit') ) { + if ( $shelfnumber + or $shelves + or $edit ) { $template->param( vseflag => 1 ); } - if ($template->param('shelves') or # note: this part looks duplicative, but is intentional - $template->param('edit') + if ($shelves or # note: this part looks duplicative, but is intentional + $edit ) { $template->param( seflag => 1 ); } diff --git a/cataloguing/value_builder/marc21_field_006.pl b/cataloguing/value_builder/marc21_field_006.pl index 6a4445af73..7b55a0a746 100755 --- a/cataloguing/value_builder/marc21_field_006.pl +++ b/cataloguing/value_builder/marc21_field_006.pl @@ -86,7 +86,7 @@ sub plugin { my $errorXml = ''; # Check if the xml, xsd exists and is validated - my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->param('lang') . '/modules/cataloguing/value_builder/'; + my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->{lang} . '/modules/cataloguing/value_builder/'; if (-r $dir . 'marc21_field_006.xml') { my $doc = XML::LibXML->new->parse_file($dir . 'marc21_field_006.xml'); if (-r $dir . 'marc21_field_CF.xsd') { diff --git a/cataloguing/value_builder/marc21_field_008.pl b/cataloguing/value_builder/marc21_field_008.pl index 8b5db263d3..5b8a7e5464 100755 --- a/cataloguing/value_builder/marc21_field_008.pl +++ b/cataloguing/value_builder/marc21_field_008.pl @@ -100,7 +100,7 @@ sub plugin { $result = "$dateentered" . "t xxu||||| |||| 00| 0 eng d" unless $result; my $errorXml = ''; # Check if the xml, xsd exists and is validated - my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->param('lang') . '/modules/cataloguing/value_builder/'; + my $dir = C4::Context->config('intrahtdocs') . '/prog/' . $template->{lang} . '/modules/cataloguing/value_builder/'; if (-r $dir . 'marc21_field_008.xml') { my $doc = XML::LibXML->new->parse_file($dir . 'marc21_field_008.xml'); if (-r $dir . 'marc21_field_CF.xsd') { diff --git a/cataloguing/value_builder/unimarc_field_210c_bis.pl b/cataloguing/value_builder/unimarc_field_210c_bis.pl new file mode 100755 index 0000000000..420fa8f8d9 --- /dev/null +++ b/cataloguing/value_builder/unimarc_field_210c_bis.pl @@ -0,0 +1,110 @@ +#!/usr/bin/perl + +# Copyright 2000-2002 Katipo Communications +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +=head1 SYNOPSIS + +This plugin is used to map isbn/editor with collection. +It need : + in thesaurus, a category named EDITORS + in this category, datas must be entered like following : + isbn separator editor separator collection. + for example : + 2204 -- Cerf -- Cogitatio fidei + 2204 -- Cerf -- Le Magistere de l'Eglise + 2204 -- Cerf -- Lectio divina + 2204 -- Cerf -- Lire la Bible + 2204 -- Cerf -- Pour lire + 2204 -- Cerf -- Sources chretiennes + + when the user clic on ... on 225a line, the popup shows the list of collections from the selected editor + if the biblio has no isbn, then the search if done on editor only + If the biblio ha an isbn, the search is done on isbn and editor. It's faster. + +=over 2 + +=cut + +use strict; + +#use warnings; FIXME - Bug 2505 +use C4::Auth; +use CGI; +use C4::Context; + +use C4::AuthoritiesMarc; +use C4::Output; + +=head1 + +plugin_parameters : other parameters added when the plugin is called by the dopop function + +=cut + +sub plugin_parameters { + my ( $dbh, $record, $tagslib, $i, $tabloop ) = @_; + return ""; +} + +sub plugin_javascript { + my ( $dbh, $record, $tagslib, $field_number, $tabloop ) = @_; + my $function_name = $field_number; + my $res = " + +"; + + return ( $function_name, $res ); +} + +sub plugin { + my ($input) = @_; + my $index = $input->param('index'); + my $result = $input->param('result'); + my $editor_found = $input->param('editor_found'); + my $authoritysep = C4::Context->preference("authoritysep"); + warn Data::Dumper::Dumper $index; + + my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { template_name => "cataloguing/value_builder/unimarc_field_210c_bis.tmpl", + query => $input, + type => "intranet", + authnotrequired => 0, + flagsrequired => { editcatalogue => '*' }, + debug => 1, + } + ); + + $template->param( + index => $index, + ); + output_html_with_http_headers $input, $cookie, $template->output; +} + +1; diff --git a/cataloguing/ysearch.pl b/cataloguing/ysearch.pl new file mode 100755 index 0000000000..5cd0205a23 --- /dev/null +++ b/cataloguing/ysearch.pl @@ -0,0 +1,78 @@ +#!/usr/bin/perl + +# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html) + +# Copyright 2007 Tamil s.a.r.l. +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +=head1 ysearch.pl + + +=cut + +use strict; + +#use warnings; FIXME - Bug 2505 +use CGI; +use C4::Context; +use C4::Auth qw/check_cookie_auth/; + +my $input = new CGI; +my $query = $input->param('query'); +my $table = $input->param('table'); +my $field = $input->param('field'); + +# Prevent from disclosing data +die() unless ($table eq "biblioitems"); + +binmode STDOUT, ":utf8"; +print $input->header( -type => 'text/plain', -charset => 'UTF-8' ); + +my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { cataloguing => '*' } ); +if ( $auth_status ne "ok" ) { + exit 0; +} + +my $dbh = C4::Context->dbh; +my $sql = qq(SELECT distinct $field + FROM $table + WHERE $field LIKE ? OR $field LIKE ? or $field LIKE ?); +$sql .= qq( ORDER BY $field); +my $sth = $dbh->prepare($sql); +$sth->execute("$query%", "% $query%", "%-$query%"); + +while ( my $rec = $sth->fetchrow_hashref ) { + print nsb_clean($rec->{$field}) . "\n"; +} + +sub nsb_clean { + my $NSB = '\x88' ; # NSB : begin Non Sorting Block + my $NSE = '\x89' ; # NSE : Non Sorting Block end + my $NSB2 = '\x98' ; # NSB : begin Non Sorting Block + my $NSE2 = '\x9C' ; # NSE : Non Sorting Block end + # handles non sorting blocks + my ($string) = @_ ; + $_ = $string ; + s/$NSB//g ; + s/$NSE//g ; + s/$NSB2//g ; + s/$NSE2//g ; + $string = $_ ; + + return($string) ; +} + diff --git a/circ/returns.pl b/circ/returns.pl index e954a3b736..5a0cc09271 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -249,7 +249,23 @@ if ($barcode) { $template->param( fineborrowernumber => $borrower->{'borrowernumber'} ); } } - + + if (C4::Context->preference("WaitingNotifyAtCheckin") ) { + #Check for waiting holds + my @reserves = GetReservesFromBorrowernumber($borrower->{'borrowernumber'}); + my $waiting_holds; + foreach my $num_res (@reserves) { + if ( $num_res->{'found'} eq 'W' && $num_res->{'branchcode'} eq $userenv_branch) { + $waiting_holds++; + } + } + if ($waiting_holds > 0) { + $template->param( + waiting_holds => $waiting_holds, + holdsborrowernumber => $borrower->{'borrowernumber'}, + ); + } + } } elsif ( !$messages->{'BadBarcode'} ) { $input{duedate} = 0; diff --git a/docs/history.txt b/docs/history.txt index 482d4d6d44..008441ccdb 100644 --- a/docs/history.txt +++ b/docs/history.txt @@ -539,3 +539,5 @@ March 17 2011 Sophie Meynieux becomes the 137th developer to have a patch pushed March 22 2011 Koha 3.2.6 released March 31 2011 Doug Dearden becomes the 138th developer to have a patch pushed April 8 2011 Mark Gavillet becomes the 139th developer to have a patch pushed +April 9 2011 Frederic Durand becomes the 140th developer to have a patch pushed +April 9 2011 Jonathan Druart becomes the 141st developer to have a patch pushed diff --git a/installer/data/mysql/de-DE/mandatory/sysprefs.sql b/installer/data/mysql/de-DE/mandatory/sysprefs.sql index dd7547714e..5e62df8591 100755 --- a/installer/data/mysql/de-DE/mandatory/sysprefs.sql +++ b/installer/data/mysql/de-DE/mandatory/sysprefs.sql @@ -35,6 +35,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','normal|marc|isbd|labeled_marc','Choice'); diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index 8b90a24bff..8c94d0834f 100755 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -35,6 +35,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','normal|marc|isbd|labeled_marc','Choice'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 552bf80d84..311f961e78 100755 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -37,6 +37,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('gist', '0', 'Ce paramètre définit le taux de TVA. Attention : ce n''est pas un % mais un nombre (0.055 et pas 5.5%) Laisser à 0 si vous ne récupérez pas la TVA, ce qui est le cas de la plupart des bibliothèques françaises', '', 'Integer'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems', '0', 'Si ce paramètre est activé, l''OPAC n''affichera pas les notices pour lesquelles le ou les exemplaires sont marqués "perdus"', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc', '0', 'Si ce paramètre est positionné, les code des champs et sous-champs MARC sont cachés, on ne voit que les libellés.', '', 'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches', '0', 'Si ce paramètre est à "Oui", chaque site est indépendant au niveau de ses acquisitions, de son catalogage, de l''inscription de ses lecteurs...', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure', '0', 'Ce paramètre, s''il est positionné à "Oui", permet d''utiliser Koha sans mot de passe. A utiliser avec précaution. Devrait être à "Non" normalement', '', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('intranetcolorstylesheet', '', 'Ce paramètre permet de définir un jeu de couleur alternatif dans l''interface professionnelle', '50', 'free'); diff --git a/installer/data/mysql/it-IT/necessari/sysprefs.sql b/installer/data/mysql/it-IT/necessari/sysprefs.sql index f17318b039..b6ecc9995a 100755 --- a/installer/data/mysql/it-IT/necessari/sysprefs.sql +++ b/installer/data/mysql/it-IT/necessari/sysprefs.sql @@ -65,6 +65,7 @@ insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('GoogleJackets','1','','Se ON, visualizza le copertine usando Google Books','YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('hidelostitems','0','','Se ON, viene disabilitata la visualizzazione nell\'OPAC delle copie perse.','YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('hide_marc','0','','Se su ON, disabilita la visualizzazione dei campi del MARC, codici di sottocampi e indicatori (mostra ancora i dati)','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('HomeOrHoldingBranch','holdingbranch','holdingbranch|homebranch','Se IndependantBranches e\' settata su ON, allora il sitema legge questa variabile. Se questa variabile e\' sul valore \'homebranch\' quando arriva una copia di un\'altra biblioteca si puo\' registare la restituzione dove la copia e\' arrivata. Se invece vale \'holdingbranch\', allora non si puo fare la restituzione ma solo prenderla e inviarla alla biblioteca di appartenenza; là verrà fatta la restituzione ','Choice'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('IndependantBranches','0','','Se è ON, aumenta il livello di sicurezza tra le biblioteche','YesNo'); insert into `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) values('insecure','0','','Se è su ON, tutte le richieste di autenticazioni vengono aggirate. Attenzione!','YesNo'); @@ -297,3 +298,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/O pacHiddenItems.txt for more informations.','','Textarea'); + diff --git a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql index 31821fe95f..24a2a035de 100755 --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ b/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -35,6 +35,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','normal|marc|isbd|labeled_marc','Choice'); diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql index 58b51cd84a..585fa8b3d1 100755 --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -47,6 +47,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','IntranetBiblioDefaultView','normal|marc|isbd|labeled_marc','Choice'); @@ -364,3 +365,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsField','','The MARC field/subfield that contains alternate holdings information for bibs taht do not have items attached (e.g. 852abchi for libraries converting from MARC Magician).',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('AlternateHoldingsSeparator','','The string to use to separate subfields in alternate holdings displays.',NULL,'free'); INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacHiddenItems','','This syspref allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations.','','Textarea'); + diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql index 9074432343..3de76fa846 100755 --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -46,6 +46,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('FinesLog',1,'If ON, log fines',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hidelostitems',0,'If ON, disables display of\"lost\" items in OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('hide_marc',0,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IndependantBranches',0,'If ON, increases security between libraries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('insecure',0,'If ON, bypasses all authentication. Be careful!',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('IntranetBiblioDefaultView','normal','IntranetBiblioDefaultView','normal|marc|isbd|labeled_marc','Choice'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index aba069633c..3baefc845c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4132,6 +4132,12 @@ $DBversion = '3.03.00.032'; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('TraceSubjectSubdivisions', 1, 'Create searches on all subdivisions for subject tracings.','1','YesNo')"); print "Upgrade to $DBversion done ( include subdivisions when generating subject tracing searches )\n"; +} + +$DBversion = "3.03.00.XXX"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('WaitingNotifyAtCheckin',0,'If ON, notify librarians of waiting holds for the patron whose items they are checking in.',NULL,'YesNo');"); + print "Upgrade to $DBversion done (Add syspref WaitingNotifyAtCheckin)\n"; SetVersion ($DBversion); } @@ -4297,7 +4303,7 @@ $DBversion = "3.03.00.051"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { print "Upgrade to $DBversion done (Remove spaces and dashes from message_attribute names)\n"; $dbh->do("UPDATE message_attributes SET message_name = 'Item_Due' WHERE message_name='Item Due'"); - $dbh->do("UPDATE message_attributes SET message_name = 'Advance_Notice' WHERE message_name='Advance_Notice'"); + $dbh->do("UPDATE message_attributes SET message_name = 'Advance_Notice' WHERE message_name='Advance Notice'"); $dbh->do("UPDATE message_attributes SET message_name = 'Hold_Filled' WHERE message_name='Hold Filled'"); $dbh->do("UPDATE message_attributes SET message_name = 'Item_Check_in' WHERE message_name='Item Check-in'"); $dbh->do("UPDATE message_attributes SET message_name = 'Item_Checkout' WHERE message_name='Item Checkout'"); diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc index 5c796eeac3..da64ca41f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc @@ -60,7 +60,7 @@ [% FOREACH auth_cats_loo IN auth_cats_loop %] { text: _("Plan by [% auth_cats_loo.authcat %] "), url: "/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% auth_cats_loo.budget_period_id %]&authcat=[% auth_cats_loo.authcat %]" - [% UNLESS ( auth_cats_loo.CAN_user_acquisition_planning_manage ) %], id:'disabled' [% END %] + [% UNLESS ( CAN_user_acquisition_planning_manage ) %], id:'disabled' [% END %] }, [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt index a54a99df12..842f75dd40 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt @@ -58,7 +58,7 @@ [% ELSE %] [% END %] - [% IF ( loop_supplier.CAN_user_acquisition_order_manage ) %] + [% IF ( CAN_user_acquisition_order_manage ) %] [% IF ( loop_supplier.active ) %] New basket [% ELSE %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt index 9d24e63f94..44b7b3c750 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt @@ -45,29 +45,29 @@ Copyright   - [% FOREACH resultsloo IN resultsloop %] + [% FOREACH biblio IN resultsloop %] -

[% resultsloo.title |html %] - [% IF ( resultsloo.author ) %] by [% resultsloo.author %],[% END %]

-

[% IF ( resultsloo.isbn ) %] [% resultsloo.isbn %][% END %] - [% IF ( resultsloo.pages ) %] - [% resultsloo.pages %][% END %] - [% IF ( resultsloo.notes ) %] : [% resultsloo.notes %][% END %] - [% IF ( resultsloo.size ) %] ; [% resultsloo.size %][% END %] +

[% biblio.title |html %] + [% IF ( biblio.author ) %] by [% biblio.author %],[% END %]

+

[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %] + [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %] + [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %] + [% IF ( biblio.size ) %] ; [% biblio.size %][% END %]

- [% resultsloo.publishercode %] - [% IF ( resultsloo.place ) %] ; [% resultsloo.place %][% END %] + [% biblio.publishercode %] + [% IF ( biblio.place ) %] ; [% biblio.place %][% END %] - [% resultsloo.copyrightdate %] + [% biblio.copyrightdate %] - View MARC + View MARC - + Order diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index 9e74e4ab48..03c4c10c91 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -66,6 +66,12 @@ Circulation: yes: Notify no: "Don't notify" - librarians of overdue fines on the items they are checking in. + - + - pref: WaitingNotifyAtCheckin + choices: + yes: Notify + no: "Don't notify" + - librarians of waiting holds for the patron whose items they are checking in. - - pref: FilterBeforeOverdueReport choices: diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index c7d34d5c56..bfa5179cd1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -56,10 +56,10 @@
Search For: - [% FOREACH search_boxes_loo IN search_boxes_loop %] - [% IF ( search_boxes_loo.search_boxes_label ) %]
[% ELSE %]
[% END %] - [% IF ( search_boxes_loo.expanded_options ) %] - [% IF ( search_boxes_loo.boolean ) %] + [% FOREACH search_box IN search_boxes_loop %] + [% IF ( search_boxes_label ) %]
[% ELSE %]
[% END %] + [% IF ( expanded_options ) %] + [% IF ( search_box.boolean ) %] - [% IF ( search_boxes_loo.expanded_options ) %] - [% IF ( search_boxes_loo.add_field ) %] + [% IF ( expanded_options ) %] + [% IF ( search_box.add_field ) %] [+] [% END %] - [% IF ( search_boxes_loo.scan_index ) %] - - [% END %] + [% IF ( search_box.scan_index ) %] + + [% END %] [% END %]
[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 2a67599d5e..86c8a3f59f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -43,8 +43,8 @@ [% FOREACH ITEM_DAT IN ITEM_DATA %]

Barcode [% ITEM_DAT.barcode %] [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext %] [% END %]

-

Item Information [% IF ( ITEM_DAT.CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %] - [% IF ( ITEM_DAT.CAN_user_editcatalogue_edit_items ) %] +

Item Information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %] + [% IF ( CAN_user_editcatalogue_edit_items ) %] [Edit Item] [% END %] [% END %][% END %]

@@ -71,7 +71,7 @@
  • Current Renewals: [% ITEM_DAT.renewals %] 
  • [% IF ( ITEM_DAT.itemlostloop ) %]
  • Lost Status: - [% IF ( ITEM_DAT.CAN_user_circulate ) %] + [% IF ( CAN_user_circulate ) %]
    @@ -101,7 +101,7 @@ [% END %] [% IF ( ITEM_DAT.itemdamagedloop ) %]
  • Damaged Status: - [% IF ( ITEM_DAT.CAN_user_circulate ) %] + [% IF ( CAN_user_circulate ) %] @@ -130,7 +130,7 @@
  • [% END %]
  • Withdrawn?:[% IF ( ITEM_DAT.wthdrawn ) %]Yes[% ELSE %]No[% END %] - [% IF ( ITEM_DAT.CAN_user_circulate ) %] + [% IF ( CAN_user_circulate ) %] @@ -152,7 +152,7 @@
    1. - [% IF ( ITEM_DAT.CAN_user_editcatalogue_edit_catalogue ) %] + [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] Accession Date: [% IF ( ITEM_DAT.basketno ) %] @@ -175,7 +175,7 @@
    2. Paid for?: [% ITEM_DAT.paidfor %] 
    3. Serial enumeration: [% ITEM_DAT.enumchron %] 
    4. Public Note: - [% IF ( ITEM_DAT.CAN_user_editcatalogue_edit_items ) %] + [% IF ( CAN_user_editcatalogue_edit_items ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt index 8a533ba390..f5e371252b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbooks.tt @@ -98,8 +98,8 @@ MARC | Card - [% IF ( resultsloo.CAN_user_editcatalogue_edit_catalogue ) %]Edit biblio[% END %] - [% IF ( resultsloo.CAN_user_editcatalogue_edit_items ) %]Add/Edit Items[% END %] + [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]Edit biblio[% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %]Add/Edit Items[% END %] [% END %] @@ -142,7 +142,7 @@ MARC | Card - Add biblio + Add biblio [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 89957fb96f..a74d677529 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -207,7 +207,7 @@ function set_to_today(id, force) { [% FOREACH item_loo IN item_loop %] - [% IF ( item_loo.nomod ) %]  [% ELSE %]Edit + [% IF ( item_loo.nomod ) %]  [% ELSE %]Edit Delete[% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt new file mode 100644 index 0000000000..2a68566e2b --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c_bis.tt @@ -0,0 +1,75 @@ + + + + UNIMARC_Field 225a builder + + + + + + + + + [% END %] + +[% IF ( waiting_holds ) %] +
      +

      Patron has [% waiting_holds %] hold(s) waiting for pickup.

      +

      Checkout holds.

      +
      +[% END %] + [% IF ( wrongbranch ) %]

      Cannot Check In

      This item must be checked in at its home library. NOT CHECKED IN

      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index e83f20eb05..e43e164b6d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -105,7 +105,7 @@ [% FOREACH koha_new IN koha_news %]

      [% koha_new.title %]

      [% koha_new.new %]

      -

      Posted on [% koha_new.newdate %] [% IF ( koha_new.CAN_user_tools ) %] +

      Posted on [% koha_new.newdate %] [% IF ( CAN_user_tools ) %] Edit | Delete | New[% END %]

      [% END %]
      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt index aa76755c18..4a85ccbf6c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt @@ -5,11 +5,13 @@ - +
      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt index f1a661deb7..7625260ce2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt @@ -4,11 +4,13 @@ - +
      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt index d2933dfffe..a712e839b7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt @@ -4,11 +4,13 @@ - +
      diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 68e65e95b6..31fd512421 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -171,13 +171,13 @@ canned reports and writing custom SQL reports.

      Show - [% IF ( savedreport.CAN_user_reports_create_reports ) %] + [% IF ( CAN_user_reports_create_reports ) %]   Edit [% END %] Run Schedule - [% IF ( savedreport.CAN_user_reports_create_reports ) %] + [% IF ( CAN_user_reports_create_reports ) %] Delete [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 43b6cd1ff9..2c392b0770 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -570,7 +570,7 @@ function checkMultiHold() { [% biblioloo.title |html %] [% END %] - [% IF ( biblioloo.CAN_user_reserveforothers_modify_holds_priority ) %] + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] Priority   [% ELSE %] @@ -582,7 +582,7 @@ function checkMultiHold() { Expiration Pick up Library Details - [% IF ( biblioloo.CAN_user_reserveforothers_modify_holds_priority ) %] + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] Toggle Set to Lowest Priority [% END %]   @@ -600,14 +600,14 @@ function checkMultiHold() { [% END %] [% END %] - [% IF ( reserveloo.CAN_user_reserveforothers_modify_holds_priority ) %][% FOREACH optionloo IN reserveloo.optionloop %] + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %][% FOREACH optionloo IN reserveloo.optionloop %] [% IF ( optionloo.selected ) %][% ELSE %][% END %] [% END %][% ELSE %][% END %] - [% IF ( reserveloo.CAN_user_reserveforothers_modify_holds_priority ) %] + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] Go up @@ -699,7 +699,7 @@ function checkMultiHold() { [% END %] - [% IF ( reserveloo.CAN_user_reserveforothers_modify_holds_priority ) %] + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF ( reserveloo.lowestPriority ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt index 207f831097..56a8214920 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-home.tt @@ -129,7 +129,7 @@ Serials updated : [% IF ( subscription.cannotedit ) %]   [% ELSE %] - [% IF ( subscription.CAN_user_serials_receive_serials ) %]Serial receive[% END %] + [% IF ( CAN_user_serials_receive_serials ) %]Serial receive[% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 20d04a761d..21013f5a0d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -162,7 +162,7 @@ for( x=0; x [% not_deleted_loo.itemnumber %] - [% IF ( not_deleted_loo.CAN_user_editcatalogue_edit_items ) %][% not_deleted_loo.barcode %][% ELSE %][% not_deleted_loo.barcode %][% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %][% not_deleted_loo.barcode %][% ELSE %][% not_deleted_loo.barcode %][% END %] [% IF ( not_deleted_loo.book_on_loan ) %]Item is checked out[% ELSIF ( not_deleted_loo.book_reserved ) %]Item has a waiting hold[% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 5fcd2833a1..461b6bcacb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -100,7 +100,7 @@ for( x=0; x [% FOREACH simple_items_displa IN simple_items_display %]
    5. - [% IF ( simple_items_displa.CAN_user_editcatalogue_edit_items ) %][% simple_items_displa.barcode %][% ELSE %][% simple_items_displa.barcode %][% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %][% simple_items_displa.barcode %][% ELSE %][% simple_items_displa.barcode %][% END %]
    6. [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt index f302a67f03..1c9381d8b5 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt @@ -46,10 +46,10 @@
      Search for: - [% FOREACH search_boxes_loo IN search_boxes_loop %] + [% FOREACH search_box IN search_boxes_loop %]

      - [% IF ( search_boxes_loo.expanded_options ) %] - [% IF ( search_boxes_loo.boolean ) %] + [% IF ( expanded_options ) %] + [% IF ( search_box.boolean ) %] [% END %] [% END %] - [% IF ( search_boxes_loo.expanded_options ) %][% search_boxes_loo.left_content %][% END %] + [% IF ( expanded_options ) %][% left_content %][% END %] -[% IF ( search_boxes_loo.expanded_options ) %] - - [% IF ( search_boxes_loo.add_field ) %][+][% END %] +[% IF ( expanded_options ) %] + + [% IF ( search_box.add_field ) %][+][% END %] [% END %]

      [% END %] @@ -123,7 +123,7 @@
      Publication Date Range: -For example: 1999-2001. You could also use "-1987" for everything published before 1987 or "2008minus" for everything published after 2008. +For example: 1999-2001. You could also use "-1987" for everything published before 1987 or "2008-" for everything published after 2008.
      diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt index 21dace91af..2734fde454 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt @@ -22,7 +22,7 @@ $(document).ready(function(){
      -

      [% firstname %] [% surname %]'s account > Checkout History

      +

      [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]'s account > Checkout History

      [% UNLESS ( count ) %] You have never borrowed anything from this library. diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt index 742851d576..4b72bc9e69 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tt @@ -267,7 +267,7 @@ [% ELSE %] - [% UNLESS ( bibitemloo.none_available ) %] [% END %] + [% UNLESS ( none_available ) %] [% END %] [% END %] [% IF ( bibitemloo.holdable ) %][% ELSE %][% END %] [% bibitemloo.title |html %][% IF ( bibitemloo.subtitle ) %] [% FOREACH subtitl IN bibitemloo.subtitle %][% subtitl.subfield %][% END %][% END %] @@ -296,11 +296,11 @@ [% END %][% END %] [% IF ( bibitemloo.holdable ) %] - [% IF ( bibitemloo.showpriority ) %] + [% IF ( showpriority ) %] [% bibitemloo.rank %] out of [% bibitemloo.reservecount %] [% END %][% END %] - [% IF ( bibitemloo.reserve_in_future ) %] + [% IF ( reserve_in_future ) %] [% IF ( bibitemloo.holdable ) %]