Displaying Sort Authorised values if linked to authorisedvalue list.
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
02c3fe4c45
commit
249b1c6b27
2 changed files with 4 additions and 3 deletions
|
@ -1533,7 +1533,8 @@ sub GetSortDetails {
|
|||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute( $category, $sortvalue );
|
||||
my $lib = $sth->fetchrow;
|
||||
return ($lib);
|
||||
return ($lib) if ($lib);
|
||||
return ($sortvalue) unless ($lib);
|
||||
}
|
||||
|
||||
=head2 DeleteBorrower
|
||||
|
|
|
@ -225,8 +225,8 @@ for (var i=0;i<ItemsNodes.length;i++){
|
|||
|
||||
<li><span class="label">Registration branch: </span><!-- TMPL_VAR NAME="branchname" --></li>
|
||||
|
||||
<!-- TMPL_IF NAME="sort1" --><li><span class="label">Sort field 1: </span><!-- TMPL_VAR NAME="sort1" --></li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="sort2" --><li><span class="label">Sort field 2:</span><!-- TMPL_VAR NAME="sort2" --></li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="sort1" --><li><span class="label">Sort field 1: </span><!-- TMPL_VAR NAME="lib1" --></li><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="sort2" --><li><span class="label">Sort field 2:</span><!-- TMPL_VAR NAME="lib2" --></li><!-- /TMPL_IF -->
|
||||
<li><span class="label">OPAC login: </span><!-- TMPL_VAR name="userid" --></li>
|
||||
<!-- TMPL_IF NAME="password" -->
|
||||
<li><span class="label">OPAC password: </span>*******</li>
|
||||
|
|
Loading…
Reference in a new issue