Bug 12724 - Show RDA tag 264 on OPAC Detail XSLT view
Summary: Show RDA tag 264 on OPAC Detail XSLT view
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Marcel de Rooy
QA Contact: Testopia
URL:
Keywords:
: 9094 (view as bug list)
Depends on:
Blocks: 10344 12726
  Show dependency treegraph
 
Reported: 2014-08-06 13:59 UTC by Marcel de Rooy
Modified: 2015-10-15 18:38 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 12724: Show RDA tag 264 on OPAC Detail XSLT view (5.94 KB, patch)
2014-08-06 14:22 UTC, Marcel de Rooy
Details | Diff | Splinter Review
[Signed-off] Bug 12724: Show RDA tag 264 on OPAC Detail XSLT view (6.10 KB, patch)
2014-08-06 19:02 UTC, Marc Véron
Details | Diff | Splinter Review
Bug 12724: Show RDA tag 264 on OPAC Detail XSLT view (6.14 KB, patch)
2014-10-10 20:17 UTC, Paul Poulain
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2014-08-06 13:59:46 UTC

    
Comment 1 Marcel de Rooy 2014-08-06 14:22:25 UTC Comment hidden (obsolete)
Comment 2 Marcel de Rooy 2014-08-06 14:30:47 UTC
Note that I created report 12725 to do something similar in staff. So no worries about that ..
Comment 3 Marc Véron 2014-08-06 19:02:38 UTC Comment hidden (obsolete)
Comment 4 Marcel de Rooy 2014-08-07 06:26:51 UTC
(In reply to Marc Véron from comment #3)
> Signed-off-by: Marc Véron <veron@veron.ch>

Thanks, Marc
Comment 5 Marcel de Rooy 2014-08-12 07:32:50 UTC
*** Bug 9094 has been marked as a duplicate of this bug. ***
Comment 6 Paul Poulain 2014-10-10 20:02:23 UTC
QA comment :
 * patch related to XSL only
 * passes koha-qa
 * no problem I could found

passed QA
Comment 7 Paul Poulain 2014-10-10 20:17:51 UTC
Created attachment 32204 [details] [review]
Bug 12724: Show RDA tag 264 on OPAC Detail XSLT view

This patch adds selected information from tag 264 to the Publisher line
on the OPAC detail XSLT view (MARC21). This includes a label, and the
subfields abc.

If Publication tag 260 exists, it adds information. If tag 260 does not exist,
it creates a 'publisher' line. (NOTE: Probably, both fields will not both be
present, but this patch can deal with that..)

Instead of showing all 264 tags, it picks the preferred one based on the
following rules (using both indicators; see LOC description):
[1] Try to select a Publisher -- Latest. Pick first one.
[2] Else try to select a Publisher. Pick the last one.
[3] Else try to select an other one (Producer, Manufacturer, ..) with Latest.
    Pick the first one of that.
[4] Otherwise: Pick the last 264 tag.

Test plan:
[1] Add one 260 and multiple 264 tags to your record.
[2] Check display in OPAC detail XSLT.
[3] Change some indicators, subfields of the 264s.
[4] Check display again, following the above rules.
    Go back to step 3 a couple of times.
[5] Remove tag 260. Check display again.

Followed test plan. Patch behaves as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Comment 8 Tomás Cohen Arazi (tcohen) 2014-10-18 14:01:56 UTC
Patch pushed to master.

Thanks Marcel!