Koha-clms/catalogue
Pasi Kallinen 69e0a1b9b2 Bug 11885: fix inconsistent HTML in MARC Details
In Catalog > MARC Details, the HTML in the different tabs is slightly
inconsistent and doesn't differentiate different elements, making CSS
styling complicated or impossible:

* tab 0 has <p class="subfield_line"> whereas all the other tabs
  have just <p>

* all other tabs wrap the subfield character in <b> tags, except
  for tab 0

* the MARC tag title is a single div with the tag, the indicators
  and the field description.

Attached patch folds all the tab outputs into a single TT BLOCK,
which is then reused. It also marks the separate parts of the tag
title in their own spans.

The output should be nearly identical to previous behaviour, minus
a dash from the tag title descriptions - it was used to separate
the tag from the description. The description can now be styled
separately from the tag itself, so the dash can be added with CSS,
if necessary.

Revised test:
1) Find a biblio
2) Edit the record so that there is something in every tab (0-9).
3) Save and then click 'MARC' in the left pane to view the
    MARC details.
4) Note the contents of each tab.
5) Apply patch
6) Compare the MARC details output to what was noted. Should
   be the same, minus a dash in each of the tag title descriptions.

Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 0ea17a6a76)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 18a5f1cb28)
2014-08-13 09:46:59 -04:00
..
ISBDdetail.pl Bug 5790 - Prevent deletion of records with holds 2013-02-07 07:29:45 -05:00
MARCdetail.pl Bug 11885: fix inconsistent HTML in MARC Details 2014-08-13 09:46:59 -04:00
cardview.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
detail.pl Bug 9875: Hide empty items tab 2013-03-20 14:37:52 -04:00
export.pl Bug 9665: QA follow up fixing tabs 2013-07-06 20:06:20 -03:00
getitem-ajax.pl Bug 7175: Allow to choose which items to receive 2012-05-21 17:46:07 +02:00
image.pl Bug 8255: allow local cover images to be cached 2012-06-25 18:12:29 +02:00
imageviewer.pl Bug 5790 - Prevent deletion of records with holds 2013-02-07 07:29:45 -05:00
issuehistory.pl Bug 4321: clean C4::Biblio::GetBiblio and uses 2012-09-18 12:11:54 +02:00
labeledMARCdetail.pl Bug 5790 - Prevent deletion of records with holds 2013-02-07 07:29:45 -05:00
moredetail.pl Bug 5790 - Prevent deletion of records with holds - QA Followup 2013-02-07 07:29:45 -05:00
search.pl Bug 5645: improve converting simple search to Z39.50 search 2013-11-13 14:16:03 -03:00
showmarc.pl Bug 11329: Check for MARC record existence in catalogue/showmarc 2014-03-26 20:13:34 +13:00
updateitem.pl Bug 6296: allow users to be authenticated by SSL client certs 2012-03-19 17:02:44 +01:00