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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/