This patch fills the column 'Collection' in item search from the item values.
To test:
- Go to item search
- Reproduce issue from initial comment
- Apply patch
- Verify that the column 'Collection' is filled
Still to do, but outside of my datatable skills:
Filter by drop down in the column header does a substring search.
Example: Filter for 'Fiction" returns both 'Fiction' and 'Non-fiction' items.
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit
6c1504cfdb301cb0f9f3a14b5db31a63f5c3b0a5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit
74752502b309ddec4311a4311a3481bf54061187)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
[%- USE Branches -%]
[%- USE Koha -%]
+[% USE AuthorisedValues %]
[%- biblio = item.biblio -%]
[%- biblioitem = item.biblioitem -%]
[
[%~ END %]",
"[% (biblioitem.publicationyear || biblio.copyrightdate) |html %]",
"[% biblioitem.publishercode |html %]",
- "[% biblioitem.collectiontitle |html %]",
+ "[% AuthorisedValues.GetByCode( 'CCODE', item.ccode ) %]",
"[% FILTER escape_quotes ~%]
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]#item[% item.itemnumber %]" title="Go to item details">[% item.barcode |html %]</a>
[%~ END %]",
{ 'sName': 'title' },
{ 'sName': 'publicationyear' },
{ 'sName': 'publishercode' },
- { 'sName': 'collectiontitle' },
+ { 'sName': 'ccode' },
{ 'sName': 'barcode' },
{ 'sName': 'itemcallnumber' },
{ 'sName': 'homebranch' },
{ 'type': 'text' },
{ 'type': 'text' },
{ 'type': 'text' },
- { 'type': 'text' },
+ { 'type': 'select', 'values': [% ccodes.json %] },
{ 'type': 'text' },
{ 'type': 'text' },
{ 'type': 'select', 'values': [% branches.json %] },