Removing old patronimages js check, adding missing patron image variable to script.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
200e00e347
commit
afabf473f4
11 changed files with 9 additions and 50 deletions
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Patrons › Account for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Borrowers › Create Manual Credit</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Borrowers › Create Manual Invoice</title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Patrons › Set Privileges for <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Patrons › <!-- TMPL_IF NAME="newpassword" -->Password Updated <!-- TMPL_ELSE -->Update Password for <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --><!-- /TMPL_IF --></title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Koha › Patrons › Pay Fines for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -1,13 +1,6 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
||||
<title>Reading Record for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></title>
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_IF NAME="patronimages" --><script type="text/JavaScript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
$(window).load(function() {
|
||||
verify_patron_images();
|
||||
});
|
||||
//]]>
|
||||
</script><!-- /TMPL_IF -->
|
||||
</head>
|
||||
<body>
|
||||
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
||||
|
|
|
@ -59,7 +59,9 @@ if ($add){
|
|||
|
||||
my $borrowercategory = GetBorrowercategory( $data->{'categorycode'} );
|
||||
my $category_type = $borrowercategory->{'category_type'};
|
||||
( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
|
||||
( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
|
||||
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
|
||||
$template->param( picture => 1 ) if $picture;
|
||||
|
||||
$template->param(
|
||||
borrowernumber => $borrowernumber,
|
||||
|
|
|
@ -78,6 +78,8 @@ if ($add){
|
|||
my $borrowercategory = GetBorrowercategory( $data->{'categorycode'} );
|
||||
my $category_type = $borrowercategory->{'category_type'};
|
||||
( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
|
||||
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
|
||||
$template->param( picture => 1 ) if $picture;
|
||||
|
||||
$template->param(
|
||||
borrowernumber => $borrowernumber,
|
||||
|
|
|
@ -79,6 +79,8 @@ if ( $newpassword && ! $errormsg ) {
|
|||
my $borrowercategory = GetBorrowercategory( $bor->{'categorycode'} );
|
||||
my $category_type = $borrowercategory->{'category_type'};
|
||||
( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
|
||||
my ($picture, $dberror) = GetPatronImage($bor->{'cardnumber'});
|
||||
$template->param( picture => 1 ) if $picture;
|
||||
|
||||
$template->param( othernames => $bor->{'othernames'},
|
||||
surname => $bor->{'surname'},
|
||||
|
|
|
@ -134,6 +134,8 @@ if ( $check == 0 ) {
|
|||
my $borrowercategory = GetBorrowercategory( $data->{'categorycode'} );
|
||||
my $category_type = $borrowercategory->{'category_type'};
|
||||
( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
|
||||
my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'});
|
||||
$template->param( picture => 1 ) if $picture;
|
||||
|
||||
$template->param(
|
||||
allfile => \@allfile,
|
||||
|
|
Loading…
Reference in a new issue