<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Already took two this morning.  Same
      pills for head and back aches :)<br>
      <br>
      I thought I tried the <br>
      <pre wrap="">issue.item.biblioitemnumber.biblionumber.title</pre>
      idea, and it didn't work.  But maybe I just wrote
      biblioitems.biblionumber or some other variation.  I'll try again.<br>
      <br>
      Thanks a LOT for the help.  This does lead me to two followup
      questions:<br>
      <br>
      1) I thoought the Schema file was created automatically.  Why is
      there a biblioitemnumber and no biblionumber, while both are in
      Item ?<br>
      2) You can just refer me a link for this one, I understand this is
      large: When are the "subs" accessed?  accessing <br>
      <pre wrap="">issue.item.biblioitemnumber.biblionumber.title</pre>
      could mean 4 different db access, live when displaying the TT.  Or
      is the whole tree loaded as soon as we handle the issue (which
      would be a huge access potentially useless).<br>
      <br>
      Thanks again!<br>
      <br>
      <div class="moz-signature">
        <style type="text/css">
.moz-signature {
 color: #FFFFFF;
}
.sig_inlibro {
 padding-top : 2px;
 color: #888888;
 font-family : "Trebuchet MS", verdana;
 font-size: 90%;
}
.sig_content {
 border-top: 2px solid #DDDDDD;
 border-bottom: 2px solid #BFD13D;
 background-color : #F6F6F6;
 padding-left:10px;
}
.sig_inlibro a:visited, .sig_inlibro a:hover, .sig_inlibro a:link {
 text-decoration: none;
 color: #005B85;
}
.nom {
 color: #005B85;
 font-weight : bold;
}
.inlibro, .in {
 color: #BFD13D;
}
.libro {
 color: #005B85;
}
.in, .libro {
 font-size : 120%;
}
.desc {
    margin-bottom: 0;
    padding-bottom: 5px;
}
.small {
 font-size: 80%;
}
.tagline {
 color : #00BCE4;
}
.sig_footer {
 padding-left : 10px;
 background-color : #EEEFEA;
}
</style>
        <div class="sig_inlibro">
          <div class="sig_content"> <span class="nom">Philippe Blouin,</span><br>
            <span class="tagline small">Responsable du développement
              informatique</span><br>
            <p class="desc small"> Tél.  : (888) 604-2627<br>
              <a href="mailto:philippe.blouin@inLibro.com">philippe.blouin@inLibro.com</a>
            </p>
          </div>
          <div class="sig_footer"> <span class="in">in</span><span
              class="libro">Libro</span> <span class="tagline small">|
              pour esprit libre |</span> <a class="small"
              href="http://www.inLibro.com">www.inLibro.com</a> </div>
        </div>
      </div>
      On 08/27/2015 12:01 PM, Jonathan Druart wrote:<br>
    </div>
    <blockquote
cite="mid:CAJzKNY4LfsuaP2+ZupTV+i_b=xT3r=5aCT=aSsCO7Mx4jHDe=g@mail.gmail.com"
      type="cite">
      <pre wrap="">The item var used in the template comes from C4::Circ::AddIssue
(called from circ/circulation.pl on checking out an item) which return
a DBIx::Class resultset of Issue.

Koha::Schema::Result::Issue has a item relationship
(belongs_to('item')), so the issue.item.barcode displays what we want.
But Koha::Schema::Result::Item (returned by issue.item) does not have
a biblio relationship, it has a "biblioitemnumber", but
biblioitemnumber will return you a Koha::Schema::Result::Biblioitem
which has a relationship to biblio!!!! wonderful isn't it?

One thing can be weird: Why it does not explode :) Certainly because TT is kind.

So, something like issue.item.biblioitemnumber.biblionumber.title should work...
C4::Biblio::GetTitleByIssuenumber could also be fun, but you will have
to provide unit tests.

Don't forget to take a tablet to relieve the headache...

2015-08-27 16:27 GMT+01:00 Philippe Blouin <a class="moz-txt-link-rfc2396E" href="mailto:philippe.blouin@inlibro.com"><philippe.blouin@inlibro.com></a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hahaha.  Yeah, that part I get.  :)

But I was somewhat hoping that this forum was also about allowing people to
ask technical questions about the code, not just being a closed conversation
between knowledgeable people about the next release/next big thing.

In the case of 14726, I would have thought the generated part of the Schema
would contain the link item->biblio.  But maybe
1) it's something that failed (so the bug is in the Schema generation)
2) it's something that must be coded (but why?)
3) it's too obvious, I'm just clueless...  Which is somewhat an unsatisfying
answer. :)

Thanks,

Philippe Blouin,
Responsable du développement informatique

Tél.  : (888) 604-2627
<a class="moz-txt-link-abbreviated" href="mailto:philippe.blouin@inLibro.com">philippe.blouin@inLibro.com</a>

inLibro | pour esprit libre | <a class="moz-txt-link-abbreviated" href="http://www.inLibro.com">www.inLibro.com</a>
On 08/27/2015 11:16 AM, Jonathan Druart wrote:

You know what's next, I won't explain you ;) (do, pay or wait)
What's the bug number?

2015-08-27 15:15 GMT+01:00 Philippe Blouin <a class="moz-txt-link-rfc2396E" href="mailto:philippe.blouin@inlibro.com"><philippe.blouin@inlibro.com></a>:

A bug has been filled.  What next?
Isn't it a good forum to ask "what happened"/"what's missing" ?

Philippe Blouin,
Responsable du développement informatique

Tél.  : (888) 604-2627
<a class="moz-txt-link-abbreviated" href="mailto:philippe.blouin@inLibro.com">philippe.blouin@inLibro.com</a>

inLibro | pour esprit libre | <a class="moz-txt-link-abbreviated" href="http://www.inLibro.com">www.inLibro.com</a>
On 08/25/2015 10:27 AM, Jonathan Druart wrote:

You can fill a bug report, it's a bug :)

2015-08-25 14:57 GMT+01:00 Philippe Blouin <a class="moz-txt-link-rfc2396E" href="mailto:philippe.blouin@inlibro.com"><philippe.blouin@inlibro.com></a>:

Simple question I'm sure, but there's this bug in circulation.tt that shows
I haven't played much with the new Schema structure:

(circulation.tt, line 672)
[% IF ( issue ) %]
    <div class="lastchecked">
        <p><strong>Checked out: </strong>[% issue.item.biblio.title %] ([%
issue.item.barcode %]). Due on [% issue.date_due | $KohaDates %]</p>
    </div>
[% END %]

This (in bold) never shows up.  The item.biblio link, well, it doesn't
exists in the Result::Item per my understanding.  Whatever I tried with
biblioitem(s) in between didn't pan either.

Suggestions would be appreciated.

(If this is indeed a bug and not a code 18, I'll be happy to do the
"paperwork" to file it in)

Thanks,
Blou




_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a>

_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a>



_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a>

_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a>


</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
Koha-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
<a class="moz-txt-link-freetext" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="moz-txt-link-freetext" href="http://www.koha-community.org/">http://www.koha-community.org/</a>
git : <a class="moz-txt-link-freetext" href="http://git.koha-community.org/">http://git.koha-community.org/</a>
bugs : <a class="moz-txt-link-freetext" href="http://bugs.koha-community.org/">http://bugs.koha-community.org/</a></pre>
    </blockquote>
    <br>
  </body>
</html>