https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39088

            Bug ID: 39088
           Summary: If OPACURLOpenInNewWindow is enabled, URLs without
                    http are broken in OPAC results
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Created attachment 177713
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=177713&action=edit
Record to test

A client reported this and I was able to recreate on main. They have 800+
records with URLs in 856$u without the https:// at the beginning. The URLs open
fine everywhere *except* the OPAC results, where the OPACBaseURL is somehow
prepended to the URL in 856. If we turn off OPACURLOpenInNewWindow, the links
work fine in OPAC results.

I attached one of their records as an example.

To test:
1. Import the attached record
   1.1. Go to Cataloging > Stage records for import
   1.2. Choose the file
   1.3. Click on 'Upload file'
   1.4. Click on 'Stage for import'
   1.5. Click 'View batch'
   1.6. Click 'Import this batch into the catalog'

2. In the staff interface, search for 'Statistics'

3. In the search results, hover over 'View Document - English' under the title
'Technology adoption by women-owned businesses in Canada'
   --> URL is publication.gc.ca... (OK)

4. Click on the title to access the detailed record

5. Hover over 'View Document - English'
   --> URL is publication.gc.ca... (OK)

6. In the OPAC, search for 'Statistics'

7. In the search results, hover over 'View Document - English' under the title
'Technology adoption by women-owned businesses in Canada'
   --> URL is publication.gc.ca... (OK)

8. Click on the title to access the detailed record

9. Hover over 'View Document - English'
   --> URL is publication.gc.ca... (OK)

10. Enable OPACURLOpenInNewWindow
    10.1. Go to Administration > System preferences
    10.2. Search for OPACURLOpenInNewWindow
    10.3. Change the value to 'do'
    10.4. Click 'Save all OPAC preferences'

11. Redo steps 2-9
    staff interface search results = OK
    staff interface detailed record = OK
    OPAC search results = URL is localhost:8080/cgi-bin/koha/publications.gc.ca
(NOT OK)
    OPAC detailed record = OK

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to