Commit graph

53 commits

Author SHA1 Message Date
Galen Charlton
c48da8131d bug 1909: add delete field/subfield button to MARC editor
A button to delete (non-mandatory) subfields and fields
is added to the bib and authority MARC editors.  This button,
which displays as a hypen or minus sign after the plus sign
to clone a field, acts as follows:

[1] When deleting a whole MARC field, if at least
    one other repeat of that field exists, deletes
    the field from the editor page.  If the field
    to be deleted is the last instance of that tag,
    the contents of the field are cleared, not removed.
    This allows one to delete all 650 tags, then
    add a new one without having to reload the
    record in the editor.

[2] When deleting a subfield, if at least one other
    repeat of that subfield and its tag occurs
    *anywhere else in the record, not necessarily in the same tag*,
    deletes the subfield.
    Otherwise, if the subfield is the last occurrence
    of that tag/subfield combination, clears the input
    form instead.

Documentation note: new screenshots for MARC editor, plus
description of the '-' button.

Credit to MJ Ray for introducing the '-' button
and the UnCloneField JavaScript function.

Signed-off-by: Andrew Moore <andrew.moore@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-08 12:31:30 -05:00
Galen Charlton
7ac682c859 bug 2265: fix problem when cloning MARC field
Correctly set indicators when cloning a field
in the MARC editor.  Prior this fix, a cloned
field would not be saved.  Bug introduced in
patch for bug 2207.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-20 09:41:00 -05:00
Galen Charlton
ee49d6d372 kohabug 2207 - improve indicator input in MARC editor
Instead of having one input field for both indicators
of a variable field, the bib and authority MARC editor
now has an input field for each indicator.  This has
two main advantages:

* it is easier to tell what the indicator values are,
  even when the first indicator is a space
* it is easier to set the first indicator to blank
  and the second indicator to non-blank.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-12 11:17:35 -05:00
