Bug 10141: improve editing of MARC21 bib 008/18-21 and 008/24-27

This patch changes the MARC21 008 editing form to create dropdowns
for each of the 008/18-21 (Illustrations) and 008/24-27 (Nature of contents)
positions.

To test:
1) Edit or add a new bibliographic record
2) Click on field 008 value builder, positions 18-21 and 24-27 only
show an input text box
3) Apply the patch
4) Reload value_builder page, now each position (18-21,24-27) has
its own dropdown.  Note that it may be necessary to clear
the browser cache for the change to be visible.

Similar changes could be made for the 006 value builder.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 6792ddd0e3)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Works great, nice improvement
This commit is contained in:
Bernardo Gonzalez Kriegel 2013-05-02 08:13:05 -03:00 committed by Tomas Cohen Arazi
parent a7d116e2fe
commit b440b965eb
1 changed files with 152 additions and 2 deletions

View File

@ -53,7 +53,64 @@
<Value code="[aa#]"><description>Two-character alphabetic code</description></Value>
<Value code="[aaa]"><description>Three-character alphabetic code</description></Value>
</Position>
<Position pos="18-21"><name>Illustrations</name><description>Up to four (4) one-character alphabetic codes (recorded in alphabetical order) that indicate the presence of types of illustrations in the item. If fewer than four alphabetic codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Position pos="18"><name>Illustrations - code 1</name><description>Up to four (4) one-character alphabetic codes (recorded in alphabetical order) that indicate the presence of types of illustrations in the item. If fewer than four alphabetic codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No illustrations</description></Value>
<Value code="a"><description>Illustrations</description></Value>
<Value code="b"><description>Maps</description></Value>
<Value code="c"><description>Portraits</description></Value>
<Value code="d"><description>Charts</description></Value>
<Value code="e"><description>Plans</description></Value>
<Value code="f"><description>Plates</description></Value>
<Value code="g"><description>Music</description></Value>
<Value code="h"><description>Facsimiles</description></Value>
<Value code="i"><description>Coats of arms</description></Value>
<Value code="j"><description>Genealogical tables</description></Value>
<Value code="k"><description>Forms</description></Value>
<Value code="l"><description>Samples</description></Value>
<Value code="m"><description>Phonodisc, phonowire, etc</description></Value>
<Value code="o"><description>Photographs</description></Value>
<Value code="p"><description>Illuminations</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="19"><name>Illustrations - code 2</name><description>Up to four (4) one-character alphabetic codes (recorded in alphabetical order) that indicate the presence of types of illustrations in the item. If fewer than four alphabetic codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No illustrations</description></Value>
<Value code="a"><description>Illustrations</description></Value>
<Value code="b"><description>Maps</description></Value>
<Value code="c"><description>Portraits</description></Value>
<Value code="d"><description>Charts</description></Value>
<Value code="e"><description>Plans</description></Value>
<Value code="f"><description>Plates</description></Value>
<Value code="g"><description>Music</description></Value>
<Value code="h"><description>Facsimiles</description></Value>
<Value code="i"><description>Coats of arms</description></Value>
<Value code="j"><description>Genealogical tables</description></Value>
<Value code="k"><description>Forms</description></Value>
<Value code="l"><description>Samples</description></Value>
<Value code="m"><description>Phonodisc, phonowire, etc</description></Value>
<Value code="o"><description>Photographs</description></Value>
<Value code="p"><description>Illuminations</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="20"><name>Illustrations - code 3</name><description>Up to four (4) one-character alphabetic codes (recorded in alphabetical order) that indicate the presence of types of illustrations in the item. If fewer than four alphabetic codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No illustrations</description></Value>
<Value code="a"><description>Illustrations</description></Value>
<Value code="b"><description>Maps</description></Value>
<Value code="c"><description>Portraits</description></Value>
<Value code="d"><description>Charts</description></Value>
<Value code="e"><description>Plans</description></Value>
<Value code="f"><description>Plates</description></Value>
<Value code="g"><description>Music</description></Value>
<Value code="h"><description>Facsimiles</description></Value>
<Value code="i"><description>Coats of arms</description></Value>
<Value code="j"><description>Genealogical tables</description></Value>
<Value code="k"><description>Forms</description></Value>
<Value code="l"><description>Samples</description></Value>
<Value code="m"><description>Phonodisc, phonowire, etc</description></Value>
<Value code="o"><description>Photographs</description></Value>
<Value code="p"><description>Illuminations</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="21"><name>Illustrations - code 4</name><description>Up to four (4) one-character alphabetic codes (recorded in alphabetical order) that indicate the presence of types of illustrations in the item. If fewer than four alphabetic codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No illustrations</description></Value>
<Value code="a"><description>Illustrations</description></Value>
<Value code="b"><description>Maps</description></Value>
@ -97,7 +154,100 @@
<Value code="s"><description>Electronic</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="24-27"><name>Nature of contents</name><description>Up to four one-character codes that indicate whether a significant part of the item is or contains certain types of material. If fewer than four codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Position pos="24"><name>Nature of contents - code 1</name><description>Up to four one-character codes that indicate whether a significant part of the item is or contains certain types of material. If fewer than four codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No specified nature of contents</description></Value>
<Value code="2"><description>Offprints</description></Value>
<Value code="5"><description>Calendars</description></Value>
<Value code="6"><description>Comics/graphic novels</description></Value>
<Value code="a"><description>Abstracts/summaries</description></Value>
<Value code="b"><description>Bibliographies</description></Value>
<Value code="c"><description>Catalogs</description></Value>
<Value code="d"><description>Dictionaries</description></Value>
<Value code="e"><description>Encyclopedias</description></Value>
<Value code="f"><description>Handbooks</description></Value>
<Value code="g"><description>Legal articles</description></Value>
<Value code="i"><description>Indexes</description></Value>
<Value code="j"><description>Patent document</description></Value>
<Value code="k"><description>Discographies</description></Value>
<Value code="l"><description>Legislation</description></Value>
<Value code="m"><description>Theses</description></Value>
<Value code="n"><description>Surveys of literature in a subject area</description></Value>
<Value code="o"><description>Reviews</description></Value>
<Value code="p"><description>Programmed texts</description></Value>
<Value code="q"><description>Filmographies</description></Value>
<Value code="r"><description>Directories</description></Value>
<Value code="s"><description>Statistics</description></Value>
<Value code="t"><description>Technical reports</description></Value>
<Value code="u"><description>Standars/specifications</description></Value>
<Value code="v"><description>Legal cases and case notes</description></Value>
<Value code="w"><description>Law reports and digests</description></Value>
<Value code="y"><description>Yearbooks</description></Value>
<Value code="z"><description>Treaties</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="25"><name>Nature of contents - code 2</name><description>Up to four one-character codes that indicate whether a significant part of the item is or contains certain types of material. If fewer than four codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No specified nature of contents</description></Value>
<Value code="2"><description>Offprints</description></Value>
<Value code="5"><description>Calendars</description></Value>
<Value code="6"><description>Comics/graphic novels</description></Value>
<Value code="a"><description>Abstracts/summaries</description></Value>
<Value code="b"><description>Bibliographies</description></Value>
<Value code="c"><description>Catalogs</description></Value>
<Value code="d"><description>Dictionaries</description></Value>
<Value code="e"><description>Encyclopedias</description></Value>
<Value code="f"><description>Handbooks</description></Value>
<Value code="g"><description>Legal articles</description></Value>
<Value code="i"><description>Indexes</description></Value>
<Value code="j"><description>Patent document</description></Value>
<Value code="k"><description>Discographies</description></Value>
<Value code="l"><description>Legislation</description></Value>
<Value code="m"><description>Theses</description></Value>
<Value code="n"><description>Surveys of literature in a subject area</description></Value>
<Value code="o"><description>Reviews</description></Value>
<Value code="p"><description>Programmed texts</description></Value>
<Value code="q"><description>Filmographies</description></Value>
<Value code="r"><description>Directories</description></Value>
<Value code="s"><description>Statistics</description></Value>
<Value code="t"><description>Technical reports</description></Value>
<Value code="u"><description>Standars/specifications</description></Value>
<Value code="v"><description>Legal cases and case notes</description></Value>
<Value code="w"><description>Law reports and digests</description></Value>
<Value code="y"><description>Yearbooks</description></Value>
<Value code="z"><description>Treaties</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="26"><name>Nature of contents - code 3</name><description>Up to four one-character codes that indicate whether a significant part of the item is or contains certain types of material. If fewer than four codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No specified nature of contents</description></Value>
<Value code="2"><description>Offprints</description></Value>
<Value code="5"><description>Calendars</description></Value>
<Value code="6"><description>Comics/graphic novels</description></Value>
<Value code="a"><description>Abstracts/summaries</description></Value>
<Value code="b"><description>Bibliographies</description></Value>
<Value code="c"><description>Catalogs</description></Value>
<Value code="d"><description>Dictionaries</description></Value>
<Value code="e"><description>Encyclopedias</description></Value>
<Value code="f"><description>Handbooks</description></Value>
<Value code="g"><description>Legal articles</description></Value>
<Value code="i"><description>Indexes</description></Value>
<Value code="j"><description>Patent document</description></Value>
<Value code="k"><description>Discographies</description></Value>
<Value code="l"><description>Legislation</description></Value>
<Value code="m"><description>Theses</description></Value>
<Value code="n"><description>Surveys of literature in a subject area</description></Value>
<Value code="o"><description>Reviews</description></Value>
<Value code="p"><description>Programmed texts</description></Value>
<Value code="q"><description>Filmographies</description></Value>
<Value code="r"><description>Directories</description></Value>
<Value code="s"><description>Statistics</description></Value>
<Value code="t"><description>Technical reports</description></Value>
<Value code="u"><description>Standars/specifications</description></Value>
<Value code="v"><description>Legal cases and case notes</description></Value>
<Value code="w"><description>Law reports and digests</description></Value>
<Value code="y"><description>Yearbooks</description></Value>
<Value code="z"><description>Treaties</description></Value>
<Value code="|"><description>No attempt to code</description></Value>
</Position>
<Position pos="27"><name>Nature of contents - code 4</name><description>Up to four one-character codes that indicate whether a significant part of the item is or contains certain types of material. If fewer than four codes are assigned, the codes are left justified and unused positions contain blanks (#)</description>
<Value code="#"><description>No specified nature of contents</description></Value>
<Value code="2"><description>Offprints</description></Value>
<Value code="5"><description>Calendars</description></Value>