EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #04814
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Possible bug in title_duplicates script?
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Possible bug in title_duplicates script?
- From: George Mamalakis <mamalos@eng.auth.gr>
- Date: Wed, 30 Sep 2015 11:07:54 +0300
Ah,
And of course the obvious solution would be to change the location of the first AND statement, so a patch similar to this: $sql .= " $Q_eprint_status=" . $db->quote_value( "archive" ) . " AND "; --- ./cgi/users/lookup/title_duplicates 2015-04-17 19:07:54.000000000 +0300 +++ /tmp/title_duplicates 2015-09-30 10:45:40.510270944 +0300 @@ -71,9 +71,9 @@ " FROM $Q_table" . " WHERE "; if ($dataset_name eq "eprint") { - $sql .= " $Q_eprint_status=" . $db->quote_value( "archive" ); + $sql .= " $Q_eprint_status=" . $db->quote_value( "archive" ) . " AND "; } -$sql .= " AND $Q_id!=$id" . +$sql .= "$Q_id!=$id" . " AND $Q_field_name IS NOT NULL" . " AND $Q_field_name " . $db->sql_LIKE() . Before opening a bug report in EPrints' github, please someone do confirm that what I'm suggesting is not breaking things instead of fixing them. Cheers, George. On 29/09/2015 04:23 μμ, George Mamalakis wrote: Hello everyone, -- George Mamalakis IT and Security Officer, Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki), PhD (Aristotle Univ. of Thessaloniki), MSc (Imperial College of London) School of Electrical and Computer Engineering Aristotle University of Thessaloniki phone number : +30 (2310) 994379 |
- References:
- [EP-tech] Intermittent altmetric box?
- From: Meghan Jones <M.Jones3@brighton.ac.uk>
- [EP-tech] Antwort: Intermittent altmetric box?
- From: martin.braendle@id.uzh.ch
- [EP-tech] Possible bug in title_duplicates script?
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Intermittent altmetric box?
- Prev by Date: [EP-tech] Antwort: Re: IRStats2. Browsers and Countries
- Next by Date: [EP-tech] Re: Antwort: Re: IRStats2. Browsers and Countries
- Previous by thread: [EP-tech] Possible bug in title_duplicates script?
- Next by thread: [EP-tech] EPrints as a dedicated data repository
- Index(es):