X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmod_dom.c;h=7fe54c08cafe9d3e4193ad942f1d68d2c1080804;hb=c5971ebf8a88865ed9a1f7c8cf9daa22544f07be;hp=66ee4f02fbdd33a8443491adbdb2301a66688b1d;hpb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;p=idzebra-moved-to-github.git diff --git a/index/mod_dom.c b/index/mod_dom.c index 66ee4f0..7fe54c0 100644 --- a/index/mod_dom.c +++ b/index/mod_dom.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -946,6 +946,8 @@ static void set_record_info(struct filter_info *tinfo, action = action_replace; else if (!strcmp(type_p, "update")) action = action_update; + else if (!strcmp(type_p, "adelete")) + action = action_a_delete; else dom_log(YLOG_WARN, tinfo, node, "bad @type value: %s", type_p); extctr->action = action; @@ -1361,7 +1363,7 @@ static int extract_iso2709(struct filter_info *tinfo, dom_log(YLOG_WARN, tinfo, 0, "MARC: Skipping bad byte %d (0x%02X)", *buf & 0xff, *buf & 0xff); - for (i = 0; i<4; i++) + for (i = 0; i < 4; i++) buf[i] = buf[i+1]; if (p->stream->readf(p->stream, buf+4, 1) != 1)