Summary: | Add ID attribute to certain areas of OPAC so jquery can be used to hide them | ||
---|---|---|---|
Product: | Koha | Reporter: | Jane Wagner <jwagner> |
Component: | Templates | Assignee: | Katrin Fischer <katrin.fischer> |
Status: | CLOSED FIXED | QA Contact: | Ian Walls <koha.sekjal> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | jcamins, paul.poulain |
Version: | 3.6 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
patch file against current head
Bug 4918: Add ids to OPAC detail page Bug 4819: Add ids to OPAC detail page Bug 4819: Add ids to OPAC detail page [SIGNED-OFF] Bug 4819: Add ids to OPAC detail page |
Description
Jane Wagner
2010-05-26 13:17:29 UTC
Actually, I wrote a patch some time batck to use a syspref to hide the messaging tab -- looks like Bug 3535 hasn't been pushed to head yet. The span label will work in the meantime, if it gets pushed. Created attachment 2166 [details] [review] patch file against current head The attached patch predates TT and will no longer apply. 'OPAC search strategy' is no longer a problem, as we have decided to generally not show the search terms and indexes but only the result count. Current display: "Your search returned 3119 results." My patch adds an unique id to every item tab and to every column in the items table on the holdings tab. I think the patron account tabs should be checked and dealt with in a separate patch. Created attachment 8538 [details] [review] Bug 4918: Add ids to OPAC detail page Patch adds an unique id to every item tab and to every column in the items table on the holdings tab. Created attachment 8539 [details] [review] Bug 4819: Add ids to OPAC detail page Patch adds an unique id to every item tab and to every column in the items table on the holdings tab. Created attachment 8582 [details] [review] Bug 4819: Add ids to OPAC detail page Patch adds an unique id to every item tab and to every column in the items table on the holdings tab. http://bugs.koha-community.org/show_bug.cgi?id=4819 Signed-off-by: Owen Leonard <oleonard@myacpl.org> Created attachment 8583 [details] [review] [SIGNED-OFF] Bug 4819: Add ids to OPAC detail page Patch adds an unique id to every item tab and to every column in the items table on the holdings tab. http://bugs.koha-community.org/show_bug.cgi?id=4819 Signed-off-by: Owen Leonard <oleonard@myacpl.org> This change allows us to use some variation on the following JavaScript: ---- // Hide the "date due" column // identify the header for the column we're hiding var th = $("#item_datedue"); // Get the index of the header cell var ind = $("#holdingst th").index(th); // Indexes are zero-based but ":nth-child" starts at one, so increment ind++; // Hide the table header $(th).hide(); // Hide each table cell within the holdings table which has the same // index as the header cell we identified $('#holdingst td:nth-child('+ind+')').hide(); ---- Place that JS inside a $(document).ready() block in your OPACUserJS system preference to automatically hide the specified column in the OPAC. Template only change to add IDs to opac-details.tt. Fixes some indentation for readability. Marking as Passed QA. patch pushed, with a small conflict solve, please double check This bug will be included in the Koha 3.6.5 release. This bug will be included in the Koha 3.6.5 release. |