Bugzilla – Attachment 40006 Details for
Bug 14303
Fix item search CSV export - obsolete "by" and display of publication year for MARC21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14303: Fix item search CSV export - obsolete "by" and display of publication year for MARC21
Bug-14303-Fix-item-search-CSV-export---obsolete-by.patch (text/plain), 2.57 KB, created by
Katrin Fischer
on 2015-06-09 00:50:50 UTC
(
hide
)
Description:
Bug 14303: Fix item search CSV export - obsolete "by" and display of publication year for MARC21
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-06-09 00:50:50 UTC
Size:
2.57 KB
patch
obsolete
>From 2aab2dcecdd5b7744c01f8e470fcfe3b18fbf1d1 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Tue, 9 Jun 2015 02:44:48 +0200 >Subject: [PATCH] Bug 14303: Fix item search CSV export - obsolete "by" and > display of publication year for MARC21 > >The exported CSV file from the item search didn't display the publication >year in MARC21 installations and the title always contained 'by' >even if there was no author information to display. Also the by is >not needed by MARC21 as the data should include punctuation. > >This basically copies the changes done to the JSON format >on bug 13859 to the CSV include. > >To test: Switch from 'Screen' to 'CSV' >- Check publication date always displays (MARC21 and UNIMARC) >- Check that for MARC21 the 'by' has been removed from the title information >- Check that for UNIMARC the 'by' only displays when there is also > an author to display >--- > .../intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >index 9cc781c..82e014c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.csv.inc >@@ -1,4 +1,5 @@ > [%- USE Branches -%] >+[%- USE Koha -%] > [%- biblio = item.biblio -%] > [%- biblioitem = item.biblioitem -%] >-"[% biblio.title |html %] by [% biblio.author |html %]", "[% biblioitem.publicationyear |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' %] >+"[% 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' %] >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14303
:
40006
|
40029
|
40876