Koha/t/db_dependent
Jared Camins-Esakov 066848a8f0 Bug 9174: Fix itemtype image display in OPAC lists
Prior to this patch, C4::VirtualShelves::Page did not make sure that
the itemtype images that it chose when displaying itemtype images for
biblio-level itemtypes were for the correct interface, so
even on the OPAC the Intranet icons were requested. On standard
installations, intranet-tmpl is not available to the OPAC.

To test:
1) Set noItemTypeImages to "Show" and item-level_items to "biblio record"
2) Create a list and add an item with the default item type (942$c in
   MARC21) set to something with an itemtype image associated with it.
3) View the list in the OPAC.
4) If you are an a standard install, the itemtype image will be a broken
   link. If on a dev install, you can confirm with Firebug or the like
   that the image is pulled from /intranet-tmpl.
5) Apply patch.
6) Run `prove t/db_dependent/Koha.t` to confirm that the behavior of the
   routine used to retrieve the image URL is correct. (Note that you
   must have an item type with the code 'BK')
7) Refresh the list, noting that the display is now correct/the image is
   pulled from opac-tmpl.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
It works as expected. All tests in Koha.t passed.
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-01-31 10:59:04 -05:00
..
data/zebraexport Revert "Bug 7167: Adds Unit tests for C4::Update::Database" 2012-12-27 14:02:52 -05:00
Labels
LDAP
lib Bug 7243: Rewording and renaming 2013-01-24 09:17:12 -05:00
needs_user_input
Record
Reports
00-strict.t
Accounts.t
Acquisition.t Bug 5335 follow-up fix test 2012-09-28 11:19:56 +02:00
Amazon.t
Auth.t
Auth_with_cas.t
AuthoritiesMarc.t Bug 8890 - move two more db dependent tests 2012-10-24 17:52:42 +02:00
BackgroundJob.t
Barcodes.t
Biblio.t
Budgets.t
check_sysprefs.t
Circulation.t
Context.t Bug 9191: updatedatabase.pl should only run updates up to the current version 2012-12-11 08:19:00 -05:00
Csv.t
database_dependent.pl
External_BakerTaylor.t
Heading_MARC21.t
HoldsQueue.t
Holidays.t Holidays Test Plan - DB Dependent 2012-10-01 16:44:02 +02:00
Items.t
Koha.t Bug 9174: Fix itemtype image display in OPAC lists 2013-01-31 10:59:04 -05:00
Koha_Authority.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Koha_borrower_modifications.t Bug 7067 - QA Followup - Fix failing tests 2012-12-14 08:09:01 -05:00
Koha_template_plugin_KohaDates.t
Linker_FirstMatch.t
Log.t
Members.t
Ratings.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Reports.t
Reports_Guided.t
Reserves.t Bug 8728 : Adjust Reserves.t test for resdate and expdate and test setup/teardown 2012-10-02 18:09:27 +02:00
rollingloans.t
Search.t Bug 8211: Add exploded search options 2012-09-18 15:20:48 +02:00
Serials.t
Serials_2.t
Service.t
SIP_ILS.t
SQLHelper.t
SuggestionEngine_ExplodedTerms.t Bug 8846 conflict resolution: correct path 2012-11-01 08:41:30 -04:00
Suggestions.t
sysprefs.t
Tags.t Bug 7642 - fix the lost display of tag sizes 2012-10-01 17:38:27 +02:00
UploadedFile.t
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t
zebra_config.pl