<?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 - Comments</title>
 <link>http://www.talis.com/tdn</link>
 <description>Comments</description>
 <language>en</language>
<item>
 <title>bulk removal of interest codes</title>
 <link>http://www.talis.com/tdn/node/1948#comment-1065</link>
 <description>&lt;p&gt;Hi&lt;br /&gt;
I would like to be able to run this delete on 1st Feb.  My test runs on MIS confirm the expected number of rows  and the correct Interest codes deleted.  I&#039;ve checked the results against some Decisions queries and it all LOOKS ok.  I&#039;d feel happier to have a confirmation that deleting these rows will not have an affect on another process or  part of the DB.&lt;br /&gt;
many thanks&lt;br /&gt;
Lin&lt;/p&gt;
</description>
 <pubDate>Mon, 30 Jan 2012 13:48:12 +0000</pubDate>
 <dc:creator>lcartwright</dc:creator>
 <guid isPermaLink="false">comment 1065 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>bulk removal of interest codes</title>
 <link>http://www.talis.com/tdn/node/1948#comment-1064</link>
 <description>&lt;p&gt;I realise now that I probably shouldn&#039;t remove any from the grouping table as this contains all the codes configured in Alto.  I had originally thought that this table was populated when a code was used by a borrower record.  Derr!&lt;br /&gt;
So.. is it ok to just remove the relevant rows from the borrower grouping link table.&lt;br /&gt;
Lin&lt;/p&gt;
</description>
 <pubDate>Fri, 27 Jan 2012 14:11:04 +0000</pubDate>
 <dc:creator>lcartwright</dc:creator>
 <guid isPermaLink="false">comment 1064 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Ranking</title>
 <link>http://www.talis.com/tdn/node/1823#comment-1063</link>
 <description>&lt;p&gt;Ranking works in Webi and changes the selected block (a table is a type of block as is a chart) immediately.&lt;/p&gt;
&lt;p&gt;You need to have the block that you want to apply the ranking to highlighted in order to enable the ranking button otherwise it is greyed out e.g. if the report as a whole is selected.&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Consultant, Capita&lt;/p&gt;
</description>
 <pubDate>Fri,  6 Jan 2012 17:10:56 +0000</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1063 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Ranking</title>
 <link>http://www.talis.com/tdn/node/1823#comment-1062</link>
 <description>&lt;p&gt;Should this work in the web interface? I always struggle to get any useful information out of Decisions and this approach looks ideal. However, when I do the &quot;Rank&quot; step, nothing appears to happen, although &quot;sorts&quot; in my memory seem to work immediately. I&#039;ve even tried refreshing and I still don&#039;t get the ranking after clicking on this option.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;
John Hudson, Gateshead Council Libraries and Arts&lt;/p&gt;
</description>
 <pubDate>Fri,  6 Jan 2012 11:07:44 +0000</pubDate>
 <dc:creator>JohnHudson</dc:creator>
 <guid isPermaLink="false">comment 1062 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Minutes in Decisions reports</title>
 <link>http://www.talis.com/tdn/node/1938#comment-1061</link>
 <description>&lt;p&gt;Unfortunately there is not a minute function in the BusinessObjects list of functions so it would require adding minutes as an object to the Universe and using the Sybase functionality to extract that information.  I can add it as a potential change in the next set of universes.&lt;/p&gt;
