sentences:  Mallorca qualified for the UEFA Cup Winners' Cup by finishing as runners-up in the Spanish Copa del Rey.They lost to Barcelona 5–4 in a penalty shootout, but as Barcelona finished first in the 1997–98 La Liga, they qualified for the 1998–99 UEFA Champions League and Mallorca were awarded their spot in the Cup Winners' Cup.Mallorca's opponents in the first round were Scottish team Heart of Midlothian (Hearts).