Bug 14636: Item search - improving display

- Changes "Publication Date" to "Publication date"
  in the CSV export
- Fixes 'no JavaScript fallback' display to match
  the normal display
  - only show 'by' when it's UNIMARC and an author
    exist
  - show copyrightdate if publicationyear is empty

To test:
- Turn of Javascript in your browser before you
  item search. This will activate the alternative
  display.
- For MARC21:
  - Verify that the author displays when existing
    and no 'by' is shown.
  - Verify that the publication date is now shown.
- For UNIMARC:
  - Verify that 'by' only displays when there is
    an author to display.
  - Verify that the publication date is still
    shown.
- Try the CSV export.
- Verify that the CSV header now reads 'Publication date'.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Successfully tested non-JS behavior and CSV export. DID NOT test
UNIMARC.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2aa6518c8a)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 704e932d64)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Katrin Fischer 2015-11-21 22:37:03 +01:00 committed by Frédéric Demians
parent 6cab2b5b1c
commit 3b8e973d9c
2 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
[%- USE Branches -%]
[%- USE Koha -%]
[% biblio = item.biblio %]
[% biblioitem = item.biblioitem %]
<tr>
<td>
<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]" title="Go to record detail page">[% biblio.title %]</a>
by [% biblio.author %]
[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author |html %]
</td>
<td>[% biblioitem.publicationyear %]</td>
<td>[% biblioitem.publicationyear || biblio.copyrightdate %]</td>
<td>[% biblioitem.publishercode %]</td>
<td>[% biblioitem.collectiontitle %]</td>
<td>

View File

@ -1 +1 @@
Title, Publication Date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts
Title, Publication date, Publisher, Collection, Barcode, Call number, Home library, Current location, Shelving location, Inventory number, Status, Checkouts