[OPEN-ILS-DEV] Adding subfields

James Fournie jfournie at sitka.bclibraries.ca
Fri Mar 6 18:38:37 EST 2009


Hi there Dale,

Sorry for the delayed reply -- I was just using the MARC editor on Mac
and I had the same problem, and recalled a post about it.

It seems that the problem is in this bit of marcedit.xul on the server:
<button id="save-button" accesskey="d"/>

The "accesskey" attribute is expecting a ctrl+d on Mac (on Windows it
would probably be alt+d).  Meanwhile, this bit in marcedit.js is
conflicting:
	if (event.charCode == 100 && event.ctrlKey) { // ctrl+d
 which is the start of the code to add a subfield.

I'm not sure how this could be fixed properly, I'd think you'd have to
maybe detect if it's a mac and if so, change all of the event.ctrlKey
to event.metaKey so that add subfield would then be Cmd+d

As a quick fix, you could just the save-button accesskey to another
key (such as "a") and that would make it usable for cataloguing -- but
you might want to check with others to avoid frustrating cataloguers
who are used to certain keystrokes.

~James Fournie
BC SITKA

On Thu, Jan 22, 2009 at 10:46 AM, Dale McClure <dmcclure at upei.ca> wrote:
>
> Can anyone tell me how to add a subfield in Evergreen? I am using a Mac and have tried many variations of control, command and options with no success.
>
>
>
>
> Dale McClure
> Robertson Library
> University of Prince Edward Island
>
>


More information about the Open-ils-dev mailing list