&lt;p&gt;In the meanwhile there is a potential work around although it does rely on modifying an existing time object which then can&#039;t be used as a result object but can be used as a condition object.&lt;/p&gt;
&lt;p&gt;I would suggest using the Year object as it is possible to extract the Year value from the full date time object using the BusinessObjects function if it is required.&lt;/p&gt;
&lt;p&gt;If you select the Year objects from the due date set of date objects (or create date) and then check the SQL generated by clicking on the SQL button in the query panel.&lt;/p&gt;
&lt;p&gt;Within the SQL you will see the line below in the SELECT section&lt;/p&gt;
&lt;p&gt; datepart(yy,dbo_LOAN1.DUE_DATE)&lt;/p&gt;
&lt;p&gt;Click on the custom SQL button and you can change the SQL  to &lt;/p&gt;
&lt;p&gt; datepart(mi,dbo_LOAN1.DUE_DATE)&lt;/p&gt;
&lt;p&gt;where mi means minutes.&lt;/p&gt;
&lt;p&gt;If you then save the change and run the query then the year object will contain the minute value.  The heading will still say Year due but this can be modified.&lt;/p&gt;
&lt;p&gt;Also bear in mind that if you subsequently change the query the manual change will be removed and will have to be done again.&lt;/p&gt;
&lt;p&gt;In terms of grouping you can then create a variable for each half hour to use in reports e.g.&lt;/p&gt;
&lt;p&gt;=If(([Year due] Between (0;29));&quot;00-29&quot;;&quot;30-59&quot;)&lt;/p&gt;
&lt;p&gt;Now the wording the quotes will depend on the output you are looking for e.g. it might be better to have 00 and 30 rather than show a range.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Capita&lt;/p&gt;
</description>
 <pubDate>Mon,  5 Dec 2011 09:19:43 +0000</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1061 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Invoice reporting in Decisions</title>
 <link>http://www.talis.com/tdn/node/1931#comment-1060</link>
 <description>&lt;p&gt;Hello Brian&lt;br /&gt;
thanks very much for the help.&lt;br /&gt;
I&#039;ve managed to get to the figures that we needed using your suggested method but using the date of payment object from the invoice creation details folder in the query filter panel. The invoice value is a variable that sums the item cost measure. &lt;/p&gt;
&lt;p&gt;I think that library managers are needing to look closely at the volumes and type of work that staff are doing so being able to produce figures from the system to provide evidence is becoming more important.&lt;/p&gt;
&lt;p&gt;It seems that we can get more out of the universe than you thought!!&lt;br /&gt;
thanks again&lt;br /&gt;
Lin&lt;/p&gt;
</description>
 <pubDate>Wed, 19 Oct 2011 16:54:12 +0100</pubDate>
 <dc:creator>lcartwright</dc:creator>
 <guid isPermaLink="false">comment 1060 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Invoice reporting in Decisions</title>
 <link>http://www.talis.com/tdn/node/1931#comment-1059</link>
 <description>&lt;p&gt;Within the Orders universe invoice reporting is limited especially when considering the invoice line data and payments.&lt;/p&gt;
&lt;p&gt;The Orders universe was created before the all the current invoice functionality was introduced and the original design of the universe makes it difficult to update in a way that works successfully.&lt;/p&gt;
&lt;p&gt;However it should be possible to do something along the lines you mention.  One issue is the Completed date.  The current Orders universe does not have an object for the data completed.  This is actually a status change date and the way it is stored in the database makes it more complicated to use in reporting than might seem when looking in Alto.  It is only possible to report on the Invoice date and the create date.&lt;/p&gt;
&lt;p&gt;The following is an an example report so I&#039;m not sure if it matches the objects you want but it does give an indication.&lt;/p&gt;
&lt;p&gt;1) From the Orders universe select the following objects in the results Objects panel:&lt;/p&gt;
&lt;p&gt;   Invoices | Invoice item payment details | Invoice number&lt;br /&gt;
   Invoices | Invoice item payment details | Item net (base currency)&lt;br /&gt;
   Invoices | Invoice item payment details | Service (base currency)&lt;br /&gt;
   Suppliers | Supplier name&lt;br /&gt;
   Suppliers | Supplier code&lt;/p&gt;
&lt;p&gt;2) Then select the Invoices | Invoice date reporting | Invoice date as a Query filter and set the date range as required.  You may also want to limit the suppliers at this point as well.&lt;/p&gt;
&lt;p&gt;3) Run the query.  You will get a default block which I would then delete.&lt;/p&gt;
&lt;p&gt;4) Create a variable, Total with the following formula to add the service charge and net value together.&lt;/p&gt;
&lt;p&gt;   =[Item net (base currency)]+[Service (base currency)]&lt;/p&gt;
&lt;p&gt;5) Select the Supplier code (and Supplier name if you wish) object and the Total object from the report manager and drag into the report and create a block.  I think that would give the breakdown you require.&lt;/p&gt;
&lt;p&gt;6) If you add the Invoice number object into the block you can then do some checks to confirm that the invoice value in the report matches Alto.&lt;/p&gt;
&lt;p&gt;Now there may be more issues based on other objects you may want but that would be the starting point.  It seemed to work in my initial tests.&lt;/p&gt;
&lt;p&gt;Thanks   &lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Capita&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Oct 2011 15:35:12 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1059 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Invoice reporting in Decisions</title>
 <link>http://www.talis.com/tdn/node/1931#comment-1058</link>
 <description>&lt;p&gt;I have a request for a Decisions report on invoices but I am thinking that I can&#039;t actually provide the information requested.&lt;br /&gt;
