<?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 - Books not been loaned - Comments</title>
 <link>http://www.talis.com/tdn/node/1673</link>
 <description>Comments for &quot;Books not been loaned&quot;</description>
 <language>en</language>
<item>
 <title>book loans</title>
 <link>http://www.talis.com/tdn/node/1673#comment-395</link>
 <description>&lt;p&gt;If you add the Total loan transactions object to the second query then you will only get one row per item. &lt;/p&gt;
&lt;p&gt;The actual number does not matter in this instance or picking up the last transaction.  As the measure is an aggregate object it is just a way of returning a single row.&lt;/p&gt;
&lt;p&gt;You also need to set a date range condition on the loan query to pick up the loans in the period you are looking at.&lt;/p&gt;
&lt;p&gt;You will then be able to join the two queries and then create the variable and filter as detailed in the article to filter out the items that have not had a loan in the period.&lt;/p&gt;
&lt;p&gt;The article looks at borrowers who have not had a loan as an example.  The logic would be the same for items with no loans in a period.&lt;/p&gt;
&lt;p&gt;What may cause a problem is if the stock has been moving around e.g. it is currently at IRBY but was not loaned in the period because it was somewhere else.&lt;/p&gt;
&lt;p&gt;If you have stock that moves around a lot then a breakdown by site might not be so useful.  You probably want to take a more global view in that instance and a breakdown by item type might be more useful.&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>Mon, 30 Oct 2006 15:57:15 +0000</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 395 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Book Loans</title>
 <link>http://www.talis.com/tdn/node/1673#comment-394</link>
 <description>&lt;p&gt;Brian,  What I&#039;m trying to achieve is getting a list of in stock items, at a branch, which have not had any loans for over two years, so the staff can see if the stock would be better suited at another branch, or a booksale, etc.&lt;/p&gt;
&lt;p&gt;I have tried doing a report showing all items in stock:  ITEM BARCODE, AUTHOR TITLE, where HOME SITE = &#039;IRBY&#039; and ITEM STATUSES = &#039;In Stock&#039;.&lt;/p&gt;
&lt;p&gt;The problem I have is:  How do I then select which items have not had a loan for over 2 years?&lt;/p&gt;
&lt;p&gt;I can get a list of ALL loan transactions: BARCODE, TRANSACTION DATE where HOME SITE=&#039;IRBY&#039;, ITEM STATUSES=&#039;In Stock&#039;, ISSUE/RENEW/DISCHARGE = &#039;ISSUE/RENEW&#039; but this will give me a list of ALL issues/renewals.  Then I cannot link the two tables to get an &#039;overall&#039; picture of what is in stock and what hasn&#039;t been loaned for over 2 years, as it returns ALL transaction per barcode, not just the latest one.&lt;/p&gt;
&lt;p&gt;I think I&#039;ll need to join 2 tables because some books may be in stock but never had a loan, so it wouldn&#039;t show up in the loans table.  So I&#039;m guessing I&#039;d need a table showin ALL books in stock, and another showing, if possible, the last issue/renewal transaction date for a book, then somehow combine the 2 tables...&lt;/p&gt;
&lt;p&gt;I&#039;m sure I must be able to do it somehow.....&lt;/p&gt;
&lt;p&gt;http://www.wirral-libraries.net/&lt;br /&gt;
http://www.stembystem.co.uk/&lt;/p&gt;
</description>
 <pubDate>Mon, 30 Oct 2006 15:35:48 +0000</pubDate>
 <dc:creator>markhughes</dc:creator>
 <guid isPermaLink="false">comment 394 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>joining queries in Talis Decisions</title>
 <link>http://www.talis.com/tdn/node/1673#comment-393</link>
 <description>&lt;p&gt;I don&#039;t know if you have seen the &lt;a href=&quot;http://www.talis.com/tdn/system/files?file=art_bo166rep01.pdf&quot;&gt;article&lt;/a&gt; on joining queries.&lt;/p&gt;
&lt;p&gt;You want to link every dimension possible.  This should at least be the item barcode but without knowing the objects you have picked in both queries it is difficult to say what other objects should be linked.  Where possible dimension objects will be automatically linked.  But location type objects usually have to be done manually as the names of the objects vary.&lt;/p&gt;
&lt;p&gt;You also need to be careful when you list all the items.  If you pick items that are in stock now you may be missing items that were in stock a year ago and issued.  Also you don&#039;t necessarily want every loan transaction.  You only need one row for each item loaned.&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Mon, 30 Oct 2006 14:13:35 +0000</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 393 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Books not been loaned</title>
 <link>http://www.talis.com/tdn/node/1673</link>
 <description>&lt;p&gt;Can anyone think of a way in BO of doing a report which shows books, in stock, that have NOT been loaned for say 2 years?&lt;/p&gt;
&lt;p&gt;I can get a list of those in stock, and I can get a list of all loan transactions, but I then can&#039;t join the tables.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
</description>
 <comments>http://www.talis.com/tdn/node/1673#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/86">Talis Decisions</category>
 <pubDate>Mon, 30 Oct 2006 12:32:46 +0000</pubDate>
 <dc:creator>markhughes</dc:creator>
 <guid isPermaLink="false">1673 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