d481a03fdf Some style changes following up on recent fix for Bug 2019. Hopefully improves readability. Converted up.png from 24-bit to 8-bit for IE6-friendliness (doesn't require alpha transparency).
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-24 10:31:01 -05:00
Galen Charlton
b9260e571c kohabug 2019 - display entire subfield label
Don't truncate subfield label at 22 characters; instead
display whole label and wrap

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 18:17:28 -05:00
d3e3cc1780 Cleanup of z39.50 search form, addition of checkall js. Addition of tablesorter js to z39.50 results.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-19 06:32:30 -05:00
Ryan Higgins
d878a92b3d Add MARC preview to Z39.50 search.
Also, add title string to MARC editor.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-17 19:25:51 -05:00
Ryan Higgins
b2225dbc80 Remove Z3950 mandatory fields from MARC editor.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-17 19:25:50 -05:00
d7652bd39e Tweaks for addbiblio, including correction for tabs update and addition of automatic focus for the first field in each tab.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-11 06:18:51 -05:00
bab8beb59a Updates to go along with jquery tabs plugin update
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-11 06:18:50 -05:00
d63f3fbcea Updating loading mask js and adding opacity setting.
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-03-04 04:47:48 -06:00
6deddfb7bd Using YUI plugin to do "Loading" mask on addbiblio.pl and authorities.pl. Previous version wasn't compatible with Internet Explorer.
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-29 17:30:02 -06:00
Paul POULAIN
89c8aa9c0f adding _() for translator
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-29 11:59:39 -06:00
Galen Charlton
b4fd594f6c completed XHTML fixes for addbiblio
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-11 22:11:30 -06:00
Galen Charlton
995967117d restore tabbing function in MARC bib editor
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-11 16:35:22 -06:00
Henri-Damien LAURENT
792b538c8c </div> were missing
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-11 06:10:02 -06:00
Chris Cormack
513990edd1 Fix for bug 1560
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-23 21:30:59 -06:00
908caa53b0 In response to paul's comment: "one user that just tested is confused by the green & red signs, and think it would be better to remove them (they thought "green" was = OK, confirm creation and "red" = oops, I made a mistake, it's a duplicate)"
I've taken out the check and the X and replaced them with "edit" and "save" icons from the toolbars. Less confusing?

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-21 19:48:14 -06:00
paul
755f381f9c 2 questions in 2 lines, confusing for users.
+ one user that just tested is confused by the green & red signs, and think it would be better to remove them
(they thought "green" was = OK, confirm creation and "red" = oops, I made a mistake, it's a duplicate)

I didn't remove the pictures, but let me know your opinion on this.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-21 07:51:30 -06:00
86e458a3ce Standardizing format for error/message dialogs. <div class="dialog alert"> for high-priority warnings/confirmations. <div class="dialog message"> for lower priority/informational messages.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 10:57:46 -06:00
Chris Nighswonger
0c558d1c97 Adding LCCN to z2950 searches
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-13 17:23:50 -06:00
1afc3d1e99 Changes to address Bug 774 (z3950 search results window not resizable)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-04 15:06:32 -06:00
bf413a98c9 Corrections to page title, breadcrumbs, heading
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-04 15:06:27 -06:00
c16539a291 Bugfixing interface issues. Also enabling contextual menu highlighting for catalogue detail pages.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-21 18:07:01 -06:00
Paul POULAIN
d34f5bb569 everybody, says 100 times : "It's forbidden to put TMPL_IF inside a html tag"
The translator become crazy :
<anything <!-- TMPL_IF -->nanana<!-- /TMPL_IF -->> is ILLEGAL in Koha

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-20 16:22:26 -06:00
1c797ad9cb Rolling back change to javascript which caused problems on some systems (still not sure why!)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-16 07:35:00 -06:00
fa18d24cb7 Enabling yuipath system preference for choosing local or Yahoo-hosted YUI js library includes. Removing yui-toolbars.inc include.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 18:06:43 -06:00
37173a1080 Adding "Loading" overlay for addbiblio and add authority pages. Adding YUI button to authorites.tmpl.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-08 17:53:19 -06:00
394d67e506 Fixing zebra-striping of z3950 search results, YUI-ing z3950 search button, tweaking layout of z3950 search popup
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-07 08:21:49 -06:00
63cb08fc8d Enabling AutoComplete on resident circ search form. Putting dependent YUI files into doc-head-close.inc along with button/menu-related YUI js and css. Moving menu.css, button.css, and dependent graphics into lib/yui. Removing "yui-skin-sam" class from body tags and altering css accordingly.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-04 16:31:18 -06:00
Paul POULAIN
7a882cff07 bugfix in MARC editor to deal with clonefield (+) that is an authority
the ... were not pointing to the duplicated entry but to the 1st one

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-31 05:45:12 -05:00
fefe64cf55 More work on standardizing toolbars. Also standardizing form markup in /tools
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-20 17:05:10 -05:00
Galen Charlton
af466ca41a start of reworking call number handling and other Biblio changes
Most of this commit by Joshua Ferraro.
updatedatabase changes by Galen Charlton.

Major changes:

This commit includes a lot of fairly major changes
to Koha's Biblio handling, largest is the addition
and deletion of several columns in the biblioitems,
items tables, as well as cleanup of deletedbiblioitems,
deleteditems tables. Some of the changes are simple
cleanup, but most have to do with improvements to
storage of call numbers in Koha.

Also, I had to clean up the _koha_* routines quite a
lot to make them work -- there was lots of data just
being lost because columns weren't being updated.

I'm still not completely convinced that the items
table is being treated as authoritative for items
data, investigating further.

DB Changes (updated in kohastructure.sql and in
updatedatabases):

ADDED:
biblioitems.cn_source   ( auth value, CN_SOURCE, stores the source of the
                          call number: DDC, LCC, NLM, etc.)
biblioitems.cn_class    ( plugin, marc21_callnumber.pl, helps fill in
                          the rest of the biblio-level fields)
biblioitems.cn_item
biblioitems.cn_suffix
biblioitems.cn_sort     ( for zebra sorting, stored as a decimal number)
biblioitems.totalissues ( for counting the total times issued )

items.cn_source         ( auth value, CN_SOURCE, stores DDC, LCC, NLM, etc.)
items.itemcallnumber    ( plugin, marc21_itemcallnumber.pl, helps fill in
                          the itemcallnumber based on the record data )
items.cn_sort           ( for zebra sorting, stored as a decimal number)
items.ccode             ( auth value, CCODE, stores the Collection Code
                          of the item, can be used as call number prefix
                          by some libraries )
items.uri
items.materials
items.damaged

DELETED:
items.itype
items.cutterextra
biblioitems.classification
biblioitems.subclass
biblioitems.dewey
biblioitems.lcsort
biblioitems.lccn
biblioitems.ccode

DB version now 3.00.00.009.

Minor changes:

* Drop revision history from C4/Biblio.pm
* GetMarcAuthors now returns additional authors (7XX), not
  main authors (1XX)
* Debug warnings in C4/Search.pm commented out

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 20:19:56 -05:00
Henri-Damien LAURENT
defc94fd0b Bug Fixing : If multiple mandatory subfield and one is empty, unable to save biblio.
Duplicate a biblio with 3 authors, blank out one among them and try to save.
It was impossible.
Now, it works.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-18 16:27:39 -05:00
Paul POULAIN
154e383a1d BUGfixing authorities editor
With the YUI tabs, the SINGLETAB feature (that hides tabs when there is only 1) was bugguy
This commit fixes the problem, and solve some other ones :
- order the fields
- resize the input size (see previous commit in addbiblio.pl)
- remove some unused code
- reindent

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-17 07:11:00 -05:00
a25747cf2e Change to the way the duplicate warning works and displays. Streamlines not-a-duplicate confirmation process and hopefully fixes Bug 1447.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-11 12:45:27 -05:00
16d0f61af9 Corrections to addbiblio.pl and addbiblio.tmpl for XHTML compliance; Formatting addbilbio.tmpl tabs.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-10 17:08:39 -05:00
Paul POULAIN
fa5acd49ea fixing upbutton that has disappeared & fixedfield condition check
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-05 19:52:30 -05:00
Paul POULAIN
57f25c3dad moving _( function to header
This function is used to extract strings for translator tool. It must be available everywhere, moving it to head-close.inc
& removing it elsewhere

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-05 19:39:23 -05:00
Paul POULAIN
db5b97d364 BUGFIX for 1447: Duplicate record function fails
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-10-02 04:35:40 -05:00
Paul POULAIN
2c979e6268 BUGFIX : I forgot to add the random part of UpSubfield(...)
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-30 15:57:42 -05:00
Paul POULAIN
9a1b556879 BUGFIX : create a unique div for each subfield
otherwise, when you have a repeated field, when editing biblio,
the cloneSubfield (+) button will clone the subfield in the 1st field
wherever you click !

Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-27 16:32:40 -05:00
Paul POULAIN
72e5d4f62d BUGFIX : API changed, removing "old"
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-24 15:31:49 -05:00
Paul POULAIN
e0c6540912 BUGFIX : Expand property fixed on duplicated fields + added _() to string that must be translated
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-12 20:54:37 -05:00
eb427ffda3 Continuing addition of resident search form, other markup corrections.
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-11 16:41:35 -05:00
d3d5fadb43 Adding jquery as default js library and staff-global.js for global js functions. Converting form field focus scripts to jquery syntax (use class="focus" for auto-focusing form fields)
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-04 16:35:54 -05:00
039df85cf9 Moving inline script blocks to <head> where possible
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-04 16:35:52 -05:00
Paul POULAIN
4604a17226 BUGFIX : due to the new template structure, the up.png button has moved
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-04 05:51:49 -05:00
c44f56fcac Moving </head><body> into body of templates so that js and css can be embedded per-page.
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-30 15:50:54 -05:00
62e94fd1b0 More changes to enable YUI-Grids CSS layout
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-28 16:50:44 -05:00