Summary: | Improve display of MARC21 773 field in XSLT detail view | ||
---|---|---|---|
Product: | Koha | Reporter: | Marcel de Rooy <m.de.rooy> |
Component: | Cataloging | Assignee: | Marcel de Rooy <m.de.rooy> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | enhancement | ||
Priority: | PATCH-Sent (DO NOT USE) | CC: | chris, jcamins, koha.sekjal |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 5662, 5663 | ||
Attachments: |
Patch
Revised patch Revised patch Signed-off patch |
Description
Marcel de Rooy
2011-01-17 13:29:05 UTC
Created attachment 2998 [details] [review] Patch Sending a revised patch for showing the correct control number in the URL. According to LOC guidelines, the control number in $w may be prefixed by an organization code between parentheses like (NL-AmRIJ)12345. The URL should only list the record number 12345. This patch only corrects that for the 773 field. I will send another followup patch for other MARC tags (with a generic bug report). The common XSLT code for that is included in this patch ALREADY. So the followup will be depending on this one. Created attachment 3029 [details] [review] Revised patch Resetting patch status. Found a bug in this patch; will submit a corrected version. Comment on attachment 3029 [details] [review] Revised patch Erroneous Initial description was not completely valid. Field 773 was shown already under several conditions. Latest patch extends display with the following: Applies change to OPAC and staff detail view. Chops punctuation. Adds 773g (including page numbers or so). Strips MARC org code from URL. Utils code is used as basis for patches #5662 and #5663 too. Created attachment 3052 [details] [review] Revised patch This bug is mentioned in: Bug 5622 (Show 773 host in staff normal view) http://lists.koha-community.org/pipermail/koha-patches/2011-January/013614.html Bug 5622: Always show host entry (773) in staff; control number without organization code http://lists.koha-community.org/pipermail/koha-patches/2011-January/013710.html Created attachment 3342 [details] [review] Signed-off patch (In reply to comment #9) > Created attachment 3342 [details] [review] > Signed-off patch Thanks! Pushed, please test Works for me. When testing, add a zero in the first 773 indicator to display the note. If you enter something like (ABCdef77)456 in the control number, the link should correctly point to record 456, stripping off the stuff between parentheses. |