<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - display_fines.pl - Comments</title>
 <link>http://www.talis.com/tdn/node/1736</link>
 <description>Comments for &quot;display_fines.pl&quot;</description>
 <language>en</language>
<item>
 <title>display_fines.pl</title>
 <link>http://www.talis.com/tdn/node/1736#comment-532</link>
 <description>&lt;p&gt;Thank you for posting this again. I started over with the above code and it&#039;s all working perfectly. I must have deleted something I shouldn&#039;t have! Thanks again.&lt;br /&gt;
John&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 12:49:17 +0100</pubDate>
 <dc:creator>John Springett</dc:creator>
 <guid isPermaLink="false">comment 532 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_emails.pl emails</title>
 <link>http://www.talis.com/tdn/node/1736#comment-531</link>
 <description>&lt;p&gt;I did quickly check that the right email addresses would be displayed in tests here so I&#039;m not entirely sure what the problem is.  I have included the instructions here again so you can double check the changes. If there is a problem I may need to check on your system with your examples.&lt;/p&gt;
&lt;p&gt;1) Update the display_fines.pl script by adding &lt;/p&gt;
&lt;p&gt;require &quot;/$TALIS_HOME/perl_tools/mis_utils.pl&quot;;&lt;/p&gt;
&lt;p&gt;after&lt;/p&gt;
&lt;p&gt;require &#039;sybperl.pl&#039;;&lt;br /&gt;
require &quot;/$TALIS_HOME/perl_tools/std_utils.pl&quot;;&lt;/p&gt;
&lt;p&gt;2) Replace the retrieveAddress subroutine with the following&lt;/p&gt;
&lt;p&gt;sub retrieveAddress&lt;br /&gt;
{&lt;br /&gt;
        my ($borrowerID) = @_;&lt;br /&gt;
        my ($addressID) = &quot;&quot;;&lt;br /&gt;
        my ($addressDetails) = &quot;~~~~~&quot;;&lt;/p&gt;
&lt;p&gt;        ($addressID) = &amp;amp;sql($d, &quot;select ADDRESS_ID from CONTACT_POINT&lt;br /&gt;
                                        where BORROWER_ID = $borrowerID&lt;br /&gt;
                                        and CURRENT_CONTACT_POINT = &#039;T&#039;&quot;);&lt;/p&gt;
&lt;p&gt;        if ($addressID ne &quot;&quot;)&lt;br /&gt;
        {&lt;br /&gt;
                ($addressDetails) = &amp;amp;sql($d, &quot;select LINE_1, LINE_2, LINE_3,&lt;br /&gt;
                                                LINE_4, LINE_5, POST_CODE&lt;br /&gt;
                                                from ADDRESS&lt;br /&gt;
                                                where ADDRESS_ID=$addressID&quot;);&lt;br /&gt;
        }&lt;/p&gt;
&lt;p&gt;        my ($line1,$line2,$line3,$line4,$line5,$postcode) =&lt;br /&gt;
                        &amp;amp;despace(split(&quot;~&quot;, $addressDetails));&lt;/p&gt;
&lt;p&gt;        &amp;amp;GetBorrowerDetails($borrowerID);&lt;/p&gt;
&lt;p&gt;        push(@BorrDetails, &quot;$line1\n&quot;) if ($line1 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line2\n&quot;) if ($line2 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line3\n&quot;) if ($line3 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line4\n&quot;) if ($line4 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line5\n&quot;) if ($line5 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$postcode\n&quot;) if ($postcode ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;\n&quot;) if ($addressDetails ne &quot; ~ ~ ~ ~ ~ &quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$EmailAddress1\n&quot;) if ($EmailAddress1 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;\n&quot;)&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;3) It is not possible to modify the format except that if you want the email address before&lt;br /&gt;
   the  postal address the push commands in the retriveAddress section would be &lt;/p&gt;
&lt;p&gt;        push(@BorrDetails, &quot;$EmailAddress1\n\n&quot;) if ($EmailAddress1 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line1\n&quot;) if ($line1 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line2\n&quot;) if ($line2 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line3\n&quot;) if ($line3 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line4\n&quot;) if ($line4 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$line5\n&quot;) if ($line5 ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;$postcode\n&quot;) if ($postcode ne &quot;&quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;\n&quot;) if ($addressDetails ne &quot; ~ ~ ~ ~ ~ &quot;);&lt;br /&gt;
        push(@BorrDetails, &quot;\n&quot;)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Wed, 23 May 2007 12:07:27 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 531 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl emails</title>
 <link>http://www.talis.com/tdn/node/1736#comment-529</link>
 <description>&lt;p&gt;Hello, I&#039;ve just noticed that the email addresses and borrower accounts aren&#039;t matching. Is there any chance of having another look at the script you added last week?&lt;br /&gt;
Kind Regards&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
</description>
 <pubDate>Tue, 22 May 2007 15:54:19 +0100</pubDate>
 <dc:creator>John Springett</dc:creator>
 <guid isPermaLink="false">comment 529 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl emails</title>
 <link>http://www.talis.com/tdn/node/1736#comment-528</link>
 <description>&lt;p&gt;Hello Brian, I can&#039;t see the thread from last week about restricting borrowers by expiry date and displaying the email address but I would just like to say thank you. It worked perfectly. I wasn&#039;t expecting you do provide the code for the emails, you&#039;ve saved me lots of time and it&#039;s very much appreciated.&lt;br /&gt;
Regards&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
</description>
 <pubDate>Mon, 21 May 2007 09:38:32 +0100</pubDate>
 <dc:creator>John Springett</dc:creator>
 <guid isPermaLink="false">comment 528 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl updated</title>
 <link>http://www.talis.com/tdn/node/1736#comment-522</link>
 <description>&lt;p&gt;The display_fines.pl script and article are now updated for MAX_FINE_AGE parameter&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Thu,  3 May 2007 11:29:39 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 522 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>updating display_fines.pl</title>
 <link>http://www.talis.com/tdn/node/1736#comment-521</link>
 <description>&lt;p&gt;That&#039;s great.&lt;/p&gt;
&lt;p&gt;I&#039;ll update the article and script today.  &lt;/p&gt;
&lt;p&gt;While I&#039;ve got my head in the code I will look at what is involved in having a MIN_FINE_AGE parameter.  &lt;/p&gt;
&lt;p&gt;I can&#039;t guarantee anything but if I can make a change it would need to be tested.  Would you be willing to try it out?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Thu,  3 May 2007 10:52:58 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 521 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl</title>
 <link>http://www.talis.com/tdn/node/1736#comment-520</link>
 <description>&lt;p&gt;Thanks  Brian ...works a treat now!&lt;br /&gt;
It would be really cool if this script could have a MIN_FINE_AGE also  (??)&lt;br /&gt;
Bob&lt;/p&gt;
</description>
 <pubDate>Thu,  3 May 2007 09:34:02 +0100</pubDate>
 <dc:creator>rluddington</dc:creator>
 <guid isPermaLink="false">comment 520 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl issue</title>
 <link>http://www.talis.com/tdn/node/1736#comment-519</link>
 <description>&lt;p&gt;Looking at the script it appears that the parameter being looked for in the script is actually MAX_FINE_AGE but the name some how got altered to NUMBER_OF_DAYS in the parameter file some where along the line but never got picked up.&lt;/p&gt;
&lt;p&gt;Insert the following line into the parameter file and run the script again.&lt;/p&gt;
&lt;p&gt;MAX_FINE_AGE=4&lt;/p&gt;
&lt;p&gt;This should only be done on the MIS server at this point and NOT on the live server.&lt;/p&gt;
&lt;p&gt;If this corrects the problem then the change can be inserted into the script on the live server and I will update the article and wrap file on the on the TDN site.&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Wed,  2 May 2007 16:16:36 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 519 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>display_fines.pl</title>
 <link>http://www.talis.com/tdn/node/1736</link>
 <description>&lt;p&gt;Originally posted by R. Luddington&lt;/p&gt;
&lt;p&gt;Help please!!&lt;br /&gt;
Everytime we run display_fines.pl with the NUMBER_OF_DAYS parameter&lt;br /&gt;
we have returned all of the extant charges rather than just the ones within the day range.&lt;br /&gt;
Is there anything we are doing wrong please?&lt;br /&gt;
It doesn&#039;t seem to make any difference whatever the value is set to.&lt;/p&gt;
&lt;p&gt;Our parameter file looks like:&lt;br /&gt;
# Parameter file for display_fines.pl&lt;br /&gt;
#&lt;/p&gt;
&lt;p&gt;HOME_SITE=&lt;br /&gt;
BORROWER_TYPE=&lt;br /&gt;
NUMBER_OF_DAYS=4&lt;br /&gt;
BORROWER_MESSAGE=&lt;br /&gt;
MINIMUM_AMOUNT=&lt;/p&gt;
</description>
 <comments>http://www.talis.com/tdn/node/1736#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/60">Talis Library System</category>
 <pubDate>Wed,  2 May 2007 15:59:52 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">1736 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
