Bug Fixing :
Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
parent
2c979e6268
commit
a400e4be59
3 changed files with 16 additions and 15 deletions
|
@ -589,7 +589,7 @@ sub ModMember {
|
|||
if ( $data{'password'} eq '****' ) {
|
||||
delete $data{'password'};
|
||||
foreach (keys %data)
|
||||
{push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_} and $data{$_})} ;
|
||||
{push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_}) } ;
|
||||
$query = "UPDATE borrowers SET ".join (",",@parameters)
|
||||
." WHERE borrowernumber=$data{'borrowernumber'}";
|
||||
# warn "$query";
|
||||
|
@ -600,7 +600,7 @@ sub ModMember {
|
|||
$data{'password'} = md5_base64( $data{'password'} ) if ( $data{'password'} ne '' );
|
||||
delete $data{'password'} if ($data{password} eq "");
|
||||
foreach (keys %data)
|
||||
{push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_} and $data{$_})} ;
|
||||
{push @parameters,"$_ = ".$dbh->quote($data{$_}) if ($_ ne "borrowernumber" and $hashborrowerfields{$_})} ;
|
||||
|
||||
$query = "UPDATE borrowers SET ".join (",",@parameters)." WHERE borrowernumber=$data{'borrowernumber'}";
|
||||
# warn "$query";
|
||||
|
|
|
@ -366,12 +366,12 @@ sub GetSubscription {
|
|||
LEFT JOIN biblio ON biblio.biblionumber=subscription.biblionumber
|
||||
WHERE subscription.subscriptionid = ?
|
||||
);
|
||||
if (C4::Context->preference('IndependantBranches') &&
|
||||
C4::Context->userenv &&
|
||||
C4::Context->userenv->{'flags'} != 1){
|
||||
# warn "flags: ".C4::Context->userenv->{'flags'};
|
||||
$query.=" AND subscription.branchcode IN ('".C4::Context->userenv->{'branch'}."',\"\")";
|
||||
}
|
||||
# if (C4::Context->preference('IndependantBranches') &&
|
||||
# C4::Context->userenv &&
|
||||
# C4::Context->userenv->{'flags'} != 1){
|
||||
# # warn "flags: ".C4::Context->userenv->{'flags'};
|
||||
# $query.=" AND subscription.branchcode IN ('".C4::Context->userenv->{'branch'}."',\"\")";
|
||||
# }
|
||||
# warn "query : $query";
|
||||
my $sth = $dbh->prepare($query);
|
||||
# warn "subsid :$subscriptionid";
|
||||
|
@ -2309,6 +2309,7 @@ sub abouttoexpire {
|
|||
my ($res) = $sth->fetchrow ;
|
||||
# warn "date expiration : ".$expirationdate." date courante ".$res;
|
||||
my @res=split /-/,$res;
|
||||
@res=Date::Calc::Today if ($res[0]*$res[1]==0);
|
||||
my @endofsubscriptiondate=split/-/,$expirationdate;
|
||||
my $per = $subscription->{'periodicity'};
|
||||
my $x;
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
<!-- TMPL_IF NAME="expanded_options" --><!-- TMPL_VAR NAME="left_content" --><!-- /TMPL_IF -->
|
||||
<select name="idx">
|
||||
<option value="kw" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Keyword</option>
|
||||
<option value="au" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Author</option>
|
||||
<option value="au,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Author</option>
|
||||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
<option value="au,phr" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> Author Phrase</option>
|
||||
<option value="cpn" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> Corporate Name</option>
|
||||
|
@ -73,23 +73,23 @@
|
|||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
<option value="nt" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Notes/Comments</option>
|
||||
<!-- /TMPL_IF -->
|
||||
<option value="pb" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Publisher</option>
|
||||
<option value="pl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Publisher Location</option>
|
||||
<option value="pb,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Publisher</option>
|
||||
<option value="pl,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Publisher Location</option>
|
||||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
<option value="sn" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Standard Number</option>
|
||||
<option value="nb" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> ISBN</option>
|
||||
<option value="ns" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> ISSN</option>
|
||||
<option value="lcn" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> Call Number</option>
|
||||
<!-- /TMPL_IF -->
|
||||
<option value="su" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Subject</option>
|
||||
<option value="su,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Subject</option>
|
||||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
<option value="su,phr" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> Subject Phrase</option>
|
||||
<!-- /TMPL_IF -->
|
||||
<option value="ti" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Title</option>
|
||||
<option value="ti,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Title</option>
|
||||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
<option value="ti,phr" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->> Title Phrase</option>
|
||||
<!-- /TMPL_IF -->
|
||||
<option value="se" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Series Title</option>
|
||||
<option value="se,wrdl" <!-- TMPL_IF NAME="selected" -->selected="<!-- TMPL_VAR NAME="selected" -->"<!-- /TMPL_IF -->>Series Title</option>
|
||||
</select>
|
||||
<input type="text" size="30" name="q" title="Enter search terms" value=""/>
|
||||
<!-- TMPL_IF NAME="expanded_options" -->
|
||||
|
|
Loading…
Reference in a new issue