It is on the face of it a simple request but how do I do it? To begin with there doesn&#039;t appear to be a way of selecting invoices with a status of completed.&lt;br /&gt;
Please tell me I am wrong!!&lt;br /&gt;
the actual request is as follows...&lt;br /&gt;
&quot;For invoices completed between April 2010 and March 2011 for supplier codes BERTRAMEDI, ULVEREDI, MAGEDI provide the total monetary value of the invoices.&quot;&lt;/p&gt;
</description>
 <pubDate>Mon, 10 Oct 2011 16:48:17 +0100</pubDate>
 <dc:creator>lcartwright</dc:creator>
 <guid isPermaLink="false">comment 1058 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Thanks Brian. We&#039;ll have a</title>
 <link>http://www.talis.com/tdn/node/1937#comment-1057</link>
 <description>&lt;p&gt;Thanks Brian. We&#039;ll have a go at it in the next few days.&lt;/p&gt;
&lt;p&gt;Rhion Pritchard&lt;br /&gt;
Manager, TalNet&lt;/p&gt;
</description>
 <pubDate>Tue, 27 Sep 2011 10:53:41 +0100</pubDate>
 <dc:creator>Rhion Pritchard</dc:creator>
 <guid isPermaLink="false">comment 1057 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Borrower Anonymiser</title>
 <link>http://www.talis.com/tdn/node/1936#comment-1056</link>
 <description>&lt;p&gt;Hi Brian&lt;/p&gt;
&lt;p&gt;Thank you for your comment and suggestion.  I inserted your line into the Borrower Anonymiser script, tested on a small number and it looks to work.  Am doing a proper test next week (once we have restored to the MIS) and should have a better idea on running time.  &lt;/p&gt;
&lt;p&gt;Many thanks once more.&lt;/p&gt;
&lt;p&gt;Rach&lt;/p&gt;
</description>
 <pubDate>Fri,  9 Sep 2011 14:25:04 +0100</pubDate>
 <dc:creator>runderwood</dc:creator>
 <guid isPermaLink="false">comment 1056 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>res_add_itms and location email address</title>
 <link>http://www.talis.com/tdn/node/1937#comment-1055</link>
 <description>&lt;p&gt;The issue in this case is that the relevant item details for each item including the location name are held in an array sorted by sequence, class etc and then the array is used to produce the output.  The output is not produced as each item is processed.&lt;/p&gt;
&lt;p&gt;This means that the location email address needs to be added to each row in the array, @sorted_data.  The code then also needs to be extracted correctly from the array once sorted and about to be sent to the output file.&lt;/p&gt;
&lt;p&gt;It is not a complicated process as such but requires a number of changes throughout the retrieve.pl, select.pl, main.pl and format.pl files.&lt;/p&gt;
&lt;p&gt;There is an general article on the use of arrays in Capita scripts, &lt;a href=&quot;/tdn/system/files?file=art_lm216pl01.pdf&quot;&gt;Adding variables to MIS PERL scripts that use arrays&lt;/a&gt;. While it doesn&#039;t specifically mention the res_add_itms script it does give an overview of what would be required.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Capita&lt;/p&gt;
</description>
 <pubDate>Thu,  8 Sep 2011 16:10:57 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1055 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Borrower anonymiser</title>
 <link>http://www.talis.com/tdn/node/1936#comment-1054</link>
 <description>&lt;p&gt;Changes to scripts could potentially affect support not least in terms that the change would not be included in any updates of the standard script.  However any script you write yourself would be the same. &lt;/p&gt;
