Bug 20896: Move serial enumeration after callnumber on intranet detail page

The column with serial enumeration/chronology information is moved
from the back to the right of itemcallnumber on the intranet detail
page.

To test:
- Apply patch
- Look at different detail pages in staff:
  - 1 or more items have serial enumeration information
  - no item has serial enumeration informatoin
- Verify
  - itemcallnumber is now followed by serial information, if
    an item with the field filled in exists for the record
  - all other functionality, like sorting, works as expected

https://bugs.koha-community.org/show_bug.cgi?id=20896

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Katrin Fischer 2018-08-08 19:52:26 +00:00 committed by Nick Clemens
parent 13c1b6f123
commit 45f90d9b6d

View file

@ -353,11 +353,11 @@
<th>Home library</th>
[% IF ( itemdata_ccode ) %]<th>Collection</th>[% END %]
<th>Call number</th>
[% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
<th>Status</th>
<th class="title-string">Last seen</th>
<th class="title-string">Date accessioned</th>
<th>Barcode</th>
[% IF ( volinfo ) %]<th>Serial enumeration / chronology</th>[% END %]
[% IF ( itemdata_uri ) %]<th>URL</th>[% END %]
[% IF ( itemdata_copynumber ) %]<th>Copy number</th>[% END %]
[% IF ( itemdata_stocknumber ) %]<th>Inventory number</th>[% END %]
@ -391,6 +391,26 @@
<td class="homebranch">[% Branches.GetName(item.homebranch) | html %]<span class="shelvingloc">[% item.location | html %]</span> </td>
[% IF ( itemdata_ccode ) %]<td>[% item.ccode | html %]</td>[% END %]
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td>
[% IF ( volinfo ) %]
<td class="enumchron">
[% IF ( itemdata_enumchron ) %]
[% IF item.enumchron && item.serialseq %]
<span class="enum">[% item.enumchron | html %]</span>
[% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
<span class="sep"> -- </span>
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% ELSIF item.enumchron %]
<span class="enum">[% item.enumchron | html %]</span>
[% ELSIF item.serialseq %]
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% IF ( item.publisheddate ) %]
<span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
[% END %]
[% END %]
</td>
[% END %]
<td class="status">
[% IF item.CheckedOutFor %]
@ -479,26 +499,6 @@
<td class="datelastseen"><span title="[% item.datelastseen | html %]">[% item.datelastseen | $KohaDates %]</span></td>
<td class="dateaccessioned"><span title="[% item.dateaccessioned | html %]">[% item.dateaccessioned | $KohaDates %]</span></td>
<td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=[% item.type | uri %]&amp;itemnumber=[% item.itemnumber | uri %]&amp;biblionumber=[% item.biblionumber | uri %]&amp;bi=[% item.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a></td>
[% IF ( volinfo ) %]
<td class="enumchron">
[% IF ( itemdata_enumchron ) %]
[% IF item.enumchron && item.serialseq %]
<span class="enum">[% item.enumchron | html %]</span>
[% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
<span class="sep"> -- </span>
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% ELSIF item.enumchron %]
<span class="enum">[% item.enumchron | html %]</span>
[% ELSIF item.serialseq %]
<span class="serialseq">[% item.serialseq | html %]</span>
[% END %]
[% IF ( item.publisheddate ) %]
<span class="pubdate">([% item.publisheddate | $KohaDates %])</span>
[% END %]
[% END %]
</td>
[% END %]
[% IF ( itemdata_uri ) %]
<td class="uri"><a href="[% item.uri | uri %]">[% item.uri | html %]</a></td>
[% END %]