Summary: | Editing Codes | ||
---|---|---|---|
Product: | Koha | Reporter: | Christopher Brannon <cbrannon> |
Component: | System Administration | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | gmcharlt, lisettepalouse+koha |
Version: | 20.11 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 27881: Markup error in masthead-langmenu.inc |
Description
Christopher Brannon
2021-02-24 17:13:12 UTC
Created attachment 117866 [details] [review] Bug 27881: Markup error in masthead-langmenu.inc Some markup errors were introduced into the masthead-langmenu include file by Bug 20168, presumably during the update to the dropdown menu markup: '<a class="dropdown-item" <a href="' ...resulting in validation errors like "Attribute <a not allowed on element a at this point." This patch correct the errors. To test you should have at least two languages enabled in the OPACLanguages system preference, opaclanguagesdisplay set to "allow," and OpacLangSelectorMode set to "top" or "both top and footer." - Apply the patch and view the OPAC. - The "Languages" menu at the top of the page should look correct and work correctly. - Validating the source of the page should return no errors related to the language menu's markup. Sorry for the noise -- attach this patch to the wrong bug. I think it would be quite hard to do in some cases. If we had FK constraints in the database a lot of the change could be handled automatically, but we are not quite there yet. At least for item type codes this could work, I think Not sure about authorised values - they are used so differently in so many tables that it would probably be a lot more risky to get this to work reliably. On the other hand - those codes can already be changed. |