Koha-clms/opac
Marcel de Rooy e5651d4dad Bug 20310: Redirect article record without items for article requests
If an article record has been catalogued separately, has no items and
contains a reference to its host via MARC21 field 773 (host item entry),
this patch makes an article request redirect to the host record while
copying title, author and page info (from 773$g).

This is accomplished by using the new Koha::Biblio->host_record method.

Note: Subfield 773$g may contain additional information on volume and
issue number etc. It will be very hard or perhaps impossible to parse $g
and copy these details into the corresponding fields of the article
request form for all possible variations used in libraries. A similar
remark can be made for selecting the correct item (when item level is
used). We could try this on a future report, but will probably need at
least a preference to define the expected format.

Test plan:
[1] Enable article requests. Add rules for an ART and a SER itemtype.
[2] Create a SER host biblio record.
[3] Create an ART biblio record, no items. Include a 773w pointing to the
    SER record with '(MARCorgcode)[recno]' (keep the parentheses, remove
    the square brackets when inserting the biblionumber).
    Include text in 773$g too.
[4] Place an article request on the ART record. Verify that it redirects
    you to the SER record while copying title, author, page info.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Hugo Agud <hagud@orex.es>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-07-12 15:47:34 +02:00
..
clubs Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
errors Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
external/overdrive Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
rss
…
sci Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
sco Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
svc Bug 27380: (follow-up) Remove earlier declaration and unused assignment 2021-02-12 12:30:58 +01:00
ilsdi.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
maintenance.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
oai.pl
…
opac-ISBDdetail.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-MARCdetail.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-account-pay-return.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-account-pay.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-account.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-addbybiblionumber.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-alert-subscribe.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-article-request-cancel.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-authorities-home.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-authoritiesdetail.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-basket.pl Bug 18989: (QA follow-up) Make controllers use Koha::Biblio->hidden_in_opac 2021-05-12 14:12:07 +02:00
opac-blocked.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-browse.pl Bug 27200: (follow-up) Browse search interface update 2020-12-26 17:58:43 +01:00
opac-browser.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-changelanguage.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-course-details.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-course-reserves.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-detail.pl Bug 28600: (bug 18989 follow-up) Resolve variable scope issue 2021-06-24 11:53:35 +02:00
opac-discharge.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-downloadcart.pl Bug 5087: Add server-side check 2020-07-23 11:17:27 +02:00
opac-downloadshelf.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-export.pl Bug 24108: Make export file names consistent 2021-02-17 16:28:25 +01:00
opac-holdshistory.pl Bug 20936: (follow-up) add biblio and item relation to old holds and set a limit on search holds 2020-11-11 15:55:48 +01:00
opac-ics.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-idref.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-illrequests.pl Bug 22818: Add generation and sending of notices 2020-11-11 08:35:10 +01:00
opac-image.pl Bug 28606: Remove $DEBUG and $ENV{DEBUG} 2021-06-24 11:53:44 +02:00
opac-imageviewer.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-issue-note.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-library.pl Bug 13388: Add library pages to the OPAC 2020-05-04 09:11:03 +01:00
opac-main.pl Bug 22544: Clarify documentation and change param 'type' to 'location' 2021-07-06 12:17:28 +02:00
opac-memberentry.pl Bug 11879: (follow up) Some fixes and code cleanup 2021-07-12 15:47:33 +02:00
opac-messaging.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-modrequest-suspend.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-modrequest.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-mymessages.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-news-rss.pl Bug 22544: Clarify documentation and change param 'type' to 'location' 2021-07-06 12:17:28 +02:00
opac-overdrive-search.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-passwd.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-password-recovery.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-patron-consent.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-patron-image.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-privacy.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-ratings-ajax.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-ratings.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-readingrecord.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-recordedbooks-search.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-registration-verify.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-renew.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-reportproblem.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-request-article.pl Bug 20310: Redirect article record without items for article requests 2021-07-12 15:47:34 +02:00
opac-reserve.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-restrictedpage.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-retrieve-file.pl
…
opac-review.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-routing-lists.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-search-history.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-search.pl Bug 28606: Remove $DEBUG and $ENV{DEBUG} 2021-06-24 11:53:44 +02:00
opac-sendbasket.pl Bug 22343: (QA follow-up) Wrap email creation inside the try/catch block 2020-10-02 10:54:41 +02:00
opac-sendshelf.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-serial-issues.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-shareshelf.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-shelves.pl Bug 28561: Remove DBIC warning in opac-shelves 2021-07-12 11:44:55 +02:00
opac-showmarc.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-showreviews.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
opac-suggestions.pl Bug 26406: Fix suggestions filter at the OPAC 2021-02-15 11:18:25 +01:00
opac-tags.pl Bug 28572: Remove C4::Debug 2021-06-22 12:04:32 +02:00
opac-tags_subject.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-topissues.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
opac-user.pl Bug 28591: Don't pass debug to get_template_and_user 2021-06-22 12:04:32 +02:00
tracklinks.pl Bug 27979: Modify TrackClicks to verify URL exists in DB when multiple uri 2021-04-16 12:28:18 +02:00
unapi Bug 24052: Rename XSLT_Handler 2020-03-24 10:42:23 +00:00