&lt;p&gt;To avoid confusion I would change the name of your version.  It is also important that you fully test any changes on the MIS first so you are happy.&lt;/p&gt;
&lt;p&gt;Now I haven&#039;t tested this but there is a section in the script&lt;/p&gt;
&lt;p&gt;           @tmp = &amp;amp;one_by_n_sql (&quot;select LOAN_ID, ITEM_ID, BORROWER_ID, LOAN_TYPE,DUE_DATE,ACTION_ID from LOAN where LOAN_ID = $tmploanid&quot;);&lt;/p&gt;
&lt;p&gt;           &amp;amp;sql ($d, &quot;exec CG_INS_LOAN_SP $tmp[0], $tmp[1], $tmp[2], &#039;F&#039;, 2, $tm&lt;br /&gt;
p[3], \&#039;$tmp[4]\&#039;, \&#039;$dt\&#039;, &#039;&#039;, &#039;$OPERATOR&#039;, $tmp[5]&quot;);&lt;/p&gt;
&lt;p&gt;The second line inserts the discharge row in the LOAN table and the variable $temp[1] holds the ITEM_ID so a line like below after the CG_INS_LOAN_SP should do the job.&lt;/p&gt;
&lt;p&gt;&amp;amp;sql ($d, &quot;update ITEM set STATUS_ID=101 where ITEM_ID=$tmp[1]&quot;);&lt;/p&gt;
&lt;p&gt;The STATUS_ID value would depend on your local configuration.&lt;/p&gt;
&lt;p&gt;As I said I haven&#039;t tested this so it is only a guide. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Capita&lt;/p&gt;
</description>
 <pubDate>Wed,  7 Sep 2011 11:44:21 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1054 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Borrower Anonymiser</title>
 <link>http://www.talis.com/tdn/node/1936#comment-1053</link>
 <description>&lt;p&gt;Hello Brian&lt;/p&gt;
&lt;p&gt;Thank you for your comment.&lt;/p&gt;
&lt;p&gt;We are concious about timings on our server, due to their age etc.  So anything that puts less strain is a good thing.&lt;/p&gt;
&lt;p&gt;Admittedly I have now got the basis for a script pulling the Barcodes over from the bor_anon_delete.rep file, but I am now struggling with the import to sql.&lt;/p&gt;
&lt;p&gt;I did think about a code change in Borrower Anonymiser as it seems it would be a quick step, however I looked at the code within it and was a bit overwhelmed and really did not know where to start.  Any pointers would be gratefully received.  If we made a change to this script, would that affect any support that we may need in future?&lt;/p&gt;
&lt;p&gt;Look forward to hearing from you.&lt;/p&gt;
&lt;p&gt;Rach&lt;/p&gt;
</description>
 <pubDate>Wed,  7 Sep 2011 09:59:27 +0100</pubDate>
 <dc:creator>runderwood</dc:creator>
 <guid isPermaLink="false">comment 1053 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Borrower anonymiser</title>
 <link>http://www.talis.com/tdn/node/1936#comment-1052</link>
 <description>&lt;p&gt;It would probably be more straightforward to update the item within the borrower anonymiser script itself using a code cahnge rather than write a whole new script to extract barcodes and then update the database.&lt;/p&gt;
&lt;p&gt;However there is the loa_long_odue script which can pick up loans longer than a specified number of days and you can change the status of the item using this script first.&lt;/p&gt;
&lt;p&gt;Also bear in mind that any changes to values in the ITEM table inserts a row in the ITEM_UPDATE table.  In addition to the performance issues in updating large numbers of items in a single update which isn;t relevant here, that processing a large number of item updates also has a knock on effect on the update_daily_access_points script performance as there is many more items to process.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Capita&lt;/p&gt;
</description>
 <pubDate>Tue,  6 Sep 2011 11:40:54 +0100</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 1052 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Retrieving Bib information from list of barcodes</title>
 <link>http://www.talis.com/tdn/decisions_page#comment-1051</link>
 <description>&lt;p&gt;I have a list of 20,000+ barcodes and need the bibliographic information related to each one.&lt;/p&gt;
&lt;p&gt;Does anyone know if this is this possible via Decisions or another script?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Jamie&lt;/p&gt;
</description>
 <pubDate>Wed, 10 Aug 2011 13:17:19 +0100</pubDate>
 <dc:creator>Jamie</dc:creator>
 <guid isPermaLink="false">comment 1051 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>

