Bugzilla – Attachment 36992 Details for
Bug 13859
Fix item search result list - obsolete "by" and display of publication date for MARC21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13859: Item search improvements - publication date and title formatting
Bug-13859-Item-search-improvements---publication-d.patch (text/plain), 2.16 KB, created by
Mirko Tietgen
on 2015-03-18 19:11:46 UTC
(
hide
)
Description:
Bug 13859: Item search improvements - publication date and title formatting
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2015-03-18 19:11:46 UTC
Size:
2.16 KB
patch
obsolete
>From 655adc5f12734ea7ca631aed40203bfa4f7f321e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Wed, 18 Mar 2015 01:11:24 +0100 >Subject: [PATCH] Bug 13859: Item search improvements - publication date and > title formatting > >In the item search accessible from the advanced search the publication >date would not display for MARC21 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 includes punctuation. > >To test: >- 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 > >Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> >Tested for MARC21 >--- > .../prog/en/includes/catalogue/itemsearch_item.json.inc | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >index 605a1bf..4085b94 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/catalogue/itemsearch_item.json.inc >@@ -1,11 +1,12 @@ > [%- USE Branches -%] >+[%- USE Koha -%] > [%- biblio = item.biblio -%] > [%- biblioitem = item.biblioitem -%] > [ > "[% FILTER escape_quotes = replace('"', '\"') ~%] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]" title="Go to record detail page">[% biblio.title |html %]</a> by [% biblio.author |html %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]" title="Go to record detail page">[% biblio.title |html %]</a>[% IF ( Koha.Preference( 'marcflavour' ) == 'UNIMARC' && biblio.author ) %] by[% END %] [% biblio.author |html %] > [%~ END %]", >- "[% biblioitem.publicationyear |html %]", >+ "[% (biblioitem.publicationyear || biblio.copyrightdate) |html %]", > "[% biblioitem.publishercode |html %]", > "[% biblioitem.collectiontitle |html %]", > "[% FILTER escape_quotes ~%] >-- >1.7.10.4
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 13859
:
36971
|
36992
|
37001
|
37005