[Koha-bugs] [Bug 16914] New: Export csv in item search, exports all items in one line
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 13 14:48:17 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16914
Bug ID: 16914
Summary: Export csv in item search, exports all items in one
line
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Staff Client
Assignee: koha-bugs at lists.koha-community.org
Reporter: hagud at orex.es
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
We have discovered thant when you try to export in csv (koha 3.22.7) in
translated interface (es-ES and ca-ES) all items are located in just one file
This is because a problem with a file itemsearch_item.csv that it doesn't
include the order to break line for each item (at least is how we have fixed)
For reproduce the error
1. Go to staff
2. Go to advance search -- item search
3. do whatever search and select csv to export
4. open with any textedior
sudo diff
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/es-ES/includes/catalogue/itemsearch_item.csv.inc
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/es-ES/includes/catalogue/itemsearch_item.csv.inc-original
< [%- USE Branches -%]
< [%- USE Koha -%]
< [%- biblio = item.biblio -%]
< [%- biblioitem = item.biblioitem -%]
< "[% biblio.title |html %] [% IF ( Koha.Preference( 'marcflavour' ) ==
'UNIMARC' && biblio.author ) %]by [% END %][% biblio.author |html %]", "[%
(biblioitem.publicationyear || biblio.copyrightdate) |html %]", "[%
biblioitem.publishercode |html %]", "[% biblioitem.collectiontitle |html %]",
"[% item.barcode |html %]", "[% item.itemcallnumber |html %]", "[%
Branches.GetName(item.homebranch) |html %]", "[%
Branches.GetName(item.holdingbranch) |html %]", "[% item.location |html %]",
"[% item.stocknumber |html %]", "[% item.status |html %]", "[% (item.issues ||
0) |html %]"[% INCLUDE 'empty_line.inc' %]
---
> [%- USE Branches -%] [%- USE Koha -%] [%- biblio = item.biblio -%] [%- biblioitem = item.biblioitem -%] "[% biblio.title |html %] [% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %]por [% END %][% biblio.author |html %]", "[% (biblioitem.publicationyear || biblio.copyrightdate) |html %]", "[% biblioitem.publishercode |html %]", "[% biblioitem.collectiontitle |html %]", "[% item.barcode |html %]", "[% item.itemcallnumber |html %]", "[% Branches.GetName(item.homebranch) |html %]", "[% Branches.GetName(item.holdingbranch) |html %]", "[% item.location |html %]", "[% item.stocknumber |html %]", "[% item.status |html %]", "[% (item.issues || 0) |html %]"[% INCLUDE 'empty_line.inc' %]
\ No newline at end of file